예제 #1
0
def build_tap(ddk_path, ddk_major, debug, dir, x64):
    """Build drivers using WinDDK tools"""
    setenv_bat = os.path.realpath(os.path.join(ddk_path, 'bin/setenv.bat'))
    target = 'chk' if debug else 'fre'
    if x64:
        target += ' x64'
    else:
        target += ' x86'
    if ddk_major >= 7600:
        if x64:
            target += ' wlh'  # vista
        else:
            target += ' wnet' # server 2003
    else:
        if x64:
            target += ' wnet' # server 2003
        else:
            target += ' w2k'  # 2000

    system('cmd /c "%s %s %s && cd %s && build -cef"' % (
           setenv_bat,
           os.path.realpath(ddk_path),
           target,
           dir
           ))
예제 #2
0
def build_tap(ddk_path, ddk_major, debug, dir, x64):
    """Build drivers using WinDDK tools"""
    setenv_bat = os.path.realpath(os.path.join(ddk_path, 'bin/setenv.bat'))
    target = 'chk' if debug else 'fre'
    if x64:
        target += ' x64'
    else:
        target += ' x86'
    if ddk_major >= 7600:
        if x64:
            target += ' wlh'  # vista
        else:
            target += ' wnet'  # server 2003
    else:
        if x64:
            target += ' wnet'  # server 2003
        else:
            target += ' w2k'  # 2000

    system('cmd /c "%s %s %s && cd %s && build -cef"' %
           (setenv_bat, os.path.realpath(ddk_path), target, dir))
예제 #3
0
def build_ddk(config, dir, x64):
    setenv_bat = os.path.realpath(os.path.join(config["DDK_PATH"], "bin/setenv.bat"))
    ddk_major = int(config["DDKVER_MAJOR"])
    debug = "PRODUCT_TAP_DEBUG" in config
    target = "chk" if debug else "fre"
    if x64:
        target += " x64"
    else:
        target += " x86"
    if ddk_major >= 7600:
        if x64:
            target += " wlh"  # vista
        else:
            target += " wnet"  # server 2003
    else:
        if x64:
            target += " wnet"  # server 2003
        else:
            target += " w2k"  # 2000

    system('cmd /c "%s %s %s && cd %s && build -cef"' % (setenv_bat, os.path.realpath(config["DDK_PATH"]), target, dir))
예제 #4
0
def build_vc(cmd):
    system('cmd /c "vcvarsall.bat x86 && %s"' % (cmd, ))
예제 #5
0
def build_vc(cmd):
    system('cmd /c "vcvarsall.bat x86 && %s"' % (cmd,))