X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b6961e537b5468dc0458808fdacba4a3291e1d48..029bc65b46de676c6733fff684000c7363eda512:/Darwin-arm.mk diff --git a/Darwin-arm.mk b/Darwin-arm.mk index 10e4289..4b0cdfb 100644 --- a/Darwin-arm.mk +++ b/Darwin-arm.mk @@ -1,35 +1,24 @@ flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks -all += Cycript.$(dll) #cyrver +all += #cyrver arch := iphoneos-arm console += -framework UIKit -depends += readline libffi mobilesubstrate sqlite3-lib -code += Handler.o -inject += Mach/Inject.o - -Mach/Inject.o: Trampoline.t.hpp Baton.hpp - -%.t.hpp: %.t.cpp - $(target)gcc -c -o $*.t.o $< && $(target)otool -s __TEXT __text $*.t.o | tail -n +3 | sed -e 's/^[^ ]* //;s/ $$//;s/ /\n/g' | sed -e 's/\(..\)\(..\)\(..\)\(..\)/0\x\4,0\x\3,0\x\2,0\x\1/' | tr '\n' ',' | sed -e '$$ s/,$$//; s/^/static const char $*_[] = {/;s/$$/};\n/' >$@ && rm -f $*.t.o +depends += apr-lib readline libffi mobilesubstrate sqlite3-lib +#library += -framework CFNetwork +library += -framework WebCore +# XXX: all Darwin, maybe all device, should have this +library += -lsubstrate ldid := ldid -S entitle := ldid -Scycript.xml -Cycript.$(dll): Connector.o - $(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \ - -lobjc -lapr-1 -lsubstrate \ - -framework CoreFoundation - ldid -S $@ - 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 - cp -a Cycript.$(dll) package/Library/MobileSubstrate/DynamicLibraries - +extra:: + sed -i -e '/^Depends: / s/\/mobilesubstrate (>= 0.9.3072)/g' package/DEBIAN/control + #mkdir -p package/System/Library/LaunchDaemons + #cp -pR com.saurik.Cyrver.plist package/System/Library/LaunchDaemons