예제 #1
0
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    SCons.Tool.createSharedLibBuilder(env)
    SCons.Tool.createProgBuilder(env)

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK'] = '$LINK'
    env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
    env[
        'SHLINKCOM'
    ] = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $_LIBDIRFLAGS $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER'] = None
    env['LINK'] = "linkloc"
    env['LINKFLAGS'] = SCons.Util.CLVar('')
    env[
        'LINKCOM'
    ] = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $_LIBDIRFLAGS $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX'] = '-libpath '
    env['LIBDIRSUFFIX'] = ''
    env['LIBLINKPREFIX'] = '-lib '
    env['LIBLINKSUFFIX'] = '$LIBSUFFIX'

    # Set-up ms tools paths for default version
    merge_default_version(env)

    addPharLapPaths(env)
예제 #2
0
파일: 386asm.py 프로젝트: scanlime/picogui
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    as.generate(env)

    env['AS']        = '386asm'
    env['ASFLAGS']   = ''
    env['ASCOM']     = '$AS $ASFLAGS $SOURCES -o $TARGET'
    env['ASPPCOM']   = '$CC $ASFLAGS $CPPFLAGS $SOURCES -o $TARGET'

    addPharLapPaths(env)
예제 #3
0
파일: 386asm.py 프로젝트: mlimper/OpenSG1x
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    assemb.generate(env)

    env['AS']        = '386asm'
    env['ASFLAGS']   = SCons.Util.CLVar('')
    env['ASCOM']     = '$AS $ASFLAGS $SOURCES -o $TARGET'
    env['ASPPCOM']   = '$CC $ASFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS $SOURCES -o $TARGET'

    addPharLapPaths(env)
예제 #4
0
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    as_module.generate(env)

    env["AS"] = "386asm"
    env["ASFLAGS"] = SCons.Util.CLVar("")
    env["ASPPFLAGS"] = "$ASFLAGS"
    env["ASCOM"] = "$AS $ASFLAGS $SOURCES -o $TARGET"
    env["ASPPCOM"] = "$CC $ASPPFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS $SOURCES -o $TARGET"

    addPharLapPaths(env)
예제 #5
0
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    SCons.Tool.createSharedLibBuilder(env)
    SCons.Tool.createProgBuilder(env)

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK'] = '$LINK'
    env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
    env['SHLINKCOM'] = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $_LIBDIRFLAGS $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER'] = None
    env['LINK'] = "linkloc"
    env['LINKFLAGS'] = SCons.Util.CLVar('')
    env['LINKCOM'] = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $_LIBDIRFLAGS $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX'] = '-libpath '
    env['LIBDIRSUFFIX'] = ''
    env['LIBLINKPREFIX'] = '-lib '
    env['LIBLINKSUFFIX'] = '$LIBSUFFIX'

    # Set-up ms tools paths for default version
    merge_default_version(env)

    addPharLapPaths(env)
예제 #6
0
파일: linkloc.py 프로젝트: scanlime/picogui
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    env['BUILDERS']['SharedLibrary'] = SCons.Defaults.SharedLibrary
    env['BUILDERS']['Program'] = SCons.Defaults.Program

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK'] = '$LINK'
    env['SHLINKFLAGS'] = '$LINKFLAGS'
    env['SHLINKCOM'] = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER'] = None
    env['LINK'] = "linkloc"
    env['LINKFLAGS'] = ''
    env['LINKCOM'] = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX'] = '-libpath '
    env['LIBDIRSUFFIX'] = ''
    env['LIBLINKPREFIX'] = '-lib '
    env['LIBLINKSUFFIX'] = '$LIBSUFFIX'

    include_path, lib_path, exe_path = get_msdev_paths()
    env['ENV']['LIB'] = lib_path
    env['ENV']['PATH'] = exe_path

    addPharLapPaths(env)
예제 #7
0
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    SCons.Tool.createSharedLibBuilder(env)
    SCons.Tool.createProgBuilder(env)

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK']      = '$LINK'
    env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
    env['SHLINKCOM']   = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER']= None
    env['LINK']        = "linkloc"
    env['LINKFLAGS']   = SCons.Util.CLVar('')
    env['LINKCOM']     = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX']='-libpath '
    env['LIBDIRSUFFIX']=''
    env['LIBLINKPREFIX']='-lib '
    env['LIBLINKSUFFIX']='$LIBSUFFIX'

    include_path, lib_path, exe_path = get_msvc_paths()
    env['ENV']['LIB']            = lib_path
    env['ENV']['PATH']           = exe_path

    addPharLapPaths(env)
예제 #8
0
파일: linkloc.py 프로젝트: scanlime/picogui
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    env['BUILDERS']['SharedLibrary'] = SCons.Defaults.SharedLibrary
    env['BUILDERS']['Program'] = SCons.Defaults.Program

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK']      = '$LINK'
    env['SHLINKFLAGS'] = '$LINKFLAGS'
    env['SHLINKCOM']   = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER']= None
    env['LINK']        = "linkloc"
    env['LINKFLAGS']   = ''
    env['LINKCOM']     = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX']='-libpath '
    env['LIBDIRSUFFIX']=''
    env['LIBLINKPREFIX']='-lib '
    env['LIBLINKSUFFIX']='$LIBSUFFIX'

    include_path, lib_path, exe_path = get_msdev_paths()
    env['ENV']['LIB']            = lib_path
    env['ENV']['PATH']           = exe_path

    addPharLapPaths(env)
예제 #9
0
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    SCons.Tool.createSharedLibBuilder(env)
    SCons.Tool.createProgBuilder(env)

    env['SUBST_CMD_FILE'] = LinklocGenerator
    env['SHLINK'] = '$LINK'
    env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS')
    env['SHLINKCOM'] = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env['SHLIBEMITTER'] = None
    env['LINK'] = "linkloc"
    env['LINKFLAGS'] = SCons.Util.CLVar('')
    env['LINKCOM'] = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env['LIBDIRPREFIX'] = '-libpath '
    env['LIBDIRSUFFIX'] = ''
    env['LIBLINKPREFIX'] = '-lib '
    env['LIBLINKSUFFIX'] = '$LIBSUFFIX'

    include_path, lib_path, exe_path = get_msvc_paths()
    env['ENV']['LIB'] = lib_path
    env['ENV']['PATH'] = exe_path

    addPharLapPaths(env)
예제 #10
0
파일: linkloc.py 프로젝트: Html5Lexloo/o3d
def generate(env):
    """Add Builders and construction variables for ar to an Environment."""
    SCons.Tool.createSharedLibBuilder(env)
    SCons.Tool.createProgBuilder(env)

    env["SUBST_CMD_FILE"] = LinklocGenerator
    env["SHLINK"] = "$LINK"
    env["SHLINKFLAGS"] = SCons.Util.CLVar("$LINKFLAGS")
    env["SHLINKCOM"] = '${SUBST_CMD_FILE("$SHLINK $SHLINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -dll $TARGET $SOURCES")}'
    env["SHLIBEMITTER"] = None
    env["LINK"] = "linkloc"
    env["LINKFLAGS"] = SCons.Util.CLVar("")
    env["LINKCOM"] = '${SUBST_CMD_FILE("$LINK $LINKFLAGS $( $_LIBDIRFLAGS $) $_LIBFLAGS -exe $TARGET $SOURCES")}'
    env["LIBDIRPREFIX"] = "-libpath "
    env["LIBDIRSUFFIX"] = ""
    env["LIBLINKPREFIX"] = "-lib "
    env["LIBLINKSUFFIX"] = "$LIBSUFFIX"

    msvs_version = env.get("MSVS_VERSION")
    include_path, lib_path, exe_path = get_msvc_paths(env, version=msvs_version)
    env["ENV"]["LIB"] = lib_path
    env.PrependENVPath("PATH", exe_path)

    addPharLapPaths(env)