Mercurial > hg > aimc
comparison trunk/SConstruct @ 427:6bc760be184b
Windows build fixes.
author | tomwalters |
---|---|
date | Tue, 02 Nov 2010 23:46:56 +0000 |
parents | 31d2b3f2c13b |
children | 4b37b53105a3 |
comparison
equal
deleted
inserted
replaced
426:b43c2eec4f73 | 427:6bc760be184b |
---|---|
26 """ | 26 """ |
27 | 27 |
28 import os | 28 import os |
29 import shutil | 29 import shutil |
30 | 30 |
31 # Location of libsndfile on Windows | 31 # Location of libraries / headers on Windows |
32 windows_libsndfile_location = "C:\\Program Files\\Mega-Nerd\\libsndfile\\" | 32 windows_libsndfile_location = "C:\\Program Files\\Mega-Nerd\\libsndfile\\" |
33 windows_cairo_location = "C:\\Program Files\\cairo\\" | |
33 | 34 |
34 # Sources common to every version | 35 # Sources common to every version |
35 common_sources = ['Support/Common.cc', | 36 common_sources = ['Support/Common.cc', |
36 'Support/FileList.cc', | 37 'Support/FileList.cc', |
37 'Support/SignalBank.cc', | 38 'Support/SignalBank.cc', |
195 env.Append(CPPPATH = [windows_libsndfile_location + '/include/']) | 196 env.Append(CPPPATH = [windows_libsndfile_location + '/include/']) |
196 env.AppendUnique(LIBPATH = [build_dir]) | 197 env.AppendUnique(LIBPATH = [build_dir]) |
197 # Replace 'sndfile' with 'sndfile-1' | 198 # Replace 'sndfile' with 'sndfile-1' |
198 deplibs.remove('sndfile') | 199 deplibs.remove('sndfile') |
199 deplibs.append('libsndfile-1') | 200 deplibs.append('libsndfile-1') |
201 if 'cairo' in deplibs: | |
202 shutil.copyfile(windows_cairo_location + '/bin/libcairo-2.dll', | |
203 build_dir+'/libcairo-2.dll') | |
204 env.Append(CPPPATH = [windows_cairo_location + '/include/cairo/']) | |
205 env.AppendUnique(LIBPATH = [windows_cairo_location + '/lib/']) | |
200 env.AppendUnique(LIBS = deplibs) | 206 env.AppendUnique(LIBS = deplibs) |
201 | 207 |
202 | 208 |
203 | 209 |
204 # Builder for the main program | 210 # Builder for the main program |