Changeset 592
- Timestamp:
- 08/29/07 09:10:16 (14 years ago)
- Files:
-
- trunk/libffado/SConstruct (modified) (4 diffs)
- trunk/libffado/src/SConscript (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/SConstruct
r591 r592 25 25 26 26 opts.AddOptions( 27 BoolOption( "DEBUG", """ 27 BoolOption( "DEBUG", """\ 28 28 Toggle debug-build. DEBUG means \"-g -Wall\" and more, otherwise we will use 29 \"-O2\" to optimise.""", True ),29 \"-O2\" to optimise.""", True ), 30 30 PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local" ), 31 31 BoolOption( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ), … … 36 36 BoolOption( "ENABLE_RME", "Enable/Disable the RME part.", False ), 37 37 BoolOption( "ENABLE_BOUNCE", "Enable/Disable the BOUNCE part.", False ), 38 BoolOption( "ENABLE_GENERICAVC", """\ 39 Enable/Disable the the generic avc part (mainly used by apple). 40 Note that disabling this option might be overwritten by other devices needing 41 this code.""", False ), 38 42 BoolOption( "ENABLE_ALL", "Enable/Disable support for all devices.", False ), 39 BoolOption( "BUILD_TESTS", """ 43 BoolOption( "BUILD_TESTS", """\ 40 44 Build the tests in their directory. As some contain quite some functionality, 41 this is on by default.42 If you just want to use ffado with jack without the tools, you can disable this. 45 this is on by default. 46 If you just want to use ffado with jack without the tools, you can disable this.\ 43 47 """, True ), 44 48 ) … … 153 157 env['ENABLE_BOUNCE'] = True 154 158 159 if env['ENABLE_BEBOB'] or env['ENABLE_DICE'] or env['ENABLE_BOUNCE'] or env['ENABLE_FIREWORKS']: 160 env['ENABLE_GENERICAVC'] = True 161 155 162 if build_base: 156 163 env['build_base']="#/"+build_base … … 164 171 externalenv = env.Copy() 165 172 Export( 'externalenv' ) 166 167 #168 # TODO: Probably this should be in the src/SConscript...169 #170 if env['ENABLE_BEBOB']:171 env.AppendUnique( CCFLAGS=["-DENABLE_BEBOB"] )172 if env['ENABLE_FIREWORKS']:173 env.AppendUnique( CCFLAGS=["-DENABLE_FIREWORKS"] )174 if env['ENABLE_MOTU']:175 env.AppendUnique( CCFLAGS=["-DENABLE_MOTU"] )176 if env['ENABLE_DICE']:177 env.AppendUnique( CCFLAGS=["-DENABLE_DICE"] )178 if env['ENABLE_METRIC_HALO']:179 env.AppendUnique( CCFLAGS=["-DENABLE_METRIC_HALO"] )180 if env['ENABLE_RME']:181 env.AppendUnique( CCFLAGS=["-DENABLE_RME"] )182 if env['ENABLE_BOUNCE']:183 env.AppendUnique( CCFLAGS=["-DENABLE_BOUNCE"] )184 185 # the GenericAVC code is used by these devices186 if env['ENABLE_BEBOB'] or env['ENABLE_DICE'] or env['ENABLE_BOUNCE'] or env['ENABLE_FIREWORKS']:187 env.AppendUnique( CCFLAGS=["-DENABLE_GENERICAVC"] )188 173 189 174 # trunk/libffado/src/SConscript
r587 r592 7 7 env.AppendUnique( CPPPATH=["#/", "#/src"] ) 8 8 9 env1= env.Copy()9 libenv = env.Copy() 10 10 11 11 ffado_source = env.Split( '\ … … 136 136 source = ffado_source 137 137 if env['ENABLE_BEBOB']: 138 libenv.AppendUnique( CCFLAGS=["-DENABLE_BEBOB"] ) 138 139 source += bebob_source 139 140 if env['ENABLE_FIREWORKS']: 141 libenv.AppendUnique( CCFLAGS=["-DENABLE_FIREWORKS"] ) 140 142 source += fireworks_source 141 143 if env['ENABLE_MOTU']: 144 libenv.AppendUnique( CCFLAGS=["-DENABLE_MOTU"] ) 142 145 source += motu_source 143 146 if env['ENABLE_DICE']: 147 libenv.AppendUnique( CCFLAGS=["-DENABLE_DICE"] ) 144 148 source += dice_source 145 149 if env['ENABLE_METRIC_HALO']: 150 libenv.AppendUnique( CCFLAGS=["-DENABLE_METRIC_HALO"] ) 146 151 source += metric_halo_source 147 152 if env['ENABLE_RME']: 153 libenv.AppendUnique( CCFLAGS=["-DENABLE_RME"] ) 148 154 source += rme_source 149 155 if env['ENABLE_BOUNCE']: 156 libenv.AppendUnique( CCFLAGS=["-DENABLE_BOUNCE"] ) 150 157 source += bounce_source 151 158 152 if env['ENABLE_BEBOB'] or env['ENABLE_DICE'] or env['ENABLE_BOUNCE'] or env['ENABLE_FIREWORKS']: 159 # The list of devices needing GENERICAVC is controlled in ../SConstruct 160 if env['ENABLE_GENERICAVC']: 161 libenv.AppendUnique( CCFLAGS=["-DENABLE_GENERICAVC"] ) 153 162 source += amdtp_source 154 163 source += genericavc_source 155 164 156 env1.MergeFlags( "-lrt" )165 libenv.MergeFlags( "-lrt" ) 157 166 158 167 #env1.AppendUnique( LINKFLAGS = env.Split("-Wl,-rpath $libdir -Wl,-soname -Wl,libffado.so.1 --version-info=1:0:0") ) 159 ffadolib = env1.SharedLibrary( "ffado", source )168 ffadolib = libenv.SharedLibrary( "ffado", source ) 160 169 161 170 # … … 164 173 if False: 165 174 print "Trying to emulate libtools versioned install" 166 env1.Alias( "install", env1.InstallAs( os.path.join('$libdir','libffado.so.$LIBVERSION'), ffadolib ) )167 env1.Ignore( ffadolib, os.path.join('$libdir','libffado.so') )175 libenv.Alias( "install", libenv.InstallAs( os.path.join('$libdir','libffado.so.$LIBVERSION'), ffadolib ) ) 176 libenv.Ignore( ffadolib, os.path.join('$libdir','libffado.so') ) 168 177 #env.Ignore( os.path.join('$libdir','libffado.so'), ffadolib ) 169 178 #env.Ignore( os.path.join('$libdir','libffado.so.0'), "install" ) 170 179 171 env1.Alias( "install", env1.Command(180 libenv.Alias( "install", libenv.Command( 172 181 target="$libdir/libffado.so", 173 source= env1['libdir']+"/libffado.so.$LIBVERSION",182 source=libenv['libdir']+"/libffado.so.$LIBVERSION", 174 183 action="ln -s $SOURCE $TARGET" 175 184 ) ) 176 env1.Alias( "install", env1.Command(177 target="$libdir/libffado.so.%s" % str( env1['LIBVERSION']).rsplit('.',1)[0],178 source= env1['libdir']+"/libffado.so.$LIBVERSION",185 libenv.Alias( "install", libenv.Command( 186 target="$libdir/libffado.so.%s" % str(libenv['LIBVERSION']).rsplit('.',1)[0], 187 source=libenv['libdir']+"/libffado.so.$LIBVERSION", 179 188 action="ln -s $SOURCE $TARGET" 180 189 ) ) 181 env1.Alias( "install", env1.Command(182 target="$libdir/libffado.so.%s" % str( env1['LIBVERSION']).rsplit('.',2)[0],183 source= env1['libdir']+"/libffado.so.$LIBVERSION",190 libenv.Alias( "install", libenv.Command( 191 target="$libdir/libffado.so.%s" % str(libenv['LIBVERSION']).rsplit('.',2)[0], 192 source=libenv['libdir']+"/libffado.so.$LIBVERSION", 184 193 action="ln -s $SOURCE $TARGET" 185 194 ) ) 186 195 else: 187 196 print "Doing simple install" 188 env1.Alias( "install", env1.Install( "$libdir", ffadolib ) )197 libenv.Alias( "install", libenv.Install( "$libdir", ffadolib ) ) 189 198 190 199 # … … 192 201 # 193 202 for data in bebob_pkgdata: 194 env1.Alias( "install", env1.Install( "$sharedir", data ) )203 libenv.Alias( "install", libenv.Install( "$sharedir", data ) ) 195 204 196 205 # 197 206 # For the debugging apps 198 207 # 199 env2 = env.Copy()208 env2 = libenv.Copy() 200 209 env2.PrependUnique( LIBPATH=env['build_base']+"src" ) 201 210 env2.PrependUnique( LIBS="ffado" )