]> git.saurik.com Git - cydget.git/blobdiff - makefile
This seriously sort of worked.
[cydget.git] / makefile
index 637b624b99c7199da8a81ab75158714c96831474..73efca93f3a216bc1f7eac7612377cc0c8103056 100644 (file)
--- a/makefile
+++ b/makefile
@@ -2,15 +2,18 @@ name := CydgetLoader
 flags := -framework UIKit -framework AddressBook
 base := $(shell cd ~; pwd)/menes/tweaks
 include $(base)/tweak.mk
 flags := -framework UIKit -framework AddressBook
 base := $(shell cd ~; pwd)/menes/tweaks
 include $(base)/tweak.mk
+webcore := WebCore-514
+jscore := JavaScriptCore-521
 
 all: WebCycriptLockScreen
 
 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
 
 all: WebCycriptLockScreen
 
 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
-       $(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 GraphicsServices -framework TelephonyUI
+       $(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}
        ldid -S $@
 
 extra:
        mkdir -p package/System/Library/LockCydgets/CydgetCentral.cydget
        ldid -S $@
 
 extra:
        mkdir -p package/System/Library/LockCydgets/CydgetCentral.cydget
+       cp -a Index.{html,js} package/System/Library/LockCydgets/CydgetCentral.cydget
        cp -a CydgetCentral.plist package/System/Library/LockCydgets/CydgetCentral.cydget/Info.plist
        mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
        cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
        cp -a CydgetCentral.plist package/System/Library/LockCydgets/CydgetCentral.cydget/Info.plist
        mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle
        cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle