]> git.saurik.com Git - veency.git/blobdiff - makefile
This is so far the best tradeoff for no passwords.
[veency.git] / makefile
index 84c3b3ae91846d37738d1c852045acf173cc26c6..32e83c2c1b5450992ce292e450f1d6ad2b0b484f 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,16 +1,47 @@
-name := Veency
-id := vncs
-flags := -lvncserver -framework IOMobileFramebuffer -framework CoreSurface -framework IOKit -framework GraphicsServices -I/apl/inc/iPhoneOS-2.0 -framework QuartzCore
-base := ../tweaks
-include ../tweaks/tweak.mk
-
-all: VeencyHook.dylib
-
-VeencyHook.dylib: Hook.mm makefile
-       $(target)g++ -dynamiclib -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -init _TweakInitialize -lobjc
-       ldid -S $@
-
-extra:
-       cp -a VeencyHook.dylib VeencyHook.plist package/Library/MobileSubstrate/DynamicLibraries
-       mkdir -p package/System/Library/CoreServices/SpringBoard.app
-       cp -a Default_Veency.png FSO_Veency.png package/System/Library/CoreServices/SpringBoard.app
+TARGET := iphone:7.1:2.0
+ARCHS := armv6 armv7 arm64
+PACKAGE_VERSION := $(shell ./version.sh)
+
+include theos/makefiles/common.mk
+
+TWEAK_NAME := Veency
+Veency_FILES := Tweak.mm SpringBoardAccess.c
+
+Veency_FRAMEWORKS := 
+Veency_FRAMEWORKS += GraphicsServices
+Veency_FRAMEWORKS += IOMobileFramebuffer
+Veency_FRAMEWORKS += QuartzCore
+Veency_FRAMEWORKS += UIKit
+
+ADDITIONAL_LDFLAGS += -weak_framework IOKit
+
+ADDITIONAL_OBJCFLAGS += -Wno-gnu
+ADDITIONAL_OBJCFLAGS += -Wno-dangling-else
+
+ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/iokit
+ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/libkern
+ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/osfmk
+ADDITIONAL_OBJCFLAGS += -idirafter include
+
+ADDITIONAL_OBJCFLAGS += -Ilibvncserver
+# XXX: -Xarch_armv[67] doesn't even work... *sigh*
+ADDITIONAL_OBJCFLAGS += -Xarch_armv6 -Ilibvncserver.armv6
+ADDITIONAL_OBJCFLAGS += -Xarch_armv7 -Ilibvncserver.armv7
+ADDITIONAL_OBJCFLAGS += -Xarch_arm64 -Ilibvncserver.arm64
+
+ADDITIONAL_CFLAGS += -fvisibility=hidden
+
+ADDITIONAL_LDFLAGS += -Llibrary
+ADDITIONAL_LDFLAGS += -lsurface
+ADDITIONAL_LDFLAGS += -lvncserver
+ADDITIONAL_LDFLAGS += -ljpeg
+
+ADDITIONAL_LDFLAGS += -lz
+
+ADDITIONAL_LDFLAGS += -F/System/Library/PrivateFrameworks
+ADDITIONAL_LDFLAGS += -weak_reference_mismatches weak
+
+ADDITIONAL_CFLAGS += -mllvm -arm-reserve-r9
+ADDITIONAL_LDFLAGS += -Xarch_armv6 -Wl,-lgcc_s.1
+
+include $(THEOS_MAKE_PATH)/tweak.mk