def compile(self) -> None: """Compile the project.""" brotli_version_source = local.path(self.source_of_primary) brotli_git_path = get_local_project_git_path(self.NAME) brotli_version = ShortCommitHash(self.version_of_primary) with local.cwd(brotli_git_path): configure_revisions = get_all_revisions_between( "f9ab24a7aaee93d5932ba212e5e3d32e4306f748", "5814438791fb2d4394b46e5682a96b68cd092803", ShortCommitHash) simple_make_revisions = get_all_revisions_between( "e1739826c04a9944672b99b98249dda021bdeb36", "378485b097fd7b80a5e404a3cb912f7b18f78cdb", ShortCommitHash) c_compiler = bb.compiler.cc(self) if brotli_version in simple_make_revisions: with local.cwd(brotli_version_source / "tools"): bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) elif brotli_version in configure_revisions: with local.cwd(brotli_version_source): with local.env(CC=str(c_compiler)): bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) else: mkdir(brotli_version_source / "out") with local.cwd(brotli_version_source / "out"): with local.env(CC=str(c_compiler)): bb.watch(local["../configure-cmake"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) with local.cwd(brotli_version_source): verify_binaries(self)
def compile(self) -> None: """Compile the project.""" x264_version_source = local.path(self.source_of_primary) x264_version = ShortCommitHash(self.version_of_primary) fpic_revisions = get_all_revisions_between( "5dc0aae2f900064d1f58579929a2285ab289a436", "290de9638e5364c37316010ac648a6c959f6dd26", ShortCommitHash, x264_version_source) ldflags_revisions = get_all_revisions_between( "6490f4398d9e28e65d7517849e729e14eede8c5b", "275ef5332dffec445a0c5a78dbc00c3e0766011d", ShortCommitHash, x264_version_source) if x264_version in fpic_revisions: self.cflags += ["-fPIC"] clang = bb.compiler.cc(self) with local.cwd(x264_version_source): with local.env(CC=str(clang)): configure_flags = ["--disable-asm"] if x264_version in ldflags_revisions: configure_flags.append("--extra-ldflags=\"-static\"") bb.watch(local["./configure"])(configure_flags) bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def __compile_make(self) -> None: libssh_source = local.path(self.source_of(self.primary_source)) libssh_version = ShortCommitHash(self.version_of_primary) autoconf_revisions = get_all_revisions_between( "5e02c25291d594e01a910fce097a3fc5084fd68f", "21e639cc3fd54eb3d59568744c9627beb26e07ed", ShortCommitHash, libssh_source ) autogen_revisions = get_all_revisions_between( "ca32b0aa146b31d7772f27d16098845e615432aa", "ee54acb417c5589a8dc9dab0676f34b3d40a182b", ShortCommitHash, libssh_source ) compiler = bb.compiler.cc(self) with local.cwd(libssh_source): with local.env(CC=str(compiler)): if libssh_version in autogen_revisions: bb.watch("./autogen.sh")() if libssh_version in autoconf_revisions: bb.watch("autoreconf")() configure = bb.watch(local["./configure"]) configure() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" xz_git_path = get_local_project_git_path(self.NAME) xz_version_source = local.path(self.source_of_primary) xz_version = self.version_of_primary # dynamic linking is off by default until # commit f9907503f882a745dce9d84c2968f6c175ba966a # (fda4724 is its parent) with local.cwd(xz_git_path): revisions_wo_dynamic_linking = get_all_revisions_between( "5d018dc03549c1ee4958364712fb0c94e1bf2741", "fda4724d8114fccfa31c1839c15479f350c2fb4c", ShortCommitHash) self.cflags += ["-fPIC"] clang = bb.compiler.cc(self) with local.cwd(xz_version_source): with local.env(CC=str(clang)): bb.watch(autoreconf)("--install") configure = bb.watch(local["./configure"]) if xz_version in revisions_wo_dynamic_linking: configure("--enable-dynamic=yes") else: configure() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" gzip_version_source = local.path(self.source_of_primary) # Build binaries in separate dir because executing the binary with path # 'gzip' will execute '/usr/bin/gzip' independent of the current working # directory. mkdir("-p", gzip_version_source / "build") self.cflags += [ "-Wno-error=string-plus-int", "-Wno-error=shift-negative-value", "-Wno-string-plus-int", "-Wno-shift-negative-value" ] with local.cwd(gzip_version_source): bb.watch(local["./bootstrap"])() c_compiler = bb.compiler.cc(self) with local.cwd(gzip_version_source / "build"), local.env(CC=str(c_compiler)): bb.watch(local["../configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) with local.cwd(gzip_version_source): verify_binaries(self)
def __compile_make(self) -> None: gravity_version_source = local.path(self.source_of_primary) clang = bb.compiler.cc(self) with local.cwd(gravity_version_source): with local.env(CC=str(clang)): bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" redis_source = local.path(self.source_of_primary) clang = bb.compiler.cc(self) with local.cwd(redis_source): with local.env(CC=str(clang)): bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" openssl_source = local.path(self.source_of_primary) compiler = bb.compiler.cc(self) with local.cwd(openssl_source): with local.env(CC=str(compiler)): bb.watch(local['./config'])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: grep_source = local.path(self.source_of_primary) compiler = bb.compiler.cc(self) with local.cwd(grep_source): with local.env(CC=str(compiler)): bb.watch(local["./bootstrap"])() bb.watch(local["./configure"])("--disable-gcc-warnings") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" libjpeg_version_source = local.path(self.source_of_primary) c_compiler = bb.compiler.cc(self) with local.cwd(libjpeg_version_source): with local.env(CC=str(c_compiler)): bb.watch(cmake)("-G", "Unix Makefiles", ".") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" bitlbee_source = local.path(self.source_of(self.primary_source)) compiler = bb.compiler.cc(self) with local.cwd(bitlbee_source): with local.env(CC=str(compiler)): bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" tmux_source = local.path(self.source_of_primary) clang = bb.compiler.cc(self) with local.cwd(tmux_source): with local.env(CC=str(clang)): bb.watch(local["./autogen.sh"])() bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" glib_source = local.path(self.source_of_primary) cc_compiler = bb.compiler.cc(self) with local.cwd(glib_source): with local.env(CC=str(cc_compiler)): bb.watch(meson)("build") bb.watch(ninja)("-j", get_number_of_jobs(bb_cfg()), "-C", "build") verify_binaries(self)
def compile(self) -> None: """Compile the project.""" git_source = local.path(self.source_of_primary) clang = bb.compiler.cc(self) with local.cwd(git_source): with local.env(CC=str(clang)): delete("configure", "config.status") bb.watch(make)("configure") bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" libpng_source = local.path(self.source_of(self.primary_source)) compiler = bb.compiler.cc(self) mkdir(libpng_source / "build") with local.cwd(libpng_source / "build"): with local.env(CC=str(compiler)): bb.watch(cmake)("-G", "Unix Makefiles", "..") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) with local.cwd(libpng_source): verify_binaries(self)
def compile(self) -> None: coreutils_source = local.path(self.source_of_primary) compiler = bb.compiler.cc(self) with local.cwd(coreutils_source): git("submodule", "init") git("submodule", "update") with local.env(CC=str(compiler)): bb.watch(local["./bootstrap"])() bb.watch(local["./configure"])("--disable-gcc-warnings") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" doxygen_source = local.path(self.source_of_primary) clangxx = bb.compiler.cxx(self) with local.cwd(doxygen_source): with local.env(CXX=str(clangxx)): delete("CMakeCache.txt") bb.watch(cmake)("-G", "Unix Makefiles", ".") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) bb.watch(cp)("bin/doxygen", ".") verify_binaries(self)
def compile(self) -> None: """Contains instructions on how to build the project.""" version_source = local.path(self.source_of_primary) c_compiler = bb.compiler.cc(self) cxx_compiler = bb.compiler.cxx(self) mkdir(version_source / "build") with local.cwd(version_source / "build"): with local.env(CC=str(c_compiler), CXX=str(cxx_compiler)): bb.watch(cmake)("-G", "Unix Makefiles", "..") bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" libtiff_version_source = local.path(self.source_of( self.primary_source)) c_compiler = bb.compiler.cc(self) with local.cwd(libtiff_version_source): with local.env(CC=str(c_compiler)): bb.watch(local["./autogen.sh"])() configure = bb.watch(local["./configure"]) configure() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" file_version_source = local.path(self.source_of_primary) self.cflags += ["-fPIC"] c_compiler = bb.compiler.cc(self) with local.cwd(file_version_source): with local.env(CC=str(c_compiler)): bb.watch(autoreconf["-f", "-i"])() bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) with local.cwd(file_version_source): verify_binaries(self)
def compile(self) -> None: """Compile the project.""" bison_source = local.path(self.source_of(self.primary_source)) c_compiler = bb.compiler.cc(self) cxx_compiler = bb.compiler.cxx(self) with local.cwd(bison_source): bb.watch(git)("submodule", "update", "--init") with local.env(CC=str(c_compiler), CXX=str(cxx_compiler)): bb.watch(local["./bootstrap"])() bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" lrzip_source = local.path(self.source_of_primary) self.cflags += ["-fPIC"] cc_compiler = bb.compiler.cc(self) cxx_compiler = bb.compiler.cxx(self) with local.cwd(lrzip_source): with local.env(CC=str(cc_compiler), CXX=str(cxx_compiler)): bb.watch(local["./autogen.sh"])() bb.watch(local["./configure"])() bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def compile(self) -> None: """Compile the project.""" bzip2_source = local.path(self.source_of(self.primary_source)) cc_compiler = bb.compiler.cc(self) cxx_compiler = bb.compiler.cxx(self) mkdir("-p", bzip2_source / "build") with local.cwd(bzip2_source / "build"): with local.env(CC=str(cc_compiler), CXX=str(cxx_compiler)): bb.watch(cmake)("..") bb.watch(cmake)("--build", ".", "--config", "Release", "-j", get_number_of_jobs(bb_cfg())) with local.cwd(bzip2_source): verify_binaries(self)
def compile(self) -> None: """Compile the project.""" qemu_source = local.path(self.source_of_primary) self.cflags += ['-Wno-tautological-type-limit-compare'] c_compiler = bb.compiler.cc(self) cxx_compiler = bb.compiler.cxx(self) build_folder = qemu_source / "build" build_folder.mkdir() with local.cwd(build_folder): with local.env(CC=str(c_compiler), CXX=str(cxx_compiler)): configure = bb.watch(local["../configure"]) configure( "--disable-debug-info", "--target-list=x86_64-softmmu" ) bb.watch(make)("-j", get_number_of_jobs(bb_cfg())) verify_binaries(self)
def run_tests(self) -> None: grep_source = local.path(self.source_of_primary) with local.cwd(grep_source): bb.watch(make)("-j", get_number_of_jobs(bb_cfg()), "check")