Call CFPreferencesAppSynchronize (for iOS << 8.0).
[veency.git] / makefile
1 TARGET := iphone:7.1:2.0
2 ARCHS := armv6 armv7 arm64
3 PACKAGE_VERSION := $(shell ./version.sh)
4
5 include theos/makefiles/common.mk
6
7 TWEAK_NAME := Veency
8 Veency_FILES := Tweak.mm SpringBoardAccess.c
9
10 Veency_FRAMEWORKS := 
11 Veency_FRAMEWORKS += GraphicsServices
12 Veency_FRAMEWORKS += IOMobileFramebuffer
13 Veency_FRAMEWORKS += QuartzCore
14 Veency_FRAMEWORKS += UIKit
15
16 ADDITIONAL_LDFLAGS += -weak_framework IOKit
17
18 ADDITIONAL_OBJCFLAGS += -Wno-gnu
19 ADDITIONAL_OBJCFLAGS += -Wno-dangling-else
20
21 ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/iokit
22 ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/libkern
23 ADDITIONAL_OBJCFLAGS += -idirafter xnu-2422.1.72/osfmk
24 ADDITIONAL_OBJCFLAGS += -idirafter include
25
26 ADDITIONAL_OBJCFLAGS += -Ilibvncserver
27 # XXX: -Xarch_armv[67] doesn't even work... *sigh*
28 ADDITIONAL_OBJCFLAGS += -Xarch_armv6 -Ilibvncserver.armv6
29 ADDITIONAL_OBJCFLAGS += -Xarch_armv7 -Ilibvncserver.armv7
30 ADDITIONAL_OBJCFLAGS += -Xarch_arm64 -Ilibvncserver.arm64
31
32 ADDITIONAL_CFLAGS += -fvisibility=hidden
33
34 ADDITIONAL_LDFLAGS += -Llibrary
35 ADDITIONAL_LDFLAGS += -lsurface
36 ADDITIONAL_LDFLAGS += -lvncserver
37 ADDITIONAL_LDFLAGS += -ljpeg
38
39 ADDITIONAL_LDFLAGS += -lz
40
41 ADDITIONAL_LDFLAGS += -F/System/Library/PrivateFrameworks
42 ADDITIONAL_LDFLAGS += -weak_reference_mismatches weak
43
44 ADDITIONAL_CFLAGS += -mllvm -arm-reserve-r9
45 ADDITIONAL_LDFLAGS += -Xarch_armv6 -Wl,-lgcc_s.1
46
47 include $(THEOS_MAKE_PATH)/tweak.mk