iOS build enhancements

This commit is contained in:
pancake 2015-10-09 11:42:49 +02:00
parent 876633c992
commit e4464575ce
3 changed files with 10 additions and 1 deletions

View File

@ -17,6 +17,13 @@ SIGN_LIBS=$(addsuffix /libr_*.dylib,$(FOOD_LIBS))
include ../rules.mk
#IOS_CERTID?=org.radare.radare2
ios:
$(MAKE) -C ../../libr/io
$(MAKE) -C ../../libr/debug
rm -f radare2
$(MAKE)
$(MAKE) ios-sign
ios-sign iossign sign:
xcrun --sdk iphoneos codesign \
-s- --entitlements radare2.xml radare2

View File

@ -2,8 +2,8 @@
[ -z "${CPU}" ] && CPU="armv7"
# CPU=arm64
[ -z "${IOSINC}" ] && IOSINC="${CWD}/ios-include"
CWD="$(dirname "$0")"
[ -z "${IOSINC}" ] && IOSINC="${CWD}/ios-include"
#CC="xcrun --sdk iphoneos gcc -arch armv7 -I${CWD}/ios-include"
CC="xcrun --sdk iphoneos gcc -arch ${CPU} -I${IOSINC}"
#CC="xcrun --sdk iphoneos gcc -arch arm64"

View File

@ -2,7 +2,9 @@
[ -z "$SHELL" ] && SHELL=/bin/sh
if [ -d sys ]; then
export IOSINC=`pwd`/sys/ios-include
export PATH="$PWD/sys/:$PATH"
export PS1="[ios-sdk \w]> "
$SHELL
else
echo "Run from r2 root directory"