Ejemplo n.º 1
0
                    proc = subprocess.Popen([res, "runConfigureICU", "Cygwin/MSVC", "--prefix"
                                            , "{}".format(current_dir_cygwin)],
                             env=icu_environment(),
                             cwd=os.path.join(self._context["build_path"], "source"),
                             shell=True,
                             stdout=sout, stderr=serr)
                proc.communicate()
                if proc.returncode != 0:
                    logging.error("failed to run icu runConfigureICU (returncode %s), see %s and %s",
                                  proc.returncode, soutpath, serrpath)
                    return False

            return True


Convert_icu = build.Run(r"dos2unix -f configure",
                        environment=icu_environment(),
                        working_directory=lambda: os.path.join(config["paths"]["build"], "icu", "source"))

icu = Project('icu') \
        .depend(build_icu
                .depend(ConfigureIcu()
                        .depend(Convert_icu
                                .depend(Patch.Replace("source/io/ufile.cpp",
                                                      "#if U_PLATFORM_USES_ONLY_WIN32_API",
                                                      "#if U_PLATFORM_USES_ONLY_WIN32_API && _MSC_VER < 1900")
                                        .depend(sourceforge.Release("icu","ICU4C/{0}.{1}/icu4c-{0}_{1}-src.tgz"
                                                                    .format(icu_version,icu_version_minor),tree_depth=1)
                                                                            .set_destination("icu"))))))\
        .depend("cygwin")
Ejemplo n.º 2
0
#Need to revert till Modorganizer-Archive is either redone or fixed
sevenzip_version = "9.20"

Project("7zip") \
   .depend(Patch.Copy(os.path.join(config['paths']['build'], "7zip", "CPP", "7zip", "Bundles", "Format7zF", "{}"
                                    .format("x86" if config['architecture'] == 'x86' else "AMD64"), "7z.dll"),
                      os.path.join(config["paths"]["install"], "bin", "dlls"))
           .depend(build.Run(r"nmake CPU={} NEW_COMPILER=1 MY_STATIC_LINK=1 NO_BUFFEROVERFLOWU=1".format(
    "x86" if config['architecture'] == 'x86' else "AMD64"),
                              working_directory=os.path.join(config['paths']['build'], "7zip", "CPP", "7zip","Bundles",
                                                             "Format7zF"))
                    .depend(Patch.Replace("CPP/Build.mak",
                                 "-WX",
                                 "")
                            .depend(Patch.Replace("CPP/7zip/Bundles/Format7zF/Format7z.dsp",
                                                  "-WX",
                                                  "")
                                .depend(urldownload.URLDownload(
                                    "http://www.7-zip.org/a/7z{}.tar.bz2".format(sevenzip_version.replace(".", "")))
                                        .set_destination("7zip"))))))

#7zip Code for 16.04
# sevenzip is not built here as we only use its source
#Project("7zip") \
#    .depend(Patch.Copy(os.path.join(config['paths']['build'], "7zip", "CPP", "7zip", "Bundles", "Format7zF", "{}"
#                                    .format("x86" if config['architecture'] == 'x86' else "AMD64"), "7z.dll"),
#                       os.path.join(config["paths"]["install"], "bin", "dlls"))
#            .depend(build.Run(r"nmake CPU={} NEW_COMPILER=1 MY_STATIC_LINK=1 NO_BUFFEROVERFLOWU=1".format(
#    "x86" if config['architecture'] == 'x86' else "AMD64"),
#                              working_directory=os.path.join(config['paths']['build'], "7zip", "CPP", "7zip"))
#                    .depend(urldownload.URLDownload(