diff trunk/SConstruct @ 427:6bc760be184b

Windows build fixes.
author tomwalters
date Tue, 02 Nov 2010 23:46:56 +0000
parents 31d2b3f2c13b
children 4b37b53105a3
line wrap: on
line diff
--- a/trunk/SConstruct	Tue Nov 02 22:17:13 2010 +0000
+++ b/trunk/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)