-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile
executable file
·40 lines (31 loc) · 973 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
37
38
39
40
ifeq ($(SIDELOADED),1)
MODULES = jailed
endif
PACKAGE_VERSION = 0.1.5
ifdef APP_VERSION
PACKAGE_VERSION := $(APP_VERSION)-$(PACKAGE_VERSION)
endif
ifeq ($(STS),1)
PACKAGE_VERSION := $(PACKAGE_VERSION)-STS
endif
ifeq ($(LTS),1)
PACKAGE_VERSION := $(PACKAGE_VERSION)-LTS
endif
TARGET := iphone:clang:latest:12.4
INSTALL_TARGET_PROCESSES = mediaserverd Twitch
ARCHS = arm64
ADDITIONAL_CFLAGS = -Wno-module-import-in-extern-c
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = TwitchAdBlock
$(TWEAK_NAME)_FILES = $(wildcard *.*m) fishhook/fishhook.c
$(TWEAK_NAME)_CFLAGS = -fobjc-arc -Iinclude -DPROXY_URL=@\"firefox.api.cdn-perfprod.com:2023\"
ifeq ($(SIDELOADED),1)
$(TWEAK_NAME)_FILES += Sideloaded.x fishhook/fishhook.c
CODESIGN_IPA = 0
ifeq ($(LTS),1)
$(TWEAK_NAME)_INJECT_DYLIBS = $(THEOS_OBJ_DIR)/TwitchLoginFix.dylib
SUBPROJECTS += TwitchLoginFix
include $(THEOS_MAKE_PATH)/aggregate.mk
endif
endif
include $(THEOS_MAKE_PATH)/tweak.mk