Merge branch 'master' of github.com:unicorn-engine/unicorn
This commit is contained in:
@@ -2,6 +2,8 @@ language: c
|
|||||||
sudo: false
|
sudo: false
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./install-cmocka-linux.sh; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./install-cmocka-linux.sh; fi
|
||||||
|
env:
|
||||||
|
- PATH=$PATH:/usr/local/opt/binutils/bin
|
||||||
script:
|
script:
|
||||||
- make && make -C bindings/go && make -C bindings/go test && make test
|
- make && make -C bindings/go && make -C bindings/go test && make test
|
||||||
compiler:
|
compiler:
|
||||||
@@ -82,4 +84,5 @@ addons:
|
|||||||
- libc6-dev-i386
|
- libc6-dev-i386
|
||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
homebrew:
|
homebrew:
|
||||||
|
update: true
|
||||||
brewfile: true
|
brewfile: true
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -172,6 +172,8 @@ LIBRARY_SYMLINK = lib$(LIBNAME).$(EXT)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
UNICORN_QEMU_FLAGS += --python=$(shell which python2 || which /usr/bin/python || which python)
|
||||||
|
|
||||||
ifeq ($(UNICORN_STATIC),yes)
|
ifeq ($(UNICORN_STATIC),yes)
|
||||||
ifneq ($(filter MINGW%,$(UNAME_S)),)
|
ifneq ($(filter MINGW%,$(UNAME_S)),)
|
||||||
ARCHIVE = $(LIBNAME).$(AR_EXT)
|
ARCHIVE = $(LIBNAME).$(AR_EXT)
|
||||||
|
|||||||
27
make.sh
27
make.sh
@@ -19,10 +19,6 @@ OPTIONS:
|
|||||||
cross-win64 Cross-compile Windows 64-bit binary with MinGW
|
cross-win64 Cross-compile Windows 64-bit binary with MinGW
|
||||||
cross-android_arm Cross-compile for Android Arm
|
cross-android_arm Cross-compile for Android Arm
|
||||||
cross-android_arm64 Cross-compile for Android Arm64
|
cross-android_arm64 Cross-compile for Android Arm64
|
||||||
ios Cross-compile for all iOS devices (armv7 + armv7s + arm64)
|
|
||||||
ios_armv7 Cross-compile for iOS ArmV7 (iPod 4, iPad 1/2/3, iPhone4, iPhone4S)
|
|
||||||
ios_armv7s Cross-compile for iOS ArmV7s (iPad 4, iPhone 5C, iPad mini)
|
|
||||||
ios_arm64 Cross-compile for iOS Arm64 (iPhone 5S, iPad mini Retina, iPad Air)
|
|
||||||
linux32 Cross-compile Unicorn on 64-bit Linux to target 32-bit binary
|
linux32 Cross-compile Unicorn on 64-bit Linux to target 32-bit binary
|
||||||
msvc_update_genfiles Generate files for MSVC projects
|
msvc_update_genfiles Generate files for MSVC projects
|
||||||
EOF
|
EOF
|
||||||
@@ -37,25 +33,6 @@ asan() {
|
|||||||
env UNICORN_DEBUG=yes UNICORN_ASAN=yes "${MAKE}" V=1
|
env UNICORN_DEBUG=yes UNICORN_ASAN=yes "${MAKE}" V=1
|
||||||
}
|
}
|
||||||
|
|
||||||
# build iOS lib for all iDevices, or only specific device
|
|
||||||
build_iOS() {
|
|
||||||
IOS_SDK=$(xcrun --sdk iphoneos --show-sdk-path)
|
|
||||||
IOS_CC=$(xcrun --sdk iphoneos -f clang)
|
|
||||||
IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
|
|
||||||
IOS_LDFLAGS="-isysroot $IOS_SDK"
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
# build for all iDevices
|
|
||||||
IOS_ARCHS="armv7 armv7s arm64"
|
|
||||||
else
|
|
||||||
IOS_ARCHS="$1"
|
|
||||||
fi
|
|
||||||
CC="$IOS_CC" \
|
|
||||||
CFLAGS="$IOS_CFLAGS" \
|
|
||||||
LDFLAGS="$IOS_LDFLAGS" \
|
|
||||||
LIBARCHS="$IOS_ARCHS" \
|
|
||||||
${MAKE}
|
|
||||||
}
|
|
||||||
|
|
||||||
build_cross() {
|
build_cross() {
|
||||||
[ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64"
|
[ "$UNAME" = Darwin ] && LIBARCHS="i386 x86_64"
|
||||||
CROSS=$1
|
CROSS=$1
|
||||||
@@ -153,10 +130,6 @@ case "$1" in
|
|||||||
"cross-win64" ) build_cross x86_64-w64-mingw32;;
|
"cross-win64" ) build_cross x86_64-w64-mingw32;;
|
||||||
"cross-android_arm" ) CROSS=arm-linux-androideabi ${MAKE};;
|
"cross-android_arm" ) CROSS=arm-linux-androideabi ${MAKE};;
|
||||||
"cross-android_arm64" ) CROSS=aarch64-linux-android ${MAKE};;
|
"cross-android_arm64" ) CROSS=aarch64-linux-android ${MAKE};;
|
||||||
"ios" ) build_iOS;;
|
|
||||||
"ios_armv7" ) build_iOS armv7;;
|
|
||||||
"ios_armv7s" ) build_iOS armv7s;;
|
|
||||||
"ios_arm64" ) build_iOS arm64;;
|
|
||||||
"linux32" ) build_linux32;;
|
"linux32" ) build_linux32;;
|
||||||
"msvc_update_genfiles" ) msvc_update_genfiles;;
|
"msvc_update_genfiles" ) msvc_update_genfiles;;
|
||||||
* )
|
* )
|
||||||
|
|||||||
Reference in New Issue
Block a user