forked from roothide/XcodeAnyDebug
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (30 loc) · 859 Bytes
/
Makefile
File metadata and controls
36 lines (30 loc) · 859 Bytes
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
export PACKAGE_VERSION := 1.0
ARCHS := arm64 arm64e
ifeq ($(THEOS_PACKAGE_SCHEME),roothide)
JBROOT :=
ROOTFS := /rootfs
TARGET := iphone:clang:16.5:15.0
else ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
JBROOT := /var/jb
ROOTFS :=
TARGET := iphone:clang:16.5:15.0
else
JBROOT :=
ROOTFS :=
TARGET := iphone:clang:14.5:14.0
endif
include $(THEOS)/makefiles/common.mk
TWEAK_NAME += XcodeAnyDebug
XcodeAnyDebug_FILES += main.x
XcodeAnyDebug_CFLAGS += -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
before-package::
for file in \
$(THEOS_STAGING_DIR)/DEBIAN/* \
$(THEOS_STAGING_DIR)/usr/libexec/XcodeAnyDebug-startup \
$(THEOS_STAGING_DIR)/Library/LaunchDaemons/XcodeAnyDebug-startup.plist \
; do \
sed -e "s|@JBROOT@|$(JBROOT)|g" -e "s|@ROOTFS@|$(ROOTFS)|g" "$$file" > "$$file.tmp"; \
cat "$$file.tmp" > "$$file"; \
rm -f "$$file.tmp"; \
done