2 flags := -framework UIKit -framework AddressBook
3 base := $(shell cd ~; pwd)/menes/tweaks
4 include $(base)/tweak.mk
6 jscore := JavaScriptCore-521
8 all: WebCycriptLockScreen
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}
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