]> git.saurik.com Git - cydget.git/blob - makefile
This was a bad idea: I'm not going to do this again.
[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
9
10 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
11 $(target)g++ -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)/{jit,runtime}
12 ldid -S $@
13
14 extra:
15 mkdir -p package/System/Library/LockCydgets/CydgetCentral.cydget
16 cp -a CydgetCentral.plist package/System/Library/LockCydgets/CydgetCentral.cydget/Info.plist
17 mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
18 cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
19 cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle