forked from XXTouchNG/XXTouchNG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (44 loc) · 3.15 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
TARGET := iphone:clang:14.5:13.0
ARCHS = arm64 arm64e
ifeq ($(FINALPACKAGE),1)
export TARGET_CODESIGN := codesign
export TARGET_CODESIGN_CERT := Developer ID Application: Lucas Joseph (MB269FV75D)
export TARGET_CODESIGN_FLAGS := --force --sign '$(TARGET_CODESIGN_CERT)'
endif
export XXT_VERSION = 3.0.1
include $(THEOS)/makefiles/common.mk
# Targets # Archs # Dependencies
SUBPROJECTS = liblua # arm64, arm64e #
SUBPROJECTS += auth # arm64, arm64e # liblua, rocketbootstrap
SUBPROJECTS += debug # arm64, arm64e # substrate, rocketbootstrap
SUBPROJECTS += core # arm64 # liblua
SUBPROJECTS += ext # arm64 # liblua
SUBPROJECTS += exstring # arm64 # liblua
SUBPROJECTS += alert # arm64, arm64e # liblua, rocketbootstrap, substrate, auth
SUBPROJECTS += app # arm64 # liblua, rocketbootstrap, ext, alert
SUBPROJECTS += cookies # arm64 # liblua, rocketbootstrap, app
SUBPROJECTS += file # arm64 # liblua
SUBPROJECTS += memory # arm64 # liblua
SUBPROJECTS += monkey # arm64, arm64e # liblua, rocketbootstrap, substrate, auth
SUBPROJECTS += pasteboard # arm64 # liblua
SUBPROJECTS += touch # arm64 # liblua, rocketbootstrap, debug
SUBPROJECTS += samba # arm64 # liblua
SUBPROJECTS += screen # arm64, arm64e # liblua, rocketbootstrap, substrate, ext
SUBPROJECTS += device # arm64, arm64e # liblua, rocketbootstrap, substrate, debug, ext
SUBPROJECTS += proc # arm64, arm64e # liblua, rocketbootstrap, ext
SUBPROJECTS += supervisor # arm64, arm64e # liblua, rocketbootstrap, core, proc
SUBPROJECTS += hid # arm64, arm64e # liblua, rocketbootstrap, substrate, proc, supervisor
SUBPROJECTS += webserv # arm64 # liblua, rocketbootstrap, debug, alert, device, proc, screen, supervisor, monkey, app
SUBPROJECTS += add1s # arm64 #
SUBPROJECTS += entitleme # arm64, arm64e # liblua, substrate, rocketbootstrap
include $(THEOS_MAKE_PATH)/aggregate.mk
before-all::
sed 's/@TARGET_CODESIGN_CERT@/$(TARGET_CODESIGN_CERT)/g' 'ext/layout/usr/local/xxtouch/lib/xxtouch/init.lua.in' > 'ext/layout/usr/local/xxtouch/lib/xxtouch/init.lua'
sed 's/@XXT_VERSION@/$(XXT_VERSION)/g' 'layout/DEBIAN/control.in' > 'layout/DEBIAN/control'
touch layout/Applications/XXTExplorer.app/XXTExplorer
explorer::
sed 's/@XXT_VERSION@/$(XXT_VERSION)/g' 'explorer/XXTExplorer/Defines/XXTEAppDefines.plist.in' > 'explorer/XXTExplorer/Defines/XXTEAppDefines.plist'
sed 's/@XXT_VERSION@/$(XXT_VERSION)/g' 'explorer/XXTExplorer/Supporting Files/Base.lproj/Archive-Info.plist.in' > 'explorer/XXTExplorer/Supporting Files/Base.lproj/Archive-Info.plist'
sed 's/@XXT_VERSION@/$(XXT_VERSION)/g' 'explorer/XXTExplorer/Supporting Files/Base.lproj/Info.plist.in' > 'explorer/XXTExplorer/Supporting Files/Base.lproj/Info.plist'
cd 'explorer'; ./build.sh; cd -
cp -rp 'explorer/Releases/XXTExplorer.xcarchive/Products/Applications/XXTExplorer.app' 'layout/Applications'