Пример #1
0
            if os.getenv("APPVEYOR_PROJECT_NAME","") == git_path:
                source_retrieval_step = appveyor.SetProjectFolder(os.getenv("APPVEYOR_BUILD_FOLDER", ""))
            else:
                source_retrieval_step = github.Source(author, git_path, branch, feature_branch=config['Feature_Branch'], super_repository=tl_repo).set_destination(path)

            if git_path == "modorganizer" and config['override_build_version']:
                #add patching step that depends on source retrieval
                patch_version_step.depend(source_retrieval_step)
                appveyor_cmake_step.depend(patch_version_step)
            else:
                appveyor_cmake_step.depend(source_retrieval_step)

            project.depend(appveyor_cmake_step)
        else:
            vs_cmake_step = cmake.CMakeVS().arguments(cmake_param).install()

            if git_path != "cmake_common":
                vs_cmake_step.depend("cmake_common")

            for dep in dependencies:
                vs_cmake_step.depend(dep)

            #vs_target = "Clean;Build" if config['rebuild'] else "Build"
            vs_msbuild_step = msbuild.MSBuild(os.path.join("vsbuild", "INSTALL.vcxproj"), None, None,
                                              "{}".format("x64" if config['architecture'] == 'x86_64' else "x86"),
                                              config['build_type'])

            source_retrieval_step = github.Source(author, git_path, branch, feature_branch=config['Feature_Branch'], super_repository=tl_repo).set_destination(path)

            if git_path == "modorganizer" and config['override_build_version']:
         "modorganizer-archive", "modorganizer-bsatk", "modorganizer-esptk",
         "modorganizer-game_features", "usvfs", "githubpp", "NCC", "openssl"
     ], True),
]:
    build_step = cmake.CMake().arguments(cmake_parameters +
                                          ["-DCMAKE_INSTALL_PREFIX:PATH={}".format(config["paths"]["install"])]) \
        .install()

    for dep in dependencies:
        build_step.depend(dep)

    project = Project(git_path)

    if Build:
        vs_step = cmake.CMakeVS().arguments(cmake_parameters +
                                             ["-DCMAKE_INSTALL_PREFIX:PATH={}".format(config["paths"]["install"])]) \
            .install()

        for dep in dependencies:
            vs_step.depend(dep)

        project.depend(
            vs_step.depend(
                github.Source(author,
                              git_path,
                              branch,
                              super_repository=tl_repo).set_destination(path)))
    else:
        project.depend(
            github.Source(author, git_path, branch,
                          super_repository=tl_repo).set_destination(path))