]>
Commit | Line | Data |
---|---|---|
e6cd4dee JF |
1 | name := CydgetLoader |
2 | flags := -framework UIKit -framework AddressBook | |
3 | base := $(shell cd ~; pwd)/menes/tweaks | |
4 | include $(base)/tweak.mk | |
a75dc45a JF |
5 | webcore := WebCore-514 |
6 | jscore := JavaScriptCore-521 | |
3cf4303e | 7 | |
545370d8 JF |
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 $@ | |
daee0ba3 JF |
16 | |
17 | WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h | |
99c17c09 | 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 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 -DNDEBUG -framework CFNetwork -framework WebKit yieldToSelector.mm |
daee0ba3 JF |
19 | ldid -S $@ |
20 | ||
3cf4303e | 21 | extra: |
3aa346e5 JF |
22 | mkdir -p package/System/Library/LockCydgets/Welcome.cydget |
23 | cp -a Welcome.html package/System/Library/LockCydgets/Welcome.cydget | |
24 | cp -a Welcome.plist package/System/Library/LockCydgets/Welcome.cydget/Info.plist | |
23f9fde3 JF |
25 | cp -a AwayView.cydget package/System/Library/LockCydgets/AwayView.cydget |
26 | cp -a PhotoExample.cydget package/System/Library/LockCydgets/PhotoExample.cydget | |
daee0ba3 JF |
27 | mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle |
28 | cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle | |
29 | cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle | |
545370d8 JF |
30 | mkdir -p package/Library/PreferenceLoader/Preferences |
31 | mkdir -p package/System/Library/PreferenceBundles | |
32 | cp -a CydgetSettings.plist package/Library/PreferenceLoader/Preferences | |
23f9fde3 | 33 | cp -a CydgetSettings.bundle package/System/Library/PreferenceBundles/CydgetSettings.bundle |
545370d8 JF |
34 | cp -a Icon-Small.png package/System/Library/PreferenceBundles/CydgetSettings.bundle/icon.png |
35 | cp -a SearchResultsCheckmarkClear.png CydgetSettings package/System/Library/PreferenceBundles/CydgetSettings.bundle |