Changeset 755

Show
Ignore:
Timestamp:
12/08/07 05:44:49 (13 years ago)
Author:
ppalmers
Message:

add a scons option to build static versions of the tools

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r754 r755  
    6969  If you just want to use ffado with jack without the tools, you can disable this.\ 
    7070""", True ), 
     71    BoolOption( "BUILD_STATIC_TOOLS", "Build a statically linked version of the FFADO tools.", False ), 
    7172        ) 
    7273 
     
    198199        env['ENABLE_GENERICAVC'] = True 
    199200 
     201env['BUILD_STATIC_LIB'] = False 
     202if env['BUILD_STATIC_TOOLS']: 
     203    print "Building static versions of the tools..." 
     204    env['BUILD_STATIC_LIB'] = True 
     205 
    200206if build_base: 
    201207        env['build_base']="#/"+build_base 
  • trunk/libffado/src/SConscript

    r752 r755  
    225225ffadolib = libenv.SharedLibrary( "ffado", source ) 
    226226 
     227if libenv['BUILD_STATIC_LIB']: 
     228    ffadolib_static = libenv.StaticLibrary( "ffado", source ) 
     229 
    227230for file in version_dependent_files: 
    228231    Depends(file, '#/config.h') 
  • trunk/libffado/support/dbus/SConscript

    r742 r755  
    4242env.Xml2Cpp_Adaptor('controlserver-glue.h', 'control-interface.xml') 
    4343 
     44static_env = env.Copy() 
     45 
    4446apps = { 
    4547} 
     
    5961    if app.find( "test" ) == -1: 
    6062        env.Install( "$bindir", app ) 
     63 
     64# static versions 
     65if static_env['BUILD_STATIC_TOOLS']: 
     66    static_env.Append(LIBS=File('#/src/libffado.a')) 
     67    for app in apps.keys(): 
     68        static_app = app + "-static" 
     69        static_env.Program( target=static_app, source = static_env.Split( apps[app] ) ) 
  • trunk/libffado/support/firmware/SConscript

    r742 r755  
    2626env = env.Copy() 
    2727 
    28 # 
    29 # For the debugging apps 
    30 # 
    31 env.PrependUnique( LIBPATH=env['build_base']+"src" ) 
    32 env.PrependUnique( LIBS="ffado" ) 
    3328env.AppendUnique( CPPPATH=["#/", "#/src"] ) 
    3429 
     
    3833    env.MergeFlags( env['LIBAVC1394_FLAGS'] ) 
    3934    env.MergeFlags( env['LIBIEC61883_FLAGS'] ) 
    40     env.MergeFlags( env['ALSA_FLAGS'] ) 
    4135    env.MergeFlags( env['LIBXML26_FLAGS'] ) 
     36 
     37static_env = env.Copy() 
    4238 
    4339apps = { 
     
    4541 
    4642installapps = [] 
     43 
     44env.PrependUnique( LIBPATH=env['build_base']+"src" ) 
     45env.PrependUnique( LIBS="ffado" ) 
    4746 
    4847if env['ENABLE_BEBOB']: 
     
    5857    if app.find( "test" ) == -1: 
    5958        env.Install( "$bindir", app ) 
     59 
     60# static versions 
     61if static_env['BUILD_STATIC_TOOLS']: 
     62    static_env.Append(LIBS=File('#/src/libffado.a')) 
     63    for app in apps.keys(): 
     64        static_app = app + "-static" 
     65        static_env.Program( target=static_app, source = static_env.Split( apps[app] ) ) 
  • trunk/libffado/tests/SConscript

    r747 r755  
    3434        env.MergeFlags( env['LIBXML26_FLAGS'] ) 
    3535 
     36static_env = env.Copy() 
     37 
    3638# 
    3739# deactivate as they don't seem ported to the new api: test-extplugcmd, 
     
    6062env.SConscript( dirs="streaming", exports="env" ) 
    6163 
     64# static versions 
     65if static_env['BUILD_STATIC_TOOLS']: 
     66    static_env.Append(LIBS=File('#/src/libffado.a')) 
     67    for app in apps.keys(): 
     68        static_app = app + "-static" 
     69        static_env.Program( target=static_app, source = static_env.Split( apps[app] ) )