]> git.saurik.com Git - cycript.git/blob - Darwin-arm.mk
Found the garbage collection bug from hell (classes apparently really need /something...
[cycript.git] / Darwin-arm.mk
1 flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
2
3 all += Cycript.$(dll) #cyrver
4
5 arch := iphoneos-arm
6 ldid := ldid -S
7 console += -framework UIKit
8 depends += readline libffi mobilesubstrate
9 code += Handler.o
10
11 Cycript.$(dll): Connector.o
12 $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
13 -lobjc -lapr-1 -lsubstrate \
14 -framework CoreFoundation
15 ldid -S $@
16
17 cyrver: Server.o
18 $(target)g++ $(flags) -o $@ $(filter %.o,$^) \
19 -lapr-1 -lsubstrate -framework CFNetwork
20 $(ldid) $@
21
22 extra:
23 mkdir -p package/System/Library/LaunchDaemons
24 #cp -a com.saurik.Cyrver.plist package/System/Library/LaunchDaemons
25 mkdir -p package/Library/MobileSubstrate/DynamicLibraries
26 if [[ -e Settings.plist ]]; then \
27 mkdir -p package/Library/PreferenceLoader/Preferences; \
28 cp -a Settings.png package/Library/PreferenceLoader/Preferences/CycriptIcon.png; \
29 cp -a Settings.plist package/Library/PreferenceLoader/Preferences/Cycript.plist; \
30 fi
31 if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi
32 cp -a Cycript.$(dll) package/Library/MobileSubstrate/DynamicLibraries
33