-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 915 Bytes
/
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
ARCHS = arm64 arm64e
TARGET := iphone:clang:latest:15.0
THEOS_PACKAGE_SCHEME = roothide
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = FilzaPatches
$(LIBRARY_NAME)_FILES = Patches.mm
$(LIBRARY_NAME)_CFLAGS = -fobjc-arc
$(LIBRARY_NAME)_LDFLAGS = -L./ -ldobby -lsubstrate
$(LIBRARY_NAME)_INSTALL_PATH = /usr/lib/DynamicPatches
include $(THEOS_MAKE_PATH)/library.mk
PATCH_FILES = \
"/Applications/Filza.app/Filza" \
"/Applications/Filza.app/PlugIns/Sharing.appex/Sharing" \
"/usr/libexec/filza/Filza" \
"/usr/libexec/filza/FilzaHelper" \
"/usr/libexec/filza/FilzaWebDAVServer"
before-package::
for file in $(PATCH_FILES); do \
echo add patch file $$file at $$(dirname "$$file"); \
dir=$$(dirname "$$file"); \
mkdir -p "$(THEOS_STAGING_DIR)/$$dir" ; \
ln -s "/usr/lib/DynamicPatches/$(LIBRARY_NAME).dylib" "$(THEOS_STAGING_DIR)/$$file.roothidepatch"; \
done;
clean::
rm -rf ./packages/*