X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/856b8cd09bec6f7429808d348d689be984b948cb..b4b71b79d0712e76e649ad06eb76246071175fd1:/Darwin-arm.mk?ds=sidebyside diff --git a/Darwin-arm.mk b/Darwin-arm.mk index abf2a4e..6c24e6e 100644 --- a/Darwin-arm.mk +++ b/Darwin-arm.mk @@ -1,33 +1,25 @@ flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks -all += Cycript.$(dll) #cyrver +all += #cyrver arch := iphoneos-arm -ldid := ldid -S console += -framework UIKit -depends += readline libffi mobilesubstrate sqlite3-lib -code += Handler.o +depends += apr-lib readline libffi mobilesubstrate +#library += -framework CFNetwork +library += -framework WebCore +# XXX: all Darwin, maybe all device, should have this +library += -lsubstrate +console += -lsubstrate -Cycript.$(dll): Connector.o - $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \ - -lobjc -lapr-1 -lsubstrate \ - -framework CoreFoundation - ldid -S $@ +ldid := ldid -S +entitle := ldid -Scycript.xml cyrver: Server.o $(target)g++ $(flags) -o $@ $(filter %.o,$^) \ -lapr-1 -lsubstrate -framework CFNetwork $(ldid) $@ -extra: - mkdir -p package/System/Library/LaunchDaemons - #cp -a com.saurik.Cyrver.plist package/System/Library/LaunchDaemons - mkdir -p package/Library/MobileSubstrate/DynamicLibraries - if [[ -e Settings.plist ]]; then \ - mkdir -p package/Library/PreferenceLoader/Preferences; \ - cp -a Settings.png package/Library/PreferenceLoader/Preferences/CycriptIcon.png; \ - cp -a Settings.plist package/Library/PreferenceLoader/Preferences/Cycript.plist; \ - fi - if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi - cp -a Cycript.$(dll) package/Library/MobileSubstrate/DynamicLibraries - +extra:: + sed -i -e '/^Depends: / s/\/mobilesubstrate (>= 0.9.3072)/g' package/DEBIAN/control + #mkdir -p package/System/Library/LaunchDaemons + #cp -pR com.saurik.Cyrver.plist package/System/Library/LaunchDaemons