-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
45 lines (38 loc) · 1.98 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
ARCHS = arm64 arm64e
ifeq ($(THEOS_PACKAGE_SCHEME), rootless)
TARGET := iphone:clang:latest:15.0
else
TARGET_OS_DEPLOYMENT_VERSION = 10.0
OLDER_XCODE_PATH=/Applications/Xcode_11.7.app
PREFIX=$(OLDER_XCODE_PATH)/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
SYSROOT=$(OLDER_XCODE_PATH)/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
SDKVERSION = 13.7
INCLUDE_SDKVERSION = 13.7
endif
include $(THEOS)/makefiles/common.mk
SUBPROJECTS += IdentityServices
SUBPROJECTS += Controller
SUBPROJECTS += NotificationHelper
SUBPROJECTS += Application
include $(THEOS_MAKE_PATH)/aggregate.mk
# try to apply the patches that will make it work. If it exits with non-zero, that just means
# the patches are already applied, so we can safely ignore it with `|| :`
#
# The version of libroot included with Theos is not compatible
# with the arm64e ABI we use so we have to compile it ourselves
before-all::
cd SocketRocket && git apply -q ../SocketRocket.patch || :
cd libroot && git apply -q ../libroot.patch || :
after-install::
install.exec "uicache -a"
install.exec "sbreload"
after-stage::
ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
$(ECHO_NOTHING) rm $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd-rootful.plist $(ECHO_END)
$(ECHO_NOTHING) mv $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd-rootless.plist $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd.plist $(ECHO_END)
else
$(ECHO_NOTHING) rm $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd-rootless.plist $(ECHO_END)
$(ECHO_NOTHING) mv $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd-rootful.plist $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd.plist $(ECHO_END)
endif
$(ECHO_NOTHING) mv $(THEOS_STAGING_DIR)/usr/libexec/BeepservController $(THEOS_STAGING_DIR)/usr/libexec/beepservd $(ECHO_END)
$(ECHO_NOTHING) $(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.beeper.beepservd.plist $(ECHO_END)