]> git.saurik.com Git - cycript.git/blobdiff - Darwin-arm.mk
Finished implementing array ffi.
[cycript.git] / Darwin-arm.mk
index 8caec1523042cd04551a33f8e46e522044641c80..bf62c96b421aee85eaab26be610eab6bb8b75a28 100644 (file)
@@ -1,18 +1,17 @@
 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
-code += Handler.o
+depends += readline libffi mobilesubstrate sqlite3-lib
+#library += -framework CFNetwork
+library += -framework WebCore
+# XXX: all Darwin, maybe all device, should have this
+library += -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,$^) \
@@ -20,14 +19,5 @@ cyrver: Server.o
        $(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
-
+       #mkdir -p package/System/Library/LaunchDaemons
+       #cp -pR com.saurik.Cyrver.plist package/System/Library/LaunchDaemons