-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (54 loc) · 1.94 KB
/
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
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
DEBUG = 1
#用于调试的设备地址
THEOS_DEVICE_IP = 192.168.0.101
#THEOS_DEVICE_PORT = 2222
ARCHS = arm64e #armv7 arm64
#用于编译的SDK和支持的ios最低版本
#TARGET = iphone:11.2:10.0
include $(THEOS)/makefiles/common.mk
# 工程名称
TWEAK_NAME = TheosTemplate
# 进程名称
INSTALL_TARGET_PROCESSES = __Process__
# 采用ARC内存管理
TheosTemplate_CFLAGS = -fobjc-arc
# 头文件
EmoCrack_OBJCFLAGS += -I./OCClass/*/
EmoCrack_OBJCFLAGS += -I./OCClass/Headers/
EmoCrack_OBJCFLAGS += -I./OCClass/Classes/
#TheosTemplate_OBJCFLAGS += -I./TheosTemplate/Classes/*/*.h
# 编译的实现文件
TheosTemplate_FILES = Tweak.xi
TheosTemplate_FILES += $(wildcard OCClass/Classes/*.mm) $(wildcard OCClass/Classes/*/*.mm)
TheosTemplate_FILES += $(wildcard OCClass/Classes/*.m) $(wildcard OCClass/Classes/*/*.m)
# 导入系统的frameworks
TheosTemplate_FRAMEWORKS = Foundation UIKit
# 导入系统库
TheosTemplate_LIBRARIES = stdc++ c++
# 导入第三方Frameworks, 动态库需特殊处理
#TheosTemplate_LDFLAGS += -F./Libraries/dynamic -F./Libraries/static # 识别的库实现
#TheosTemplate_CFLAGS += -F./Libraries/dynamic -F./Libraries/static # 头文件识别
#TheosTemplate_FRAMEWORKS += WCBFWStatic WCBFWDynamic
# 导入第三方lib
#TheosTemplate_LDFLAGS += -L./Libraries/dynamic -L./Libraries/static # 识别的库实现
#TheosTemplate_CFLAGS += -I./Libraries/include # 头文件识别
#TheosTemplate_LIBRARIES += WCBStatic WCBDyLib
#忽略OC警告,避免警告导致编译不过
TheosTemplate_OBJCFLAGS += -Wno-deprecated-declarations -Wno-unused-variable
include $(THEOS_MAKE_PATH)/tweak.mk
#before-package::
# sh bin/check_dynamic_lib.sh #动态库处理脚本
# cp ./bin/postinst .theos/_/DEBIAN/
# cp ./bin/postrm .theos/_/DEBIAN/
# chmod 755 .theos/_/DEBIAN/postinst
# chmod 755 .theos/_/DEBIAN/postrm
after-install::
install.exec "killall -9 __Process__"
p::
make package
c::
make clean
i::
make
make p
make install