Example #1
0
def main(config):
    preprocess(config,
               in_fn=home_fn('tap-win32/SOURCES.in'),
               out_fn=home_fn('tap-win32/SOURCES'),
               quote_begin='@@',
               quote_end='@@',
               head_comment='# %s\n\n' % autogen)

    preprocess(config,
               in_fn=home_fn('tap-win32/i386/OemWin2k.inf.in'),
               out_fn=home_fn('tap-win32/i386/OemWin2k.inf'),
               quote_begin='@@',
               quote_end='@@',
               if_prefix='!',
               head_comment='; %s\n\n' % autogen)

    try:
        os.mkdir(home_fn('tap-win32/amd64'))
    except:
        pass
    preprocess(dict_def(config, [('AMD64', '1')]),
               in_fn=home_fn('tap-win32/i386/OemWin2k.inf.in'),
               out_fn=home_fn('tap-win32/amd64/OemWin2k.inf'),
               quote_begin='@@',
               quote_end='@@',
               if_prefix='!',
               head_comment='; %s\n\n' % autogen)
Example #2
0
def main(config):
    preprocess(config,
               in_fn=home_fn('tap-win32/SOURCES.in'),
               out_fn=home_fn('tap-win32/SOURCES'),
               quote_begin='@@',
               quote_end='@@',
               head_comment='# %s\n\n' % autogen)

    preprocess(config,
               in_fn=home_fn('tap-win32/i386/OemWin2k.inf.in'),
               out_fn=home_fn('tap-win32/i386/OemWin2k.inf'),
               quote_begin='@@',
               quote_end='@@',
               if_prefix='!',
               head_comment='; %s\n\n' % autogen)

    try:
        os.mkdir(home_fn('tap-win32/amd64'))
    except:
        pass
    preprocess(dict_def(config, [('AMD64', '1')]),
               in_fn=home_fn('tap-win32/i386/OemWin2k.inf.in'),
               out_fn=home_fn('tap-win32/amd64/OemWin2k.inf'),
               quote_begin='@@',
               quote_end='@@',
               if_prefix='!',
               head_comment='; %s\n\n' % autogen)
Example #3
0
def main(config):
    build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
    ho = make_headers_objs(home_fn('Makefile.am'))

    preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
               in_fn=mod_fn('msvc.mak.in'),
               out_fn=home_fn('msvc.mak'),
               quote_begin='@',
               quote_end='@',
               head_comment='# %s\n\n' % autogen)
Example #4
0
def main(config):
    build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
    ho = make_headers_objs(home_fn('Makefile.am'))

    preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
               in_fn=mod_fn('msvc.mak.in'),
               out_fn=home_fn('msvc.mak'),
               quote_begin='@',
               quote_end='@',
               if_prefix='!',
               head_comment='# %s\n\n' % autogen)
Example #5
0
def main(config):
    build_autodefs(config, mod_fn("autodefs.h.in"), home_fn("autodefs.h"))
    ho = make_headers_objs(home_fn("Makefile.am"))

    preprocess(
        dict_def(config, [("HEADERS_OBJS", ho)]),
        in_fn=mod_fn("msvc.mak.in"),
        out_fn=home_fn("msvc.mak"),
        quote_begin="@",
        quote_end="@",
        if_prefix="!",
        head_comment="# %s\n\n" % autogen,
    )
Example #6
0
def main(config):
    build_config_h(config)
    build_configure_h(config, mod_fn(home_fn('configure.h')), head_comment='/* %s */\n\n' % autogen)
    build_version_m4_vars(mod_fn(mod_fn('version_m4_vars.tmp')), head_comment='/* %s */\n\n' % autogen)
    build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
    ho = make_headers_objs(home_fn('Makefile.am'))

    preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
               in_fn=mod_fn('msvc.mak.in'),
               out_fn=home_fn('msvc.mak'),
               quote_begin='@',
               quote_end='@',
               if_prefix='!',
               head_comment='# %s\n\n' % autogen)
Example #7
0
def main():
    rm_rf(dest_top)
    os.mkdir(dest_top)

    rm_rf(dist)
    os.mkdir(dist)

    for ver in hi, low:
        top = os.path.join(dest_top, str(ver[1]))
        os.mkdir(top)
        tap_dest = os.path.join(top, "tap-win32")
        ti_dest = os.path.join(top, "tapinstall")
        ti_src = os.path.join(ti_dir, str(ver[2]))
        shutil.copytree(home_fn("tap-win32"), tap_dest)
        shutil.copytree(ti_src, ti_dest)

        i386 = os.path.join(tap_dest, "i386")
        amd64 = os.path.join(tap_dest, "amd64")

        build_amd64 = (len(ver[3]) >= 2)

        build_autodefs(config, mod_fn('autodefs.h.in'), os.path.join(top, 'autodefs.h'))

        st = SignTool(config, tap_dest)

        preprocess(config,
                   in_fn=os.path.join(tap_dest, 'SOURCES.in'),
                   out_fn=os.path.join(tap_dest, 'SOURCES'),
                   quote_begin='@@',
                   quote_end='@@',
                   head_comment='# %s\n\n' % autogen)

        preprocess(config,
                   in_fn=os.path.join(i386, 'OemWin2k.inf.in'),
                   out_fn=os.path.join(i386, 'OemWin2k.inf'),
                   quote_begin='@@',
                   quote_end='@@',
                   if_prefix='!',
                   head_comment='; %s\n\n' % autogen)

        preprocess(config,
                   in_fn=os.path.join(ti_dest, 'sources.in'),
                   out_fn=os.path.join(ti_dest, 'sources'),
                   if_prefix='!',
                   head_comment='# %s\n\n' % autogen)

        build_tap(ddk_path=ver[0],
                  ddk_major=ver[1],
                  debug=False,
                  dir=tap_dest,
                  x64=False)

        st.sign_verify(x64=False)

        build_tap(ddk_path=ver[0],
                  ddk_major=ver[1],
                  debug=False,
                  dir=ti_dest,
                  x64=False)

        tap_dist = os.path.join(dist, ver[3][0])

        copy_tap(tap_dest, tap_dist, x64=False)
        copy_tapinstall(ti_dest, tap_dist, x64=False)

        if build_amd64:
            os.mkdir(amd64)
            preprocess(dict_def(config, [('AMD64', '1')]),
                       in_fn=os.path.join(i386, 'OemWin2k.inf.in'),
                       out_fn=os.path.join(amd64, 'OemWin2k.inf'),
                       quote_begin='@@',
                       quote_end='@@',
                       if_prefix='!',
                       head_comment='; %s\n\n' % autogen)

            build_tap(ddk_path=ver[0],
                      ddk_major=ver[1],
                      debug=False,
                      dir=tap_dest,
                      x64=True)

            build_tap(ddk_path=ver[0],
                      ddk_major=ver[1],
                      debug=False,
                      dir=ti_dest,
                      x64=True)

            st.sign_verify(x64=True)

            tap_dist_x64 = os.path.join(dist, ver[3][1])

            copy_tap(tap_dest, tap_dist_x64, x64=True)
            copy_tapinstall(ti_dest, tap_dist_x64, x64=True)
Example #8
0
def main():
    rm_rf(dest_top)
    os.mkdir(dest_top)

    rm_rf(dist)
    os.mkdir(dist)

    for ver in hi, low:
        top = os.path.join(dest_top, str(ver[1]))
        os.mkdir(top)
        tap_dest = os.path.join(top, "tap-win32")
        ti_dest = os.path.join(top, "tapinstall")
        ti_src = os.path.join(ti_dir, str(ver[2]))
        shutil.copytree(home_fn("tap-win32"), tap_dest)
        shutil.copytree(ti_src, ti_dest)

        i386 = os.path.join(tap_dest, "i386")
        amd64 = os.path.join(tap_dest, "amd64")

        build_amd64 = (len(ver[3]) >= 2)

        build_autodefs(config, mod_fn('autodefs.h.in'), os.path.join(top, 'autodefs.h'))

        st = SignTool(config, tap_dest)

        preprocess(config,
                   in_fn=os.path.join(tap_dest, 'SOURCES.in'),
                   out_fn=os.path.join(tap_dest, 'SOURCES'),
                   quote_begin='@@',
                   quote_end='@@',
                   head_comment='# %s\n\n' % autogen)

        preprocess(config,
                   in_fn=os.path.join(i386, 'OemWin2k.inf.in'),
                   out_fn=os.path.join(i386, 'OemWin2k.inf'),
                   quote_begin='@@',
                   quote_end='@@',
                   if_prefix='!',
                   head_comment='; %s\n\n' % autogen)

        preprocess(config,
                   in_fn=os.path.join(ti_dest, 'sources.in'),
                   out_fn=os.path.join(ti_dest, 'sources'),
                   if_prefix='!',
                   head_comment='# %s\n\n' % autogen)

        build_tap(ddk_path=ver[0],
                  ddk_major=ver[1],
                  debug=False,
                  dir=tap_dest,
                  x64=False)

        st.sign_verify(x64=False)

        build_tap(ddk_path=ver[0],
                  ddk_major=ver[1],
                  debug=False,
                  dir=ti_dest,
                  x64=False)

        tap_dist = os.path.join(dist, ver[3][0])

        copy_tap(tap_dest, tap_dist, x64=False)
        copy_tapinstall(ti_dest, tap_dist, x64=False)

        if build_amd64:
            os.mkdir(amd64)
            preprocess(dict_def(config, [('AMD64', '1')]),
                       in_fn=os.path.join(i386, 'OemWin2k.inf.in'),
                       out_fn=os.path.join(amd64, 'OemWin2k.inf'),
                       quote_begin='@@',
                       quote_end='@@',
                       if_prefix='!',
                       head_comment='; %s\n\n' % autogen)

            build_tap(ddk_path=ver[0],
                      ddk_major=ver[1],
                      debug=False,
                      dir=tap_dest,
                      x64=True)

            build_tap(ddk_path=ver[0],
                      ddk_major=ver[1],
                      debug=False,
                      dir=ti_dest,
                      x64=True)

            st.sign_verify(x64=True)

            tap_dist_x64 = os.path.join(dist, ver[3][1])

            copy_tap(tap_dest, tap_dist_x64, x64=True)
            copy_tapinstall(ti_dest, tap_dist_x64, x64=True)