Changeset 531
- Timestamp:
- 08/20/07 15:03:00 (16 years ago)
- Files:
-
- branches/libffado-scons_porting_work/SConstruct (modified) (6 diffs)
- branches/libffado-scons_porting_work/src/devicemanager.cpp (modified) (1 diff)
- branches/libffado-scons_porting_work/src/SConscript (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-scons_porting_work/SConstruct
r528 r531 43 43 opts.Save( "cache/options.cache", env ) 44 44 45 env.Append( CCFLAGS = "-Wall -g -fpic" )46 47 45 if not env.GetOption('clean'): 48 46 conf = Configure( env, custom_tests={ 'CheckForPKGConfig' : CheckForPKGConfig, 'CheckForPKG' : CheckForPKG }, conf_dir='cache', log_file='cache/config.log' ) … … 72 70 73 71 if env['DEBUG']: 74 env.AppendUnique( CCFLAGS=["-DDEBUG"] ) 72 print "Doing a debug build" 73 # -Werror could be added to, which would force the devs to really remove all the warnings :-) 74 env.AppendUnique( CCFLAGS=["-DDEBUG","-Wall","-g"] ) 75 75 76 76 77 if env['ENABLE_BEBOB']: … … 94 95 env.MergeFlags( ["!pkg-config --cflags --libs liblo"] ) 95 96 96 #env.AppendUnique( CCFLAGS = "-Wall -Werror -g -fpic" )97 env.AppendUnique( CCFLAGS = env.Split("-Wall -g -fpic") )98 #env.AppendUnique( LINKFLAGS = env.Split("-Wl,-rpath $libdir -Wl,soname -Wl,libffado.so.1") )99 100 97 101 98 # … … 106 103 env['libdir'] = os.path.join( env['PREFIX'], "lib" ) 107 104 env['includedir'] = os.path.join( env['PREFIX'], "include" ) 105 env['sharedir'] = os.path.join( env['PREFIX'], "share/libffado" ) 108 106 env['cachedir'] = os.path.join( env['PREFIX'], "var/cache/libffado" ) 109 107 … … 123 121 env.Alias( "install", env.Install( env['libdir'] + '/pkgconfig', pkgconfig ) ) 124 122 125 if not os.path.exists( env['cachedir'] ):126 env.Alias( "install", os.makedirs( env["cachedir"] ) )127 123 128 124 env.SConscript( dirs=['src','libffado','tests','support'], exports="env" ) … … 131 127 if not env.GetOption('clean'): 132 128 Default( 'src' ) 129 #env.Alias( "install", env["cachedir"], os.makedirs( env["cachedir"] ) ) 130 env.Alias( "install", env.Install( env["cachedir"], "" ) ) #os.makedirs( env["cachedir"] ) ) 133 131 132 branches/libffado-scons_porting_work/src/devicemanager.cpp
r527 r531 522 522 Glib::ustring cachePath; 523 523 char* pCachePath; 524 if ( asprintf( &pCachePath, "%s/ libffado/", CACHEDIR ) < 0 ) {524 if ( asprintf( &pCachePath, "%s/", CACHEDIR ) < 0 ) { 525 525 debugError( "Could not create path string for cache pool (trying '/var/cache/libffado' instead)\n" ); 526 526 cachePath == "/var/cache/libffado/"; branches/libffado-scons_porting_work/src/SConscript
r527 r531 70 70 bebob/GenericMixer.cpp \ 71 71 maudio/maudio_avdevice.cpp \ 72 ' ) 73 bebob_pkgdata = env.Split( '\ 74 maudio/refdesign.xml \ 75 maudio/fw410.xml \ 76 maudio/fwap.xml \ 72 77 ' ) 73 78 … … 149 154 env1.Alias( "install", env1.Install( "$libdir", ffadolib ) ) 150 155 156 # 157 # Install the *_pkgdata to $sharedir 158 # 159 for data in bebob_pkgdata: 160 env1.Alias( "install", env1.Install( "$sharedir", data ) ) 151 161 152 162 #