]> git.saurik.com Git - cydget.git/blob - makefile
Upgraded to realistic CGI for PHP.
[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 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 $@
16
17 WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h
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
19 ldid -S $@
20
21 extra:
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
25 svn export AwayView.cydget package/System/Library/LockCydgets/AwayView.cydget
26 svn export PhotoExample.cydget package/System/Library/LockCydgets/PhotoExample.cydget
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
30 mkdir -p package/Library/PreferenceLoader/Preferences
31 mkdir -p package/System/Library/PreferenceBundles
32 cp -a CydgetSettings.plist package/Library/PreferenceLoader/Preferences
33 svn export CydgetSettings.bundle package/System/Library/PreferenceBundles/CydgetSettings.bundle
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