-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
45 lines (34 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
ARCHS = arm64 arm64e
TARGET = iphone:13.3:15.0
# setWindow:, openURL:, etc. are required for rootful iOS 8.0
# but rootless works on iOS 15.0 and higher
CFLAGS = -Wno-deprecated-declarations
else
ARCHS = arm64 arm64e armv7
TARGET = iphone:13.3:8.0
CFLAGS =
# UIWindowScene
Tweak.xm_CFLAGS = -Wno-unguarded-availability-new
endif
INSTALL_TARGET_PROCESSES = SpringBoard
export TARGET ARCHS CFLAGS
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = MobileGoose
MobileGoose_FRAMEWORKS = UIKit Foundation
MobileGoose_FILES = Tweak.xm $(wildcard Goose/*.mm)
MobileGoose_CFLAGS = -fobjc-arc -I. -include macros.h -ferror-limit=0
include $(THEOS_MAKE_PATH)/tweak.mk
ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
internal-stage::
mkdir -p layout/DEBIAN
echo "interest /var/jb/Library/MobileGoose/Mods" > layout/DEBIAN/triggers
cp -pv postinst.rootless layout/DEBIAN/postinst
else
internal-stage::
mkdir -p layout/DEBIAN
echo "interest /Library/MobileGoose/Mods" > layout/DEBIAN/triggers
cp -pv postinst.rootful layout/DEBIAN/postinst
endif
SUBPROJECTS += Prefs
include $(THEOS_MAKE_PATH)/aggregate.mk