forked from level3tjg/RedditFilter
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·38 lines (28 loc) · 1.13 KB
/
Makefile
File metadata and controls
executable file
·38 lines (28 loc) · 1.13 KB
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
export LOGOS_DEFAULT_GENERATOR = internal
TARGET := iphone:clang:latest:11.0
INSTALL_TARGET_PROCESSES = RedditApp Reddit
ARCHS = arm64
PACKAGE_VERSION = 1.2.0
ifdef APP_VERSION
PACKAGE_VERSION := $(APP_VERSION)-$(PACKAGE_VERSION)
endif
ifeq ($(SIDELOADED),1)
export MODULES = jailed
CODESIGN_IPA = 0
endif
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = RedditFilter
$(TWEAK_NAME)_FILES = $(wildcard *.x*) $(wildcard *.m)
$(TWEAK_NAME)_CFLAGS = -fobjc-arc -Iinclude -Wno-module-import-in-extern-c
$(TWEAK_NAME)_INJECT_DYLIBS = $(THEOS_OBJ_DIR)/RedditSideloadFix.dylib
ifeq ($(SIDELOADED),1)
SUBPROJECTS += RedditSideloadFix
include $(THEOS_MAKE_PATH)/aggregate.mk
endif
include $(THEOS_MAKE_PATH)/tweak.mk
# Copy preference bundle resources to staging directory
after-stage::
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceBundles/RedditFilter.bundle/en.lproj$(ECHO_END)
$(ECHO_NOTHING)if [ -d "layout/Library/Application Support/RedditFilter.bundle" ]; then \
cp -r "layout/Library/Application Support/RedditFilter.bundle"/* "$(THEOS_STAGING_DIR)/Library/PreferenceBundles/RedditFilter.bundle/"; \
fi$(ECHO_END)