mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 12:22:43 +00:00
iOS build enhancements
This commit is contained in:
parent
876633c992
commit
e4464575ce
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user