1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

Make deps compilation on x86 possible

This commit is contained in:
Tae Won Ha 2020-11-15 09:24:07 +01:00
parent b58ca5838f
commit 5bf0da7c75
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
4 changed files with 3 additions and 17 deletions

View File

@ -6,7 +6,6 @@ from builder import Builder
from config import Config from config import Config
from deps import ag, pcre, xz from deps import ag, pcre, xz
from deps.ag import AgBuilder from deps.ag import AgBuilder
from deps.pcre import PcreBuilder
DEPS_FILE_NAME = ".deps" DEPS_FILE_NAME = ".deps"
PACKAGE_NAME = "vimr-deps" PACKAGE_NAME = "vimr-deps"
@ -109,7 +108,7 @@ if __name__ == "__main__":
make_command=xz.make_command, make_command=xz.make_command,
build_universal_and_install_command=xz.build_universal_and_install_command, build_universal_and_install_command=xz.build_universal_and_install_command,
), ),
"pcre": PcreBuilder( "pcre": Builder(
pcre_config, pcre_config,
download_command=pcre.download_command, download_command=pcre.download_command,
make_command=pcre.make_command, make_command=pcre.make_command,

View File

@ -36,6 +36,7 @@ class Builder:
cflags=self.config.target_specific_full_cflags(target), cflags=self.config.target_specific_full_cflags(target),
deployment_target=self.config.target_specific_deployment_target(target), deployment_target=self.config.target_specific_deployment_target(target),
install_path=self.config.target_specific_install_path(target), install_path=self.config.target_specific_install_path(target),
host=self.config.target_specific_host(target),
) )
) )
print(cmd) print(cmd)

View File

@ -52,18 +52,3 @@ lipo -create -output "${install_lib_path}/libpcre.a" "${arm64_lib_path}/libpcre.
cp -r "${arm64_include_path}"/* "${install_include_path}" cp -r "${arm64_include_path}"/* "${install_include_path}"
""" """
) )
class PcreBuilder(Builder):
def make(self, target: Target):
cmd = self.make_command.substitute(
dict(
target=target.value,
cflags=self.config.target_specific_full_cflags(target),
deployment_target=self.config.target_specific_deployment_target(target),
install_path=self.config.target_specific_install_path(target),
host=self.config.target_specific_host(target),
)
)
print(cmd)
shell(cmd, cwd=self.config.working_directory)

View File

@ -34,6 +34,7 @@ pushd ./xz-${target} >/dev/null
--disable-lzma-links \ --disable-lzma-links \
--disable-scripts \ --disable-scripts \
--disable-doc \ --disable-doc \
--host="${host}" \
--prefix="${install_path}" --prefix="${install_path}"
make MACOSX_DEPLOYMENT_TARGET="${deployment_target}" install make MACOSX_DEPLOYMENT_TARGET="${deployment_target}" install
popd >/dev/null popd >/dev/null