Ignore:
Timestamp:
08/02/09 20:01:49 (4 years ago)
Author:
Tiago de Paula Peixoto <tiago@…>
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)
Message:
Implement show_config()

This prints useful library information.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/graph/graph_bind.cc

    r684efc r7e6968  
    4646                                        ", " GIT_COMMIT_DATE ")";} 
    4747    string GetLicense()   const {return "GPL version 3 or above";} 
    48     string GetCXXFLAGS()  const {return CXXFLAGS " " CPPFLAGS;} 
     48    string GetCXXFLAGS()  const {return CPPFLAGS " " CXXFLAGS " " LDFLAGS;} 
    4949    string GetInstallPrefix() const {return INSTALL_PREFIX;} 
    5050    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    } 
    5157}; 
    5258 
     
    289295} 
    290296 
     297bool openmp_enabled() 
     298{ 
     299    #ifdef USING_OPENMP 
     300    return true; 
     301    #else 
     302    return false; 
     303    #endif 
     304} 
     305 
    291306BOOST_PYTHON_MODULE(libgraph_tool_core) 
    292307{ 
     
    304319 
    305320    def("graph_filtering_enabled", &graph_filtering_enabled); 
     321    def("openmp_enabled", &openmp_enabled); 
    306322 
    307323    mpl::for_each<mpl::push_back<scalar_types,string>::type>(export_vector_types()); 
     
    380396        .add_property("cxxflags", &LibInfo::GetCXXFLAGS) 
    381397        .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); 
    383400 
    384401    def("get_graph_type", &get_graph_type); 
Note: See TracChangeset for help on using the changeset viewer.