]> git.saurik.com Git - cydget.git/blame - makefile
Support application URL schemes.
[cydget.git] / makefile
CommitLineData
e6cd4dee
JF
1name := CydgetLoader
2flags := -framework UIKit -framework AddressBook
3base := $(shell cd ~; pwd)/menes/tweaks
4include $(base)/tweak.mk
a75dc45a
JF
5webcore := WebCore-514
6jscore := JavaScriptCore-521
3cf4303e 7
545370d8
JF
8all: WebCycriptLockScreen CydgetSettings
9
10clean::
11 rm -f CydgetSettings WebCycriptLockScreen
12
13CydgetSettings: 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
17WebCycriptLockScreen: 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 21extra:
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