Created
June 23, 2017 04:56
-
-
Save NSExceptional/a4a815156926c907e9f82df39acff771 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export TARGET = iphone:10.3:9.0 | |
export ARCHS = arm64 | |
include $(THEOS)/makefiles/common.mk | |
# Relevant folders | |
PROJECT_SRC = TBTweakViewController/TBTweakViewController/Classes | |
PODS_ROOT = TBTweakViewController/Pods | |
MK_DIR = /Users/tanner/Repos/MirrorKit | |
# Swizzle sources and all dependency sources | |
MY_SOURCES = $(wildcard $(PROJECT_SRC)/*.m) | |
MY_SOURCES += $(wildcard $(PROJECT_SRC)/*.s) | |
EXT_DEPENDS = $(wildcard $(PODS_ROOT)/Masonry/*.m) | |
EXT_DEPENDS += $(wildcard $(PODS_ROOT)/TBAlertController/*.m) | |
LOCAL_DEPENDS = $(wildcard $(MK_DIR)/*.m) | |
LOCAL_DEPENDS += $(wildcard $(MK_DIR)/Classes/*.m) | |
LOCAL_DEPENDS += $(wildcard $(MK_DIR)/Categories/*.m) | |
LOCAL_DEPENDS += $(wildcard $(MK_DIR)/Private/*.m) | |
# Misc flags | |
INCLUDES = -I$(PODS_ROOT)/Headers/Public | |
IGNORED_WARNINGS = -Wno-missing-braces -Wno-ambiguous-macro | |
IGNORED_WARNINGS += -Wno-objc-property-no-attribute -Wno-\#warnings | |
TWEAK_NAME = Swizzle | |
Swizzle_FILES = $(MY_SOURCES) $(EXT_DEPENDS) $(LOCAL_DEPENDS) Tweak.xm | |
Swizzle_FRAMEWORKS = UIKit | |
Swizzle_CFLAGS += $(INCLUDES) $(IGNORED_WARNINGS) -fobjc-arc | |
include $(THEOS_MAKE_PATH)/tweak.mk | |
before-stage:: | |
find . -name ".DS_Store" -delete | |
after-install:: | |
install.exec "killall -9 SpringBoard" | |
print-% : ; @echo $* = $($*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment