Changeset 7e6968 for src/graph/graph_bind.cc
- Timestamp:
- 08/02/09 20:01:49 (4 years ago)
- Branches:
- master, python3
- Children:
- 014d05
- Parents:
- 36b305
- git-author:
- Tiago de Paula Peixoto <tiago@…> (08/02/09 13:56:19)
- git-committer:
- Tiago de Paula Peixoto <tiago@…> (08/02/09 20:01:49)
- File:
-
- 1 edited
-
src/graph/graph_bind.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/graph/graph_bind.cc
r684efc r7e6968 46 46 ", " GIT_COMMIT_DATE ")";} 47 47 string GetLicense() const {return "GPL version 3 or above";} 48 string GetCXXFLAGS() const {return C XXFLAGS " " CPPFLAGS;}48 string GetCXXFLAGS() const {return CPPFLAGS " " CXXFLAGS " " LDFLAGS;} 49 49 string GetInstallPrefix() const {return INSTALL_PREFIX;} 50 50 string GetPythonDir() const {return PYTHON_DIR;} 51 string GetGCCVersion() const 52 { 53 stringstream s; 54 s << __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__; 55 return s.str(); 56 } 51 57 }; 52 58 … … 289 295 } 290 296 297 bool openmp_enabled() 298 { 299 #ifdef USING_OPENMP 300 return true; 301 #else 302 return false; 303 #endif 304 } 305 291 306 BOOST_PYTHON_MODULE(libgraph_tool_core) 292 307 { … … 304 319 305 320 def("graph_filtering_enabled", &graph_filtering_enabled); 321 def("openmp_enabled", &openmp_enabled); 306 322 307 323 mpl::for_each<mpl::push_back<scalar_types,string>::type>(export_vector_types()); … … 380 396 .add_property("cxxflags", &LibInfo::GetCXXFLAGS) 381 397 .add_property("install_prefix", &LibInfo::GetInstallPrefix) 382 .add_property("python_dir", &LibInfo::GetPythonDir); 398 .add_property("python_dir", &LibInfo::GetPythonDir) 399 .add_property("gcc_version", &LibInfo::GetGCCVersion); 383 400 384 401 def("get_graph_type", &get_graph_type);
Note: See TracChangeset
for help on using the changeset viewer.


