]> git.saurik.com Git - veency.git/blobdiff - makefile
Use an embedded copy of libjpeg to support ARM64.
[veency.git] / makefile
index 3f0ac4b88c8870c7a91f0cc4388590253c165769..ff6cd4346d6a3020760a168357603b6a24458eb2 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,9 +1,41 @@
-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
-
-extra:
-       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.0:2.0
+ARCHS := armv6 arm64
+PACKAGE_VERSION := $(shell ./version.sh)
+
+include theos/makefiles/common.mk
+
+TWEAK_NAME := Veency
+Veency_FILES := Tweak.mm SpringBoardAccess.c
+
+Veency_FRAMEWORKS := 
+Veency_FRAMEWORKS += CoreSurface
+Veency_FRAMEWORKS += GraphicsServices
+Veency_FRAMEWORKS += IOMobileFramebuffer
+Veency_FRAMEWORKS += QuartzCore
+Veency_FRAMEWORKS += UIKit
+
+ADDITIONAL_OBJCFLAGS += -Wno-gnu
+ADDITIONAL_OBJCFLAGS += -Wno-dangling-else
+
+ADDITIONAL_OBJCFLAGS += -idirafter .
+
+ADDITIONAL_OBJCFLAGS += -Ilibvncserver
+ADDITIONAL_OBJCFLAGS += -Xarch_armv6 -Ilibvncserver.armv6
+ADDITIONAL_OBJCFLAGS += -Xarch_arm64 -Ilibvncserver.arm64
+
+ADDITIONAL_CFLAGS += -fvisibility=hidden
+
+ADDITIONAL_LDFLAGS += -Xarch_armv6 -Llibvncserver.armv6/libvncserver/.libs
+ADDITIONAL_LDFLAGS += -Xarch_arm64 -Llibvncserver.arm64/libvncserver/.libs
+ADDITIONAL_LDFLAGS += -lvncserver
+
+ADDITIONAL_LDFLAGS += -Xarch_armv6 -Llibjpeg.armv6/.libs
+ADDITIONAL_LDFLAGS += -Xarch_arm64 -Llibjpeg.arm64/.libs
+ADDITIONAL_LDFLAGS += -ljpeg
+
+ADDITIONAL_LDFLAGS += -lz
+
+ADDITIONAL_LDFLAGS += -F/System/Library/PrivateFrameworks
+ADDITIONAL_LDFLAGS += -weak_reference_mismatches weak
+
+include $(THEOS_MAKE_PATH)/tweak.mk