Changeset 781
- Timestamp:
- 12/29/07 02:16:19 (16 years ago)
- Files:
-
- trunk/libffado/SConstruct (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/SConstruct
r780 r781 49 49 Toggle debug-build. DEBUG means \"-g -Wall\" and more, otherwise we will use 50 50 \"-O2\" to optimise.""", True ), 51 BoolOption( "PROFILE", "Build with symbols and other profiling info", False ), 51 52 PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local", PathOption.PathAccept ), 52 53 PathOption( "BINDIR", "Overwrite the directory where apps are installed to.", "$PREFIX/bin", PathOption.PathAccept ), … … 190 191 print "Doing a DEBUG build" 191 192 # -Werror could be added to, which would force the devs to really remove all the warnings :-) 192 env.AppendUnique( CCFLAGS=["-DDEBUG","-Wall","-g"] ) # HACK!! 193 env.AppendUnique( CCFLAGS=["-DDEBUG","-Wall","-g"] ) 194 env.AppendUnique( CFLAGS=["-DDEBUG","-Wall","-g"] ) 193 195 else: 194 196 env.AppendUnique( CCFLAGS=["-O2","-DNDEBUG"] ) 197 env.AppendUnique( CFLAGS=["-O2","-DNDEBUG"] ) 198 199 if env['PROFILE']: 200 print "Doing a PROFILE build" 201 # -Werror could be added to, which would force the devs to really remove all the warnings :-) 202 env.AppendUnique( CCFLAGS=["-Wall","-g"] ) 203 env.AppendUnique( CFLAGS=["-Wall","-g"] ) 204 195 205 196 206 # this is required to indicate that the DBUS version we use has support … … 294 304 opt_flags.extend (["-fomit-frame-pointer","-ffast-math","-funroll-loops"]) 295 305 env.AppendUnique( CCFLAGS=opt_flags ) 306 env.AppendUnique( CFLAGS=opt_flags ) 296 307 print "Doing an optimized build..." 297 308