diff options
author | Sam Bingner <sam@bingner.com> | 2018-09-06 17:18:18 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-09-06 17:18:18 -1000 |
commit | a5b9a9f185079b06669c7069d983a580a7706ee0 (patch) | |
tree | b31b330bb442612455c05d651f8cb9550cc75c4a /data/libtapi | |
parent | ab6608efc368ddbecc8004f4e28517f5a7cc707c (diff) |
Libtapi 1.3.0
Diffstat (limited to 'data/libtapi')
-rw-r--r-- | data/libtapi/_metadata/description | 1 | ||||
-rw-r--r-- | data/libtapi/_metadata/in.1443.00 | 0 | ||||
l--------- | data/libtapi/_metadata/license | 1 | ||||
l--------- | data/libtapi/_metadata/maintainer | 1 | ||||
-rw-r--r-- | data/libtapi/_metadata/priority | 1 | ||||
-rw-r--r-- | data/libtapi/_metadata/section | 1 | ||||
-rw-r--r-- | data/libtapi/_metadata/tags | 1 | ||||
-rw-r--r-- | data/libtapi/_metadata/version | 1 | ||||
-rw-r--r-- | data/libtapi/apple-libtapi.tar.xz | bin | 0 -> 10648384 bytes | |||
-rw-r--r-- | data/libtapi/make.sh | 36 | ||||
-rw-r--r-- | data/libtapi/miphone.diff | 39 |
11 files changed, 82 insertions, 0 deletions
diff --git a/data/libtapi/_metadata/description b/data/libtapi/_metadata/description new file mode 100644 index 000000000..f5e5fb119 --- /dev/null +++ b/data/libtapi/_metadata/description @@ -0,0 +1 @@ +a text file format for describing the contents of a shared library file on Apple's MacOS computer operating system diff --git a/data/libtapi/_metadata/in.1443.00 b/data/libtapi/_metadata/in.1443.00 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/data/libtapi/_metadata/in.1443.00 diff --git a/data/libtapi/_metadata/license b/data/libtapi/_metadata/license new file mode 120000 index 000000000..eea9de8d1 --- /dev/null +++ b/data/libtapi/_metadata/license @@ -0,0 +1 @@ +../../../licenses/bsd
\ No newline at end of file diff --git a/data/libtapi/_metadata/maintainer b/data/libtapi/_metadata/maintainer new file mode 120000 index 000000000..573d7ebef --- /dev/null +++ b/data/libtapi/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/sbingner
\ No newline at end of file diff --git a/data/libtapi/_metadata/priority b/data/libtapi/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/libtapi/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/libtapi/_metadata/section b/data/libtapi/_metadata/section new file mode 100644 index 000000000..e0eb96881 --- /dev/null +++ b/data/libtapi/_metadata/section @@ -0,0 +1 @@ +Development diff --git a/data/libtapi/_metadata/tags b/data/libtapi/_metadata/tags new file mode 100644 index 000000000..ad5d50831 --- /dev/null +++ b/data/libtapi/_metadata/tags @@ -0,0 +1 @@ +purpose::console diff --git a/data/libtapi/_metadata/version b/data/libtapi/_metadata/version new file mode 100644 index 000000000..f0bb29e76 --- /dev/null +++ b/data/libtapi/_metadata/version @@ -0,0 +1 @@ +1.3.0 diff --git a/data/libtapi/apple-libtapi.tar.xz b/data/libtapi/apple-libtapi.tar.xz Binary files differnew file mode 100644 index 000000000..82cfee300 --- /dev/null +++ b/data/libtapi/apple-libtapi.tar.xz diff --git a/data/libtapi/make.sh b/data/libtapi/make.sh new file mode 100644 index 000000000..ec4aa3547 --- /dev/null +++ b/data/libtapi/make.sh @@ -0,0 +1,36 @@ +pkg:setup +mkdir native +cd native +MACOSX_DEPLOYMENT_TARGET=10.9 CC="$(xcrun -f clang) -stdlib=libc++" CXX="$(xcrun -f clang++) -stdlib=libc++" cmake -j16 -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_SYSTEM_NAME=Darwin -DUSE_NLS=0 -DWITH_DOC=0 -DLLVM_INCLUDE_TESTS=OFF ../src/apple-llvm/src +make -j16 llvm-tblgen +cd .. +mkdir build +cd build + +cat >iphoneos_toolchain.cmake <<EOF +set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling +set(CMAKE_CROSSCOMPILING true) +#include(CMakeForceCompiler) +# Prefix detection only works with compiler id "GNU" +# CMake will look for prefixed g++, cpp, ld, etc. automatically +set(CMAKE_SYSTEM_PROCESSOR aarch64) +set(triple ${PKG_TARG}) +set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g)) +set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g)) +set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g)) +set(CMAKE_C_COMPILER ${PKG_TARG}-gcc) +set(CMAKE_CXX_COMPILER ${PKG_TARG}-g++) +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +EOF + +unset MACOSX_DEPLOYMENT_TARGET +cmake -j8 -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DCMAKE_LOCALSTATEDIR="/private/var" -DCMAKE_INSTALL_NAME_DIR="/usr/lib" -DCMAKE_INSTALL_RPATH="/usr/" -DCMAKE_OSX_SYSROOT="${PKG_ROOT}" -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_SHARED_LINKER_FLAGS="-lresolv" -DCURRENT_VENDOR=debian -DUSE_NLS=0 -DWITH_DOC=0 -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_SYSTEM_NAME=Darwin -DLLVM_TABLEGEN="$(pwd)/../native/bin/llvm-tblgen" -DLLVM_DEFAULT_TARGET_TRIPLE="${PKG_TARG}" -DLLVM_TARGETS_TO_BUILD=AArch64 ../src/apple-llvm/src + +make -j16 libtapi +make install-libtapi DESTDIR="${PKG_DEST}" +pkg: mkdir -p /usr/include/tapi +pkg: cp -va ../src/apple-llvm/src/projects/libtapi/include/tapi /usr/include +pkg: cp -va projects/libtapi/include/tapi/Version.inc /usr/include/tapi +cd .. diff --git a/data/libtapi/miphone.diff b/data/libtapi/miphone.diff new file mode 100644 index 000000000..382ba30af --- /dev/null +++ b/data/libtapi/miphone.diff @@ -0,0 +1,39 @@ +diff -ur apple-libtapi/src/apple-llvm/src/Makefile.rules apple-libtapi+iPhone/src/apple-llvm/src/Makefile.rules +--- apple-libtapi/src/apple-llvm/src/Makefile.rules 2018-08-05 15:37:17.000000000 -1000 ++++ apple-libtapi+iPhone/src/apple-llvm/src/Makefile.rules 2018-08-05 15:52:24.000000000 -1000 +@@ -576,10 +576,6 @@ + SharedLinkOptions := -dynamiclib + ifdef DEPLOYMENT_TARGET + SharedLinkOptions += $(DEPLOYMENT_TARGET) +- else +- ifneq ($(ARCH),ARM) +- SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION) +- endif + endif + else + SharedLinkOptions=-shared +@@ -588,10 +584,6 @@ + ifeq ($(TARGET_OS),Darwin) + ifdef DEPLOYMENT_TARGET + TargetCommonOpts += $(DEPLOYMENT_TARGET) +- else +- ifneq ($(ARCH),ARM) +- TargetCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION) +- endif + endif + endif + +diff -ur apple-libtapi/src/apple-llvm/src/utils/buildit/build_llvm apple-libtapi+iPhone/src/apple-llvm/src/utils/buildit/build_llvm +--- apple-libtapi/src/apple-llvm/src/utils/buildit/build_llvm 2018-08-05 15:37:18.000000000 -1000 ++++ apple-libtapi+iPhone/src/apple-llvm/src/utils/buildit/build_llvm 2018-08-05 15:53:09.000000000 -1000 +@@ -189,10 +189,6 @@ + export CXX=`xcrun -sdk macosx -find clang++` + + configure_opts="--enable-targets=arm,arm64,x86" +- if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then +- COMMON_MAKEFLAGS="$COMMON_MAKEFLAGS \ +- DEPLOYMENT_TARGET=-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET" +- fi + fi + + if [ $SDKROOT_PATH ]; then |