-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (30 loc) · 1.65 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
GO_EASY_ON_ME = 1
ARCHS = armv7 armv7s arm64
include theos/makefiles/common.mk
TOOL_NAME = nosandxd
nosandxd_FILES = NSServer.m NSDelegate.m
nosandxd_INSTALL_PATH = /usr/libexec/
nosandxd_FRAMEWORKS = Foundation CoreFoundation
nosandxd_PRIVATE_FRAMEWORKS = AppSupport
nosandxd_LIBRARIES = rocketbootstrap
include $(THEOS_MAKE_PATH)/tool.mk
LIBRARY_NAME = libnosandx
libnosandx_FILES = NSClient.m
libnosandx_FRAMEWORKS = Foundation CoreFoundation
libnosandx_PRIVATE_FRAMEWORKS = AppSupport
libnosandx_LIBRARIES = rocketbootstrap
include $(THEOS_MAKE_PATH)/library.mk
after-nosandxd-stage::
$(ECHO_NOTHING)echo " Adding Permissions"$(ECHO_END)
$(ECHO_NOTHING)sudo cp com.imokhles.nosandxdlaunch.plist $(THEOS_STAGING_DIR)/System/Library/LaunchDaemons/ $(ECHO_END)
$(ECHO_NOTHING)sudo chown root:wheel $(THEOS_STAGING_DIR)/System/Library/LaunchDaemons/com.imokhles.nosandxdlaunch.plist$(ECHO_END)
$(ECHO_NOTHING)sudo chmod 644 $(THEOS_STAGING_DIR)/System/Library/LaunchDaemons/com.imokhles.nosandxdlaunch.plist$(ECHO_END)
$(ECHO_NOTHING)sudo chown root:wheel $(THEOS_STAGING_DIR)/usr/libexec/nosandxd$(ECHO_END)
$(ECHO_NOTHING)sudo chmod 4755 $(THEOS_STAGING_DIR)/usr/libexec/nosandxd$(ECHO_END)
$(ECHO_NOTHING)echo " Permissions Finished"$(ECHO_END)
after-libnosandx-stage::
$(ECHO_NOTHING)echo " Installing Library"$(ECHO_END)
$(ECHO_NOTHING)sudo cp $(THEOS_STAGING_DIR)/usr/lib/libnosandx.dylib /opt/theos/lib$(ECHO_END)
$(ECHO_NOTHING)sudo cp NSClient.h $(THEOS_STAGING_DIR)/usr/include/nosandx/ $(ECHO_END)
$(ECHO_NOTHING)sudo cp -r $(THEOS_STAGING_DIR)/usr/include/nosandx/ /opt/theos/include/nosandx/ $(ECHO_END)
$(ECHO_NOTHING)echo " Library Installed"$(ECHO_END)