Exemple #1
0
 def get_libraries(self):
     if oshelper.os_is_mac():
         # FIXME find proper way to detect this
         return ["Python"]
     env = scons.Environment()
     flags = env.ParseFlags(distutils.sysconfig.get_config_var("BLDLIBRARY"))
     return flags["LIBS"]
Exemple #2
0
 def get_libraries(self):
     if oshelper.os_is_mac():
         # FIXME find proper way to detect this
         return ['Python']
     env = scons.Environment()
     flags = env.ParseFlags(
         distutils.sysconfig.get_config_var('BLDLIBRARY'))
     return flags['LIBS']
Exemple #3
0
def _setup_default():
    _plain_libs = """
        dl
        osg
        osgDB
        osgViewer
        osgParticle
        osgShadow
        osgText
        osgUtil
        osgGA
        osgFX
        OpenThreads
        alut
        openal
        vrpn
        CGAL
        gmp
        """

    for lib in _plain_libs.split():
        _config_store.set(lib, PlainConfig(libraries = [lib]))
        
    #add openthreads lib by default
    _config_store.set('osg', PlainConfig(libraries = ['osg', 'OpenThreads']))

    _config_store.set('boost_thread', BoostConfig('boost_thread'))
    _config_store.set('boost_signals', BoostConfig('boost_signals'))
    _config_store.set('boost_filesystem', BoostConfig('boost_filesystem'))
    _config_store.set('boost_regex', BoostConfig('boost_regex'))
    _config_store.set('boost_system', BoostConfig('boost_system'))
    _config_store.set('boost_date_time', BoostConfig('boost_date_time'))
    _config_store.set('boost_python', BoostConfig('boost_python', dependencies = ['python']))

    _config_store.set('avango-core', PKGConfig('avango-core'))
    _config_store.set('avango-daemon', PKGConfig('avango-daemon'))
    _config_store.set('avango-python', PlainConfig(libraries = ["avangoScript"]))
    _config_store.set('avango-osg', PKGConfig('avango-osg'))
    _config_store.set('avango-osgviewer', PKGConfig('avango-osgviewer'))
    _config_store.set('avango-moving', PKGConfig('avango-moving'))
    _config_store.set('avango-tools', PKGConfig('avango-tools'))
    _config_store.set('avango-ensemble', PKGConfig('avango-ensemble'))
    _config_store.set('avango-unittest', PKGConfig('avango-unittest'))
    _config_store.set('avango-sound', PlainConfig(libraries = ["avangoSound"]))
    _config_store.set('avango-shade', PlainConfig(libraries = ["avangoShade", "avangoShadeCore"]))
    _config_store.set('avango-utils', PlainConfig(libraries = ["avangoUtils"]))
    _config_store.set('vorbisfile', PKGConfig('vorbisfile'))
    _config_store.set('xerces', PlainConfig(libraries = ['xerces-c']))
    _config_store.set('graphicsMagick', PlainConfig(libraries = ['GraphicsMagick++']))

    _config_store.set('python', PythonConfig())
    
    _config_store.set('osgEarth', PlainConfig(libraries = ["osgEarth", "osgEarthUtil", "osgEarthFeatures"]))
    _config_store.set('pcl', PlainConfig(libraries = ["pcl_io", "pcl_io_ply", "pcl_common"]))


    # Dummy packages
    _config_store.set('osgUtil', PlainConfig(libraries = ['']))
    _config_store.set('GL', PlainConfig(libraries = ['']))
    _config_store.set('GLU', PlainConfig(libraries = ['']))

    if oshelper.os_is_mac():
      _config_store.set('osg', PlainConfig(libraries = ['osg', 'OpenThreads']))
      _config_store.set('osgUtil', PlainConfig(libraries = ['osgUtil']))
      _config_store.set('GL', PlainConfig(libraries = ['GL']))
      _config_store.set('GLU', PlainConfig(libraries = ['GLU']))
      
      # for avango extensions, there is no pkg-config
      _config_store.set('avango-core', PlainConfig(libraries = ['avango'], dependencies = ["boost_signals", "boost_thread", "boost_regex"]))
      _config_store.set('avango-osg', PlainConfig(libraries = ['avangoOsg'], dependencies = ['osg', 'osgDB', 'osgViewer', 'osgParticle', 'osgText', 'osgUtil']))
      _config_store.set('avango-utils', PlainConfig(libraries = ['avangoUtils']))
      _config_store.set('avango-tools', PlainConfig(libraries = ['avangoTools']))
      _config_store.set('avango-sound', PlainConfig(libraries = ['avangoSound']))
      _config_store.set('avango-osgviewer', PlainConfig(libraries = ['avangoOsgViewer']))

    # Override some libraries for Windows
    if oshelper.os_is_windows():
        # Boost libraries use auto-link
        _config_store.set('boost_thread', PlainConfig(libraries = ['']))
        _config_store.set('boost_signals', PlainConfig(libraries = ['']))
        _config_store.set('boost_regex', PlainConfig(libraries = ['']))
        _config_store.set('boost_python', PlainConfig(libraries = [''], dependencies = ["python"]))
        # dl is in standard system libraries
        # TODO check that dl functionality is included in system library
        _config_store.set('dl', PlainConfig(libraries = ['']))
        # Windows-only(?) OSG library
        _config_store.set('osg', PlainConfig(libraries = ['osg', 'OpenThreads']))
        _config_store.set('osgUtil', PlainConfig(libraries = ['osgUtil']))
        # GL libraries are required under Windows
        _config_store.set('GL', PlainConfig(libraries = ['OPENGL32']))
        _config_store.set('GLU', PlainConfig(libraries = ['GLU32']))
        # for avango extensions, there is no pkg-config
        _config_store.set('avango-core', PlainConfig(libraries = ['avango'], dependencies = ["boost_signals", "boost_thread", "boost_regex"]))
        _config_store.set('avango-osg', PlainConfig(libraries = ['avangoOsg'], dependencies = ['osg', 'osgDB', 'osgViewer', 'osgParticle', 'osgText', 'osgUtil']))
        _config_store.set('avango-utils', PlainConfig(libraries = ['avangoUtils']))
        _config_store.set('avango-tools', PlainConfig(libraries = ['avangoTools']))
        _config_store.set('avango-sound', PlainConfig(libraries = ['avangoSound']))
        _config_store.set('avango-osgviewer', PlainConfig(libraries = ['avangoOsgViewer']))
        # xerces
        _config_store.set('xerces', PlainConfig(libraries = ['xerces-c_2']))
Exemple #4
0
def _setup_default():
    _plain_libs = """
        dl
        osg
        osgDB
        osgViewer
        osgParticle
        osgShadow
        osgText
        osgUtil
        osgGA
        osgFX
        OpenThreads
        alut
        openal
        vrpn
        CGAL
        gmp
        """

    for lib in _plain_libs.split():
        _config_store.set(lib, PlainConfig(libraries=[lib]))

    #add openthreads lib by default
    _config_store.set('osg', PlainConfig(libraries=['osg', 'OpenThreads']))

    _config_store.set('boost_thread', BoostConfig('boost_thread'))
    _config_store.set('boost_signals', BoostConfig('boost_signals'))
    _config_store.set('boost_filesystem', BoostConfig('boost_filesystem'))
    _config_store.set('boost_regex', BoostConfig('boost_regex'))
    _config_store.set('boost_system', BoostConfig('boost_system'))
    _config_store.set('boost_date_time', BoostConfig('boost_date_time'))
    _config_store.set('boost_python',
                      BoostConfig('boost_python', dependencies=['python']))

    _config_store.set('avango-core', PKGConfig('avango-core'))
    _config_store.set('avango-daemon', PKGConfig('avango-daemon'))
    _config_store.set('avango-python', PlainConfig(libraries=["avangoScript"]))
    _config_store.set('avango-osg', PKGConfig('avango-osg'))
    _config_store.set('avango-osgviewer', PKGConfig('avango-osgviewer'))
    _config_store.set('avango-moving', PKGConfig('avango-moving'))
    _config_store.set('avango-tools', PKGConfig('avango-tools'))
    _config_store.set('avango-ensemble', PKGConfig('avango-ensemble'))
    _config_store.set('avango-unittest', PKGConfig('avango-unittest'))
    _config_store.set('avango-sound', PlainConfig(libraries=["avangoSound"]))
    _config_store.set(
        'avango-shade',
        PlainConfig(libraries=["avangoShade", "avangoShadeCore"]))
    _config_store.set('avango-utils', PlainConfig(libraries=["avangoUtils"]))
    _config_store.set('vorbisfile', PKGConfig('vorbisfile'))
    _config_store.set('xerces', PlainConfig(libraries=['xerces-c']))
    _config_store.set('graphicsMagick',
                      PlainConfig(libraries=['GraphicsMagick++']))

    _config_store.set('python', PythonConfig())

    _config_store.set(
        'osgEarth',
        PlainConfig(
            libraries=["osgEarth", "osgEarthUtil", "osgEarthFeatures"]))
    _config_store.set(
        'pcl', PlainConfig(libraries=["pcl_io", "pcl_io_ply", "pcl_common"]))

    # Dummy packages
    _config_store.set('osgUtil', PlainConfig(libraries=['']))
    _config_store.set('GL', PlainConfig(libraries=['']))
    _config_store.set('GLU', PlainConfig(libraries=['']))

    if oshelper.os_is_mac():
        _config_store.set('osg', PlainConfig(libraries=['osg', 'OpenThreads']))
        _config_store.set('osgUtil', PlainConfig(libraries=['osgUtil']))
        _config_store.set('GL', PlainConfig(libraries=['GL']))
        _config_store.set('GLU', PlainConfig(libraries=['GLU']))

        # for avango extensions, there is no pkg-config
        _config_store.set(
            'avango-core',
            PlainConfig(
                libraries=['avango'],
                dependencies=["boost_signals", "boost_thread", "boost_regex"]))
        _config_store.set(
            'avango-osg',
            PlainConfig(libraries=['avangoOsg'],
                        dependencies=[
                            'osg', 'osgDB', 'osgViewer', 'osgParticle',
                            'osgText', 'osgUtil'
                        ]))
        _config_store.set('avango-utils',
                          PlainConfig(libraries=['avangoUtils']))
        _config_store.set('avango-tools',
                          PlainConfig(libraries=['avangoTools']))
        _config_store.set('avango-sound',
                          PlainConfig(libraries=['avangoSound']))
        _config_store.set('avango-osgviewer',
                          PlainConfig(libraries=['avangoOsgViewer']))

    # Override some libraries for Windows
    if oshelper.os_is_windows():
        # Boost libraries use auto-link
        _config_store.set('boost_thread', PlainConfig(libraries=['']))
        _config_store.set('boost_signals', PlainConfig(libraries=['']))
        _config_store.set('boost_regex', PlainConfig(libraries=['']))
        _config_store.set('boost_python',
                          PlainConfig(libraries=[''], dependencies=["python"]))
        # dl is in standard system libraries
        # TODO check that dl functionality is included in system library
        _config_store.set('dl', PlainConfig(libraries=['']))
        # Windows-only(?) OSG library
        _config_store.set('osg', PlainConfig(libraries=['osg', 'OpenThreads']))
        _config_store.set('osgUtil', PlainConfig(libraries=['osgUtil']))
        # GL libraries are required under Windows
        _config_store.set('GL', PlainConfig(libraries=['OPENGL32']))
        _config_store.set('GLU', PlainConfig(libraries=['GLU32']))
        # for avango extensions, there is no pkg-config
        _config_store.set(
            'avango-core',
            PlainConfig(
                libraries=['avango'],
                dependencies=["boost_signals", "boost_thread", "boost_regex"]))
        _config_store.set('avango-daemon',
                          PlainConfig(libraries=['avangoDaemon']))
        _config_store.set(
            'avango-osg',
            PlainConfig(libraries=['avangoOsg'],
                        dependencies=[
                            'osg', 'osgDB', 'osgViewer', 'osgParticle',
                            'osgText', 'osgUtil'
                        ]))
        _config_store.set('avango-utils',
                          PlainConfig(libraries=['avangoUtils']))
        _config_store.set('avango-tools',
                          PlainConfig(libraries=['avangoTools']))
        _config_store.set('avango-sound',
                          PlainConfig(libraries=['avangoSound']))
        _config_store.set('avango-osgviewer',
                          PlainConfig(libraries=['avangoOsgViewer']))
        # xerces
        _config_store.set('xerces', PlainConfig(libraries=['xerces-c_2']))