]> git.saurik.com Git - cydget.git/blob - makefile
Checkpoint for Optimo test.
[cydget.git] / makefile
1 name := CydgetLoader
2 flags := -framework UIKit -framework AddressBook
3 base := $(shell cd ~; pwd)/menes/tweaks
4 include $(base)/tweak.mk
5 webcore := WebCore-514
6 jscore := JavaScriptCore-521
7
8 all: WebCycriptLockScreen CydgetSettings
9
10 clean::
11 rm -f CydgetSettings WebCycriptLockScreen
12
13 CydgetSettings: CydgetSettings.mm makefile
14 $(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
15 ldid -S $@
16
17 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
18 $(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}
19 ldid -S $@
20
21 extra:
22 mkdir -p package/System/Library/LockCydgets/CydgetCentral.cydget
23 cp -a Index.{html,js} package/System/Library/LockCydgets/CydgetCentral.cydget
24 cp -a CydgetCentral.plist package/System/Library/LockCydgets/CydgetCentral.cydget/Info.plist
25 mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
26 cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
27 cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
28 mkdir -p package/Library/PreferenceLoader/Preferences
29 mkdir -p package/System/Library/PreferenceBundles
30 cp -a CydgetSettings.plist package/Library/PreferenceLoader/Preferences
31 cp -a CydgetSettings.bundle package/System/Library/PreferenceBundles
32 cp -a Icon-Small.png package/System/Library/PreferenceBundles/CydgetSettings.bundle/icon.png
33 cp -a SearchResultsCheckmarkClear.png CydgetSettings package/System/Library/PreferenceBundles/CydgetSettings.bundle