Changeset 526
- Timestamp:
- 08/20/07 06:39:51 (16 years ago)
- Files:
-
- branches/libffado-scons_porting_work/config.h.in (modified) (3 diffs)
- branches/libffado-scons_porting_work/libffado.pc.in (modified) (1 diff)
- branches/libffado-scons_porting_work/libffado/SConscript (copied) (copied from branches/libffado-scons_porting_work/tests/SConscript) (2 diffs)
- branches/libffado-scons_porting_work/SConstruct (modified) (5 diffs)
- branches/libffado-scons_porting_work/src/SConscript (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-scons_porting_work/config.h.in
r519 r526 2 2 3 3 /* Name of package */ 4 #define PACKAGE "libffado"4 #define PACKAGE $PACKAGE 5 5 6 6 /* Define to the address where bug reports for this package should be sent. */ … … 8 8 9 9 /* Define to the full name of this package. */ 10 #define PACKAGE_NAME " libffado"10 #define PACKAGE_NAME "$PACKAGE" 11 11 12 12 /* Define to the full name and version of this package. */ 13 #define PACKAGE_STRING " libffado 1.999.5"13 #define PACKAGE_STRING "$PACKAGE $VERSION" 14 14 15 15 /* Define to the one symbol short name of this package. */ 16 #define PACKAGE_TARNAME " libffado"16 #define PACKAGE_TARNAME "$PACKAGE" 17 17 18 18 /* Define to the version of this package. */ 19 #define PACKAGE_VERSION "1.999.5"19 #define PACKAGE_VERSION $VERSION 20 20 21 21 /* Define to 1 if SSE assembly is available. */ … … 23 23 24 24 /* Version number of package */ 25 #define VERSION " 1.999.5"25 #define VERSION "$VERSION" 26 26 branches/libffado-scons_porting_work/libffado.pc.in
r445 r526 1 prefix= @prefix@2 exec_prefix= @exec_prefix@3 libdir= @libdir@4 includedir= @includedir@1 prefix=$PREFIX 2 exec_prefix=$bindir 3 libdir=$libdir 4 includedir=$includedir 5 5 6 6 Name: libffado 7 7 Description: FFADO 8 Version: @VERSION@8 Version: $VERSION 9 9 Libs: -L${libdir} -lffado 10 10 Cflags: -I${includedir} branches/libffado-scons_porting_work/libffado/SConscript
r519 r526 1 1 #! /usr/bin/env python 2 3 import os.path 2 4 3 5 Import( 'env' ) … … 5 7 env = env.Copy() 6 8 7 env.AppendUnique( CPPPATH=["#/src"] ) 8 env.AppendUnique( LIBPATH=["#/src"] ) 9 env.AppendUnique( LIBS=["ffado"] ) 9 env.Install( os.path.join(env['includedir'],"libffado"), "ffado.h" ) 10 10 11 #env.AppendUnique( CCFLAGS=['-DENABLE_BEBOB'] )12 13 for app in ["test-ffado", "test-extplugcmd", "test-fw410", "test-volume", "test-mixer", "test-cycletimer", "test-timestampedbuffer", "test-ieee1394service", "test-streamdump"]:14 env.Program( target=app, source = app+".cpp" )15 16 #env.Program( target="test-ffado", source = "test-ffado.cpp" )17 #env.Program( target="", source = ".cpp" )18 19 env.Program( target="test-sytmonitor", source = env.Split( "test-sytmonitor.cpp SytMonitor.cpp" ) )20 21 env.SConscript( dirs="streaming", exports="env" )22 branches/libffado-scons_porting_work/SConstruct
r521 r526 5 5 sys.path.append( "./admin" ) 6 6 from pkgconfig import * 7 8 if not os.path.isdir( "cache" ): 9 os.mkdir( "cache" ) 7 10 8 11 opts = Options( "cache/options.cache" ) … … 26 29 specify them only once, scons will save the last value you used and re-use 27 30 that. 31 To really undo your settings and return to the factory defaults, remove the 32 "cache"-folder and the file ".sconsign.dblite" from this directory. 33 For example with: "rm -Rf .sconsign.dblite cache" 28 34 29 35 Currently it seems as if only the BEBOB and the MOTU drivers are … … 37 43 opts.Save( "cache/options.cache", env ) 38 44 39 #env ['CXXFLAGS']+="-Wall -Werror -g -fpic"40 env ['CFLAGS']+="-Wall -g -fpic"45 #env.Append( CCFLAGS = "-Wall -Werror -g -fpic" ) 46 env.Append( CCFLAGS = "-Wall -g -fpic" ) 41 47 42 48 … … 97 103 env.AppendUnique( CPPPATH=["#/"] ) 98 104 105 env['bindir'] = env['PREFIX'] + "/bin" 106 env['libdir'] = env['PREFIX'] + "/lib" 107 env['includedir'] = env['PREFIX'] + "/include" 108 109 env.Alias( "install", env['libdir'] ) 110 env.Alias( "install", env['includedir'] ) 111 112 env['PACKAGE'] = "libffado" 113 env['VERSION'] = "1.999.5" 114 env['LIBVERSION'] = "1.0.0" 99 115 100 116 # … … 103 119 104 120 env.ScanReplace( "config.h.in" ) 121 pkgconfig = env.ScanReplace( "libffado.pc.in" ) 122 env.Alias( "install", env.Install( env['libdir'] + '/pkgconfig', pkgconfig ) ) 105 123 106 env.SConscript( dirs=['src',' tests','support'], exports="env" )124 env.SConscript( dirs=['src','libffado','tests','support'], exports="env" ) 107 125 108 126 # By default only src is built but all is cleaned branches/libffado-scons_porting_work/src/SConscript
r519 r526 1 1 #! /usr/bin/env python 2 3 import os 2 4 3 5 Import( 'env' ) … … 115 117 source += bounce_source 116 118 119 ffadolib = env.SharedLibrary( "ffado", source ) 117 120 118 #source += dice_source + bounce_source + metric_halo_source + rme_source + amdtp_source 121 env.Alias( "install", env.InstallAs( os.path.join('$libdir','libffado.so.$LIBVERSION'), ffadolib ) ) 122 env.Ignore( ffadolib, os.path.join('$libdir','libffado.so') ) 123 #env.Ignore( os.path.join('$libdir','libffado.so'), ffadolib ) 124 #env.Ignore( os.path.join('$libdir','libffado.so.0'), "install" ) 119 125 120 env.SharedLibrary( target="ffado", source=source ) 126 env.Alias( "install", env.Command( target=env['libdir']+"/libffado.so", source=env['libdir']+"/libffado.so.$LIBVERSION", action="ln -s libffado.so.%s $libdir/libffado.so" % env['LIBVERSION'] ) ) 127 env.Alias( "install", env.Command( target="$libdir/libffado.so.%s" % str(env['LIBVERSION']).rsplit('.',1)[0], source=env['libdir']+"/libffado.so.$LIBVERSION", action="ln -s $SOURCE $TARGET" ) ) 128 env.Alias( "install", env.Command( target="$libdir/libffado.so.%s" % str(env['LIBVERSION']).rsplit('.',2)[0], source=env['libdir']+"/libffado.so.$LIBVERSION", action="ln -s $SOURCE $TARGET" ) ) 121 129 122 130 #