-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (57 loc) · 2.41 KB
/
Makefile
File metadata and controls
75 lines (57 loc) · 2.41 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#THEOS_DEVICE_IP = 10.21.254.13
THEOS_DEVICE_IP = 10.21.202.224 -i /Users/lynnette/.ssh/id_ed25519
#THEOS_DEVICE_IP = 192.168.2.227 # install to device from pc
ARCHS = arm64 #arm64e
DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1
# 0 to treat warnings as errors, 1 otherwise.
IGNORE_WARNINGS=1
# 0 to compile for rootful jailbreaks, 1 otherwise.
ROOTLESS = 0
ifeq ($(ROOTLESS), 1)
THEOS_PACKAGE_SCHEME = rootless
endif
# only set this to 1 if you are on mobile theos
# assuming you have an sdk at your theos sdks directory
# this will include c++ headers and other needed headers for your project so you don't need to manually include them or something like that
# if some c++ headers are still missing in your sdk like "initializer_list" then manually copy them to your c++ headers directory and not your project folder
# for example in my case c++ headers directory is located at /private/var/theos/sdks/iPhoneOS11.2.sdk/usr/include/c++/4.2.1/
# please note, do not include c++ headers in your theos includes to enable c++ which is a ghetto solution and use this approach instead
MOBILE_THEOS=0
ifeq ($(MOBILE_THEOS),1)
# path to your sdk
SDK_PATH = $(THEOS)/sdks/iPhoneOS11.2.sdk/
$(info ===> Setting SYSROOT to $(SDK_PATH)...)
SYSROOT = $(SDK_PATH)
else
TARGET = iphone:clang:latest:8.0
endif
## Common frameworks ##
PROJ_COMMON_FRAMEWORKS = UIKit Foundation Security QuartzCore CoreGraphics CoreText
## source files ##
KITTYMEMORY_SRC = $(wildcard KittyMemory/*.cpp)
SCLALERTVIEW_SRC = $(wildcard SCLAlertView/*.m)
HOOKS_SRC = $(wildcard hooks/*.mm)
MENU_SRC = $(wildcard Menu/*.mm) $(wildcard Menu/*.xm)
IMGUI_SRC = $(wildcard ImGui/*.mm) $(wildcard ImGui/*.cpp)
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = SubwaySuck
SubwaySuck_CFLAGS = -fobjc-arc
SubwaySuck_CCFLAGS = -std=c++11 -fno-rtti -fno-exceptions -DNDEBUG
ifeq ($(IGNORE_WARNINGS),1)
SubwaySuck_CFLAGS += -w
SubwaySuck_CCFLAGS += -w
endif
SubwaySuck_FILES = Tweak.xm $(MENU_SRC) $(KITTYMEMORY_SRC) $(SCLALERTVIEW_SRC) $(HOOKS_SRC) $(IMGUI_SRC)
SubwaySuck_LIBRARIES += substrate
SubwaySuck_LDFLAGS += -L./
SubwaySuck_LDFLAGS += -lz -stdlib=libc++ -ldobby_fixed
SubwaySuck_FRAMEWORKS = $(PROJ_COMMON_FRAMEWORKS)
# GO_EASY_ON_ME = 1
include $(THEOS_MAKE_PATH)/tweak.mk
#internal-package-check::
# @chmod 777 versionCheck.sh # Give permission to script
# @./versionCheck.sh # Script to verify template's current version
after-install::
install.exec "killall -9 cn || :"