Mercurial > hg > aimc
comparison trunk/SConstruct @ 293:aeac9e2151c6
-Added necessary header files for linux build
-Temporarily commented out the test target in order to prevent loads of warnings from SCons.
author | tomwalters |
---|---|
date | Mon, 22 Feb 2010 18:10:55 +0000 |
parents | 10d0803e37ec |
children | fe5ce00a64f5 |
comparison
equal
deleted
inserted
replaced
292:10d0803e37ec | 293:aeac9e2151c6 |
---|---|
123 | 123 |
124 # Place the build products in the corect place | 124 # Place the build products in the corect place |
125 env.VariantDir('#' + build_dir, '#', duplicate = 0) | 125 env.VariantDir('#' + build_dir, '#', duplicate = 0) |
126 | 126 |
127 # Look for the sources in the correct place | 127 # Look for the sources in the correct place |
128 env.Append(CPPPATH = '#src') | 128 env.Append(CPPPATH = ['#src']) |
129 | 129 |
130 # Dependencies | 130 # Dependencies |
131 deplibs = ['sndfile'] | 131 deplibs = ['sndfile'] |
132 | 132 |
133 for depname in deplibs: | 133 for depname in deplibs: |
134 env.ParseConfig('pkg-config --cflags --libs ' + depname) | 134 env.ParseConfig('pkg-config --cflags --libs ' + depname) |
135 | 135 |
136 env.AppendUnique(LIBS = deplibs) | 136 env.AppendUnique(LIBS = deplibs) |
137 | 137 |
138 test_env = env | |
139 test_libs = ['gtest', 'gtest_main'] | |
140 #for depname in test_libs: | |
141 # test_env.ParseConfig('pkg-config --cflags --libs ' + depname) | |
142 test_env.AppendUnique(LIBPATH = '/usr/local/lib', | |
143 CPPPATH = '/usr/local/lib', | |
144 LIBS = test_libs) | |
145 | 138 |
146 # Builder for the main program | 139 # Builder for the main program |
147 program = env.Program(target = os.path.join(build_dir, target_executable), | 140 program = env.Program(target = os.path.join(build_dir, target_executable), |
148 source = map(lambda x: '#' + build_dir + '/src/' + x, | 141 source = map(lambda x: '#' + build_dir + '/src/' + x, |
149 sources)) | 142 sources)) |
150 env.Alias(target_executable, os.path.join(build_dir, target_executable)) | 143 env.Alias(target_executable, os.path.join(build_dir, target_executable)) |
151 env.Default(program) | 144 env.Default(program) |
152 | 145 |
153 test = test_env.Program(target = os.path.join(build_dir, test_executable), | 146 #test_env = env.Clone() |
154 source = map(lambda x: '#' + build_dir + '/src/' + x, | 147 #test_libs = ['gtest', 'gtest_main'] |
155 test_sources)) | 148 #for depname in test_libs: |
156 env.Alias('test', os.path.join(build_dir, test_executable)) | 149 # test_env.ParseConfig('pkg-config --cflags --libs ' + depname) |
150 #test_env.AppendUnique(LIBPATH = ['/usr/local/lib'], | |
151 # CPPPATH = ['/usr/local/lib'], | |
152 # LIBS = test_libs) | |
153 | |
154 #test = test_env.Program(target = os.path.join(build_dir, test_executable), | |
155 # source = map(lambda x: '#' + build_dir + '/src/' + x, | |
156 # test_sources)) | |
157 #env.Alias('test', os.path.join(build_dir, test_executable)) |