]> git.saurik.com Git - cycript.git/blobdiff - Darwin-arm.mk
Found the garbage collection bug from hell (classes apparently really need /something...
[cycript.git] / Darwin-arm.mk
index 875f25f96d56be4dd4fdaff47357007c7d522fa9..8caec1523042cd04551a33f8e46e522044641c80 100644 (file)
@@ -4,7 +4,9 @@ all += Cycript.$(dll) #cyrver
 
 arch := iphoneos-arm
 ldid := ldid -S
-link += -framework UIKit
+console += -framework UIKit
+depends += readline libffi mobilesubstrate
+code += Handler.o
 
 Cycript.$(dll): Connector.o
        $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
@@ -16,3 +18,16 @@ 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
+