X-Git-Url: https://git.saurik.com/cydget.git/blobdiff_plain/3cf4303e7af5e4f23dc43725fbb710893951222b..91fd6faef94753496b1f2d1c1442a292f067e0a2:/makefile?ds=inline diff --git a/makefile b/makefile index 63fd4b1..2f4df5d 100644 --- a/makefile +++ b/makefile @@ -2,6 +2,33 @@ name := CydgetLoader flags := -framework UIKit -framework AddressBook base := $(shell cd ~; pwd)/menes/tweaks include $(base)/tweak.mk +webcore := WebCore-514 +jscore := JavaScriptCore-521 + +all: WebCycriptLockScreen CydgetSettings + +clean:: + rm -f CydgetSettings WebCycriptLockScreen + +CydgetSettings: CydgetSettings.mm makefile + $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework UIKit -framework CoreFoundation -framework Foundation -lobjc -framework CoreGraphics -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks + ldid -S $@ + +WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h + $(target)g++ -F. -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices -framework TelephonyUI -I$(jscore) -iquote$(webcore)/{bindings/js,dom,loader,platform{,/animation,/cf,/network{,/cf},/text},/rendering/style} -iquote$(jscore)/{bytecode,debugger,interpreter,jit,parser,runtime} -lapr-1 -weak_reference_mismatches weak -framework JavaScriptCore -lpcre + ldid -S $@ extra: - mkdir -p package/System/Library/LockCydgets + mkdir -p package/System/Library/LockCydgets/Welcome.cydget + cp -a Welcome.html package/System/Library/LockCydgets/Welcome.cydget + cp -a Welcome.plist package/System/Library/LockCydgets/Welcome.cydget/Info.plist + svn export AwayView.cydget package/System/Library/LockCydgets/AwayView.cydget + mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle + cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle + cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle + mkdir -p package/Library/PreferenceLoader/Preferences + mkdir -p package/System/Library/PreferenceBundles + cp -a CydgetSettings.plist package/Library/PreferenceLoader/Preferences + svn export CydgetSettings.bundle package/System/Library/PreferenceBundles/CydgetSettings.bundle + cp -a Icon-Small.png package/System/Library/PreferenceBundles/CydgetSettings.bundle/icon.png + cp -a SearchResultsCheckmarkClear.png CydgetSettings package/System/Library/PreferenceBundles/CydgetSettings.bundle