mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
Build both iOS and Macosx
This commit is contained in:
+3
-1
@@ -10,7 +10,9 @@ language: cpp
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: osx
|
- os: osx
|
||||||
env: HOST=arm-apple-darwin
|
env: HOST=aarch64-apple-darwin13
|
||||||
|
- os: osx
|
||||||
|
env: HOST=x86_64-apple-darwin10
|
||||||
- os: linux
|
- os: linux
|
||||||
env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
|
env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
|
||||||
- os: linux
|
- os: linux
|
||||||
|
|||||||
+15
-1
@@ -63,17 +63,31 @@ function build_ios()
|
|||||||
{
|
{
|
||||||
which python
|
which python
|
||||||
# export PYTHON_BIN=/usr/local/bin/python
|
# export PYTHON_BIN=/usr/local/bin/python
|
||||||
./generate-darwin-source-and-headers.py
|
./generate-darwin-source-and-headers.py --only-ios
|
||||||
xcodebuild -showsdks
|
xcodebuild -showsdks
|
||||||
xcodebuild -project libffi.xcodeproj -target "libffi-iOS" -configuration Release -sdk iphoneos11.4
|
xcodebuild -project libffi.xcodeproj -target "libffi-iOS" -configuration Release -sdk iphoneos11.4
|
||||||
exit $?
|
exit $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function build_macosx()
|
||||||
|
{
|
||||||
|
which python
|
||||||
|
# export PYTHON_BIN=/usr/local/bin/python
|
||||||
|
./generate-darwin-source-and-headers.py --only-osx
|
||||||
|
xcodebuild -showsdks
|
||||||
|
xcodebuild -project libffi.xcodeproj -target "libffi-Mac" -configuration Release -sdk macosx10.13
|
||||||
|
exit $?
|
||||||
|
}
|
||||||
|
|
||||||
case "$HOST" in
|
case "$HOST" in
|
||||||
arm-apple-darwin*)
|
arm-apple-darwin*)
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
build_ios
|
build_ios
|
||||||
;;
|
;;
|
||||||
|
x86_64-apple-darwin*)
|
||||||
|
./autogen.sh
|
||||||
|
build_macosx
|
||||||
|
;;
|
||||||
arm32v7-linux-gnu)
|
arm32v7-linux-gnu)
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
build_foreign_linux arm moxielogic/arm32v7-ci-build-container:latest
|
build_foreign_linux arm moxielogic/arm32v7-ci-build-container:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user