forked from XXTouchNG/XXTouchNG
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (45 loc) · 2.02 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
TARGET := iphone:clang:14.5:13.0
ARCHS = arm64
INSTALL_TARGET_PROCESSES = simulatetouch simulatetouchd
include $(THEOS)/makefiles/common.mk
LUA_MOD_MAKEFILE := $(shell git rev-parse --show-toplevel)/liblua/liblua.mk
include $(LUA_MOD_MAKEFILE)
LIBRARY_NAME = libsimulatetouch
libsimulatetouch_FILES = SimulateTouch.m
libsimulatetouch_FILES += hid/STHIDEventGenerator.m
libsimulatetouch_FILES += bridge/SimulateTouchLuaBridge.mm
libsimulatetouch_FILES += ../shared/luae/luae.mm
libsimulatetouch_CFLAGS = -fobjc-arc -fobjc-arc-exceptions
libsimulatetouch_CFLAGS += -DXXT_VERSION=\"$(XXT_VERSION)\"
libsimulatetouch_CFLAGS += -Wno-unused-variable -Wno-unused-function
libsimulatetouch_CFLAGS += -I../shared/include/
libsimulatetouch_CFLAGS += -I../shared/
libsimulatetouch_CFLAGS += -I../liblua/
libsimulatetouch_CFLAGS += -Ihid -I.
libsimulatetouch_CFLAGS += -I../debug/ # debug
libsimulatetouch_CFLAGS += -I../debug/include/ # debug
libsimulatetouch_CFLAGS += -include touch-prefix.pch
libsimulatetouch_LDFLAGS = $(LUA_MOD_LDFLAGS)
libsimulatetouch_PRIVATE_FRAMEWORKS = AppSupport IOKit IOMobileFrameBuffer IOSurface
libsimulatetouch_LIBRARIES = rocketbootstrap
libsimulatetouch_WEAK_LIBRARIES = ../debug/libdebugwindow # debug
libsimulatetouch_INSTALL_PATH = /usr/local/lib
libsimulatetouch_LIBRARY_EXTENSION = .dylib
include $(THEOS_MAKE_PATH)/library.mk
TOOL_NAME = simulatetouchd
simulatetouchd_FILES = cli/simulatetouchd.m
simulatetouchd_CFLAGS = -fobjc-arc -fobjc-arc-exceptions
simulatetouchd_CFLAGS += -DXXT_VERSION=\"$(XXT_VERSION)\"
simulatetouchd_CFLAGS += -I../shared/include/
simulatetouchd_LDFLAGS = -L$(THEOS_OBJ_DIR)
simulatetouchd_LDFLAGS += -L../liblua
simulatetouchd_LIBRARIES = simulatetouch lua
ifeq ($(TARGET_CODESIGN),ldid)
simulatetouchd_CODESIGN_FLAGS = -Scli/ent.plist
else
simulatetouchd_CODESIGN_FLAGS = --entitlements cli/ent.plist $(TARGET_CODESIGN_FLAGS)
endif
simulatetouchd_INSTALL_PATH = /usr/local/xxtouch/bin
include $(THEOS_MAKE_PATH)/tool.mk
before-all::
cp SimulateTouch.h layout/usr/local/include/libsimulatetouch.h