Changeset 552

Show
Ignore:
Timestamp:
08/21/07 13:30:13 (14 years ago)
Author:
arnonym
Message:

Add some more config options.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-scons_porting_work/SConstruct

    r534 r552  
    1212opts = Options( "cache/options.cache" ) 
    1313 
    14 opts.Add( BoolOption( "DEBUG", "Toggle debug-build.", True ) ) 
    1514opts.AddOptions( 
     15        BoolOption( "DEBUG", """ 
     16Toggle debug-build. DEBUG means \"-g -Wall\" and more, otherwise we will use 
     17\"-O2\" to optimise.""", True ), 
     18        PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local" ), 
    1619        BoolOption( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ), 
    1720        BoolOption( "ENABLE_MOTU", "Enable/Disable the Motu part.", False ), 
     
    2023        BoolOption( "ENABLE_RME", "Enable/Disable the RME part.", False ), 
    2124        BoolOption( "ENABLE_BOUNCE", "Enable/Disable the BOUNCE part.", False ), 
    22         PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local" ), 
     25        BoolOption( "ENABLE_ALL", "Enable/Disable support for all devices.", False ), 
     26        BoolOption( "BUILD_TESTS", """ 
     27Build the tests in their directory. As some contain quite some functionality, 
     28this is on by default. 
     29If you just want to use ffado with jack without the tools, you can disable this. 
     30""", True ), 
    2331        ) 
    2432 
     
    3442For example with: "rm -Rf .sconsign.dblite cache" 
    3543 
    36 Currently it seems as if only the BEBOB and the MOTU drivers are 
    37 kind-of-working, thats why only BEBOB is enabled by default. 
     44Currently it seems as if only the BEBOB is kind-of-working, thats why only BEBOB 
     45is enabled by default. 
    3846 
    3947Note that this is a development version! Don't complain if its not working! 
     
    7987        env.AppendUnique( CCFLAGS=["-O2"] ) 
    8088 
    81  
    82 if env['ENABLE_BEBOB']: 
     89if env['ENABLE_BEBOB'] or env['ENABLE_ALL']: 
    8390        env.AppendUnique( CCFLAGS=["-DENABLE_BEBOB"] ) 
    84 if env['ENABLE_MOTU']
     91if env['ENABLE_MOTU'] or env['ENABLE_ALL']
    8592        env.AppendUnique( CCFLAGS=["-DENABLE_MOTU"] ) 
    86 if env['ENABLE_DICE']
     93if env['ENABLE_DICE'] or env['ENABLE_ALL']
    8794        env.AppendUnique( CCFLAGS=["-DENABLE_DICE"] ) 
    88 if env['ENABLE_METRIC_HALO']
     95if env['ENABLE_METRIC_HALO'] or env['ENABLE_ALL']
    8996        env.AppendUnique( CCFLAGS=["-DENABLE_METRIC_HALO"] ) 
    90 if env['ENABLE_RME']
     97if env['ENABLE_RME'] or env['ENABLE_ALL']
    9198        env.AppendUnique( CCFLAGS=["-DENABLE_RME"] ) 
    92 if env['ENABLE_BOUNCE']
     99if env['ENABLE_BOUNCE'] or env['ENABLE_ALL']
    93100        env.AppendUnique( CCFLAGS=["-DENABLE_BOUNCE"] ) 
    94101 
     
    132139if not env.GetOption('clean'): 
    133140        Default( 'src' ) 
     141        if env['BUILD_TESTS']: 
     142                Default( 'tests' ) 
    134143        #env.Alias( "install", env["cachedir"], os.makedirs( env["cachedir"] ) ) 
    135144        env.Alias( "install", env.Install( env["cachedir"], "" ) ) #os.makedirs( env["cachedir"] ) )