Mercurial > hg > aimc
diff SConstruct @ 141:bbf4728ffa0e
Windows build fixes.
author | tomwalters |
---|---|
date | Tue, 02 Nov 2010 23:46:56 +0000 |
parents | 5d4b269b67d2 |
children | ce97ae23c66b |
line wrap: on
line diff
--- a/SConstruct Mon Nov 01 01:36:44 2010 +0000 +++ b/SConstruct Tue Nov 02 23:46:56 2010 +0000 @@ -28,8 +28,9 @@ import os import shutil -# Location of libsndfile on Windows +# Location of libraries / headers on Windows windows_libsndfile_location = "C:\\Program Files\\Mega-Nerd\\libsndfile\\" +windows_cairo_location = "C:\\Program Files\\cairo\\" # Sources common to every version common_sources = ['Support/Common.cc', @@ -197,6 +198,11 @@ # Replace 'sndfile' with 'sndfile-1' deplibs.remove('sndfile') deplibs.append('libsndfile-1') + if 'cairo' in deplibs: + shutil.copyfile(windows_cairo_location + '/bin/libcairo-2.dll', + build_dir+'/libcairo-2.dll') + env.Append(CPPPATH = [windows_cairo_location + '/include/cairo/']) + env.AppendUnique(LIBPATH = [windows_cairo_location + '/lib/']) env.AppendUnique(LIBS = deplibs)