Exemple #1
0
        result['Path'] = ";".join([
            os.path.join(config['paths']['build'], "icu", "dist", "bin"),
            os.path.join(config['paths']['build'], "icu", "dist", "lib"),
            os.path.join(config['paths']['build'], "jom")]) + ";" + result['Path']
        result['INCLUDE'] = os.path.join(config['paths']['build'], "icu", "dist", "include") + ";" + \
                             os.path.join(config['paths']['build'], "Win{}OpenSSL-{}".format(bitness(), openssl_version.replace(".", "_")), "include") + ";" + \
                             result['INCLUDE']
        result['LIB'] = os.path.join(config['paths']['build'], "icu", "dist", "lib") + ";" + \
                         os.path.join(config['paths']['build'], "Win{}OpenSSL-{}".format(bitness(), openssl_version.replace(".", "_")), "lib", "VC") + ";" + \
                         result['LIB']
        result['LIBPATH'] = os.path.join(config['paths']['build'], "icu", "dist", "lib") + ";" + result['LIBPATH']
        return result

    init_repo = build.Run("perl init-repository", name="init qt repository") \
        .set_fail_behaviour(Task.FailBehaviour.CONTINUE) \
        .depend(git.Clone("http://code.qt.io/qt/qt5.git", qt_version))	# Internet proxy could refuse git protocol

    build_qt5 = build.Run(r"jom.exe -j {}".format(config['num_jobs']),
                          environment=qt5_environment(),
                          name="Build Qt5",
                          working_directory=lambda: os.path.join(qt5['build_path']))

    install_qt5 = build.Run(r"nmake install",
                            environment=qt5_environment(),
                            name="Install Qt5",
                            working_directory=lambda: os.path.join(qt5['build_path']))


    def copy_icu_libs(context):
        for f in glob(os.path.join(config['paths']['build'], "icu", "dist", "lib", "icu*{}.dll".format(icu_version))):
            shutil.copy(f, os.path.join(config["paths"]["build"], "qt5", "bin"))
Exemple #2
0
        "qtwebkit/Source/WebCore/platform/text/TextEncodingRegistry.cpp",
        "#if OS(WINDOWS) && USE(WCHAR_UNICODE)",
        "#if OS(WINCE) && USE(WCHAR_UNICODE)")

    build_webkit = build.Run(r"perl Tools\Scripts\build-webkit --qt --release",
                             environment=webkit_env,
                             working_directory=lambda: os.path.join(qt5['build_path'], "qtwebkit"),
                             name="build webkit") \
        .depend('grep').depend('flex')

    # comment to build webkit
    #build_webkit = dummy.Success("webkit")

    init_repo = build.Run("perl init-repository", name="init qt repository") \
        .set_fail_behaviour(Task.FailBehaviour.CONTINUE) \
        .depend(git.Clone("git://code.qt.io/qt/qt5.git", qt_version))

    build_qt5 = build.Run(
        r"jom.exe -j {}".format(config['num_jobs']),
        environment=qt5_environment(),
        name="Build Qt5",
        working_directory=lambda: os.path.join(qt5['build_path']))

    install_qt5 = build.Run(
        r"nmake install",
        environment=qt5_environment(),
        name="Install Qt5",
        working_directory=lambda: os.path.join(qt5['build_path']))

    install_webkit = build.Run(
        r"nmake install",
Exemple #3
0
boost_components = [
    "date_time", "coroutine", "filesystem", "python", "thread", "log", "locale"
]

config_template = ("using python\n"
                   "  : {0}\n"
                   "  : {1}/python.exe\n"
                   "  : {2}/Include\n"
                   "  : {1}\n"
                   "  : <address-model>{3}\n"
                   "  : <define>BOOST_ALL_NO_LIB=1\n"
                   "  ;")

init_repo = build.Run("git submodule init && git submodule update", name="init boost repository" ,working_directory=lambda: os.path.join(config["paths"]["build"], "boost_git")) \
    .set_fail_behaviour(Task.FailBehaviour.CONTINUE) \
    .depend(git.Clone("https://github.com/boostorg/boost.git", "develop").set_destination("boost_git"))

Project("boostgit") \
    .depend(b2.B2(name="Shared").arguments(["address-model={}".format("64" if config['architecture'] == 'x86_64' else "32"),
                                            "-a",
                                            "--user-config={}".format(os.path.join(config['paths']['build'],
                                                                                   "boost_git",
                                                                                   "user-config.jam")),
                                            "-j {}".format(config['num_jobs']),

                                            "toolset=msvc-" + vc_version,

                                            "link=shared",
                                            "include={}".format(os.path.join(config['paths']['build'], "icu", "dist", "include", "unicode")),
                                            "-sICU_PATH={}".format(
                                                os.path.join(config['paths']['build'], "icu", "dist")),