]> git.saurik.com Git - cycript.git/blob - Darwin-arm.mk
Completed massive refactoring operation to completely isolate Objective-C.
[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 sqlite3-lib
9 code += Handler.o
10
11 # XXX: this needs to share an exception library
12 Cycript.$(dll): Connector.o Exception.o
13 $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
14 -lobjc -lapr-1 -lsubstrate \
15 -framework CoreFoundation
16 ldid -S $@
17
18 cyrver: Server.o
19 $(target)g++ $(flags) -o $@ $(filter %.o,$^) \
20 -lapr-1 -lsubstrate -framework CFNetwork
21 $(ldid) $@
22
23 extra:
24 mkdir -p package/System/Library/LaunchDaemons
25 #cp -a com.saurik.Cyrver.plist package/System/Library/LaunchDaemons
26 mkdir -p package/Library/MobileSubstrate/DynamicLibraries
27 if [[ -e Settings.plist ]]; then \
28 mkdir -p package/Library/PreferenceLoader/Preferences; \
29 cp -a Settings.png package/Library/PreferenceLoader/Preferences/CycriptIcon.png; \
30 cp -a Settings.plist package/Library/PreferenceLoader/Preferences/Cycript.plist; \
31 fi
32 if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi
33 cp -a Cycript.$(dll) package/Library/MobileSubstrate/DynamicLibraries
34