Changeset 3259


Ignore:
Timestamp:
Jun 29, 2006, 3:49:10 PM (18 years ago)
Author:
jack
Message:

Preliminary SCons support for Win32.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • SConstruct

    r3246 r3259  
    11import os
    22import sys
     3
     4env = Environment()
    35
    46# Find the path for Python.h and then share it to other SConscripts later on
     
    68if sys.platform == 'win32':  #Windows
    79    python_include = os.path.join(sys.exec_prefix, 'include')
     10    # Windows installs need to be told the lib path and the python library name
     11    # else it won't work right.
     12    python_libdir = os.path.join(sys.exec_prefix, 'libs')
     13    try:
     14        env['LIBPATH'] = env['LIBPATH'] + [python_libdir]
     15    except KeyError:
     16        env['LIBPATH'] = [python_libdir]
     17    python_libname = 'python%d%d' % (sys.version_info[0], sys.version_info[1])
     18    try:
     19        env['LIBS'] = env['LIBS'] + [python_libname]
     20    except KeyError:
     21        env['LIBS'] = [python_libname]
    822else:
    923    python_include = os.path.join(os.path.join(sys.exec_prefix, 'include'),
     
    2034    package called something like python2.3-dev""" %headerfile
    2135
    22 env = Environment()
    2336try:
    2437    env['CPPPATH'] = env['CPPPATH'] + [python_include]
    2538except KeyError:
    2639    env['CPPPATH'] = [python_include]
     40
    2741Export('env')
    2842
  • inundation/utilities/SConscript

    r3246 r3259  
    11Import('env')
    22env.SharedLibrary('polygon_ext', ['polygon_ext.c'])
     3env.SharedLibrary('util_ext', ['util_ext.c'])
Note: See TracChangeset for help on using the changeset viewer.