Changeset 565
- Timestamp:
- 08/25/07 06:55:39 (16 years ago)
- Files:
-
- trunk/libffado/external/dbus/SConscript (modified) (4 diffs)
- trunk/libffado/SConstruct (modified) (3 diffs)
- trunk/libffado/src/SConscript (modified) (1 diff)
- trunk/libffado/tests/SConscript (modified) (2 diffs)
- trunk/libffado/tests/test-dbus.cpp (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/external/dbus/SConscript
r564 r565 15 15 16 16 # add the local version of libdbus++ 17 dbus_env.AppendUnique( CCFLAGS=["-I./external/dbus/include"] ) 18 dbus_env.AppendUnique( LIBPATH="#/external/dbus" ) 19 dbus_env.AppendUnique( LIBS="dbus-c++" ) 17 dbus_env.AppendUnique( CPPPATH=["#/external/dbus/include"] ) 18 dbus_env.AppendUnique( LIBPATH=[env['build_base']+"external/dbus"]) 19 dbus_env.AppendUnique( LIBS=["dbus-c++"] ) 20 dbus_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE"] ) 20 21 21 22 sources = [ … … 35 36 ] 36 37 37 dbus_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE", "-I./external/dbus/include"] )38 38 if env['DEBUG']: 39 39 dbus_env.AppendUnique( CCFLAGS=["-DDEBUG","-g"] ) … … 41 41 dbus_env.PrependUnique( LIBS=["expat"] ) 42 42 libdbuspp=dbus_env.StaticLibrary('dbus-c++', sources) 43 44 43 45 44 # … … 57 56 ] 58 57 59 tools_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE", "-I./external/dbus/include"] ) 60 tools_env.PrependUnique( LIBPATH="#/external/dbus" ) 58 tools_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE"] ) 59 tools_env.AppendUnique( CPPPATH=["#/external/dbus/include"] ) 60 tools_env.PrependUnique( LIBPATH=env['build_base']+"external/dbus" ) 61 61 tools_env.PrependUnique( LIBS="dbus-c++" ) 62 62 trunk/libffado/SConstruct
r564 r565 6 6 from pkgconfig import * 7 7 8 build_dir = ARGUMENTS.get('BUILDDIR', "") 9 if build_dir: 10 build_base=build_dir+'/' 11 if not os.path.isdir( build_base ): 12 os.makedirs( build_base ) 13 print "Building into: " + build_base 14 else: 15 build_base='' 16 8 17 if not os.path.isdir( "cache" ): 9 os.mkdir( "cache" ) 10 os.mkdir( "cache/objects" ) 18 os.makedirs( "cache" ) 11 19 12 opts = Options( "cache/options.cache" ) 20 opts = Options( "cache/"+build_base+"options.cache" ) 21 22 opts.Add( "BUILDDIR", "Path to place the built files in", "") 13 23 14 24 opts.AddOptions( … … 51 61 Help( opts.GenerateHelpText( env ) ) 52 62 53 opts.Save( "cache/options.cache", env ) 63 # make sure the necessary dirs exist 64 if not os.path.isdir( "cache/" + build_base ): 65 os.makedirs( "cache/" + build_base ) 66 if not os.path.isdir( "cache/" + build_base + 'objects' ): 67 os.makedirs( "cache/" + build_base + 'objects' ) 54 68 55 CacheDir( 'cache/objects' ) 69 CacheDir( 'cache/' + build_base + 'objects' ) 70 71 opts.Save( 'cache/' + build_base + "options.cache", env ) 56 72 57 73 if not env.GetOption('clean'): 58 conf = Configure( env, custom_tests={ 'CheckForPKGConfig' : CheckForPKGConfig, 'CheckForPKG' : CheckForPKG }, conf_dir= 'cache', log_file='cache/config.log' )74 conf = Configure( env, custom_tests={ 'CheckForPKGConfig' : CheckForPKGConfig, 'CheckForPKG' : CheckForPKG }, conf_dir="cache/" + build_base, log_file="cache/" + build_base + 'config.log' ) 59 75 60 76 if not conf.CheckHeader( "stdio.h" ): … … 151 167 152 168 153 env.SConscript( dirs=['src','libffado','tests','support','external'], exports="env" ) 169 subdirs=['src','libffado','tests','support','external'] 170 if build_base: 171 env['build_base']="#/"+build_base 172 for subdir in subdirs: 173 env.SConscript( dirs=subdir, exports="env", build_dir=build_base+subdir ) 174 else: 175 env['build_base']="#/" 176 env.SConscript( dirs=subdirs, exports="env" ) 177 154 178 155 179 # By default only src is built but all is cleaned trunk/libffado/src/SConscript
r561 r565 188 188 # 189 189 env2 = env.Copy() 190 env2.PrependUnique( LIBPATH= "#/src" )190 env2.PrependUnique( LIBPATH=env['build_base']+"src" ) 191 191 env2.PrependUnique( LIBS="ffado" ) 192 192 trunk/libffado/tests/SConscript
r561 r565 6 6 7 7 env.PrependUnique( CPPPATH=["#/src"] ) 8 env.PrependUnique( LIBPATH=[ "#/src"] )8 env.PrependUnique( LIBPATH=[env['build_base']+"src"] ) 9 9 env.PrependUnique( LIBS=["ffado"] ) 10 10 … … 18 18 env.Program( target="test-sytmonitor", source = env.Split( "test-sytmonitor.cpp SytMonitor.cpp" ) ) 19 19 20 env.Program( target="test-dbus", source = env.Split( "test-dbus.cpp" ) ) 21 20 22 env.SConscript( dirs="streaming", exports="env" ) 21 23