]> git.saurik.com Git - cycript.git/blame - Darwin-arm.mk
Fixed the E4X attribute parser and removed some of the E4X contextual extensions.
[cycript.git] / Darwin-arm.mk
CommitLineData
1e7ce557
JF
1flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
2
3all += Cycript.$(dll) #cyrver
4
5arch := iphoneos-arm
9185d5ef 6ldid := ldid -S
dfa452c2 7console += -framework UIKit
856b8cd0 8depends += readline libffi mobilesubstrate sqlite3-lib
b24eb750 9code += Handler.o
1e7ce557 10
c6f62b5b 11Cycript.$(dll): Connector.o
1e7ce557
JF
12 $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
13 -lobjc -lapr-1 -lsubstrate \
14 -framework CoreFoundation
15 ldid -S $@
9185d5ef
JF
16
17cyrver: Server.o
18 $(target)g++ $(flags) -o $@ $(filter %.o,$^) \
19 -lapr-1 -lsubstrate -framework CFNetwork
20 $(ldid) $@
f37e3501
JF
21
22extra:
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