~russel/groovynativelauncher/trunk

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Russel Winder
  • Date: 2010-04-09 12:11:09 UTC
  • Revision ID: russel@russel.org.uk-20100409121109-a1e0dl4jk0srzie3
Minor refactoring of the Mac OS X environments.
Tests now execute on Mac OS X Snow Leopard (32-bit)

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
 
250
250
if environment['Architecture'] in [ 'Linux' ] : environment.Append ( LIBS = [ 'dl' ] )
251
251
 
 
252
if environment['PLATFORM'] == 'darwin' :
 
253
    environment.Append ( LINKFLAGS = [ '-framework' ,  'CoreFoundation' ] )
 
254
 
252
255
#  As well as preparing executables for people to use, a shared library for test is also produced and this
253
256
#  involves SWIG.  Note the removal of the shared library prefix, this is basically to ensure the whole SWIG
254
257
#  infrastructure works as required when making Python native extensions.
268
271
    swigEnvironment.Append ( LIBPATH = [ getPythonLibraryPaths( standard_lib = True ) + 's' ] )
269
272
 
270
273
if environment['PLATFORM'] == 'darwin' :
271
 
    environment.Append ( LINKFLAGS = [ '-framework' ,  'CoreFoundation' , '-framework' , 'Python' ] )
 
274
    swigEnvironment.Append ( LINKFLAGS = [ '-framework' , 'Python' ] )
272
275
    swigEnvironment.Prepend ( SWIGPATH = [ '#sourceForDarwinSWIG' ] )
273
276
 
274
277
Export ( 'swigEnvironment' )