Changeset 2517 for trunk/scons


Ignore:
Timestamp:
05/15/12 15:17:10 (12 years ago)
Author:
Malte Marquarding
Message:

More updates to get a distutils/scons build going

Location:
trunk/scons
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scons/utils.py

    r1465 r2517  
    44import re
    55import platform
     6
     7def get_libdir():
     8    import distutils.sysconfig
     9    return os.path.basename(distutils.sysconfig.get_config_var('LIBDIR'))
     10
     11LIBDIR = "lib" #get_libdir()
    612
    713def generate(env):
     
    3339            env.Exit(1)
    3440        env.PrependUnique(CPPPATH = [os.path.join(path, "include")])
    35         env.PrependUnique(LIBPATH = [os.path.join(path, "lib")])
     41        env.PrependUnique(LIBPATH = [os.path.join(path, LIBDIR)])
    3642    env.AddCustomPath = AddCustomPath
    3743
     
    4652        if pkgroot is not None:
    4753            incd = os.path.join(pkgroot, "include")
    48             libd = os.path.join(pkgroot, "lib")
     54            libd = os.path.join(pkgroot, LIBDIR)
    4955        else:       
    5056            if pkgincd is not None:
Note: See TracChangeset for help on using the changeset viewer.