]> git.saurik.com Git - cydget.git/blobdiff - makefile
Checkpoint for Optimo test.
[cydget.git] / makefile
index 73efca93f3a216bc1f7eac7612377cc0c8103056..f88b187595984a6ae0d4871ebd3c1d7775a262f5 100644 (file)
--- a/makefile
+++ b/makefile
@@ -5,7 +5,14 @@ include $(base)/tweak.mk
 webcore := WebCore-514
 jscore := JavaScriptCore-521
 
-all: WebCycriptLockScreen
+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 JavaScriptCore -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}
@@ -18,3 +25,9 @@ extra:
        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
+       cp -a CydgetSettings.bundle package/System/Library/PreferenceBundles
+       cp -a Icon-Small.png package/System/Library/PreferenceBundles/CydgetSettings.bundle/icon.png
+       cp -a SearchResultsCheckmarkClear.png CydgetSettings package/System/Library/PreferenceBundles/CydgetSettings.bundle