-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 1.7 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
TARGET := iphone:clang::5.0
ARCHS := armv7 arm64
ifdef CCC_ANALYZER_OUTPUT_FORMAT
TARGET_CXX = $(CXX)
TARGET_LD = $(TARGET_CXX)
endif
ADDITIONAL_CFLAGS += -g -fobjc-arc -fvisibility=hidden
ADDITIONAL_LDFLAGS += -g -fobjc-arc -Wl,-map,[email protected] -x c /dev/null -x none
TWEAK_NAME = Cmdivator
Cmdivator_FILES = Cmdivator.m CmdivatorCmd.m CmdivatorDirectoryEnumerator.m CmdivatorScanner.m
Cmdivator_LIBRARIES = activator
Cmdivator_FRAMEWORKS = UIKit
Cmdivator_PRIVATE_FRAMEWORKS = AppSupport
BUNDLE_NAME = Settings
Settings_FILES = CmdivatorCmd.m Settings.m
Settings_LIBRARIES = activator
Settings_FRAMEWORKS = UIKit
Settings_PRIVATE_FRAMEWORKS = AppSupport Preferences
Settings_INSTALL_PATH = /Library/PreferenceBundles
include theos/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/bundle.mk
after-stage::
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) \( -iname '*.plist' -or -iname '*.strings' \) -exec plutil -convert binary1 {} \;$(ECHO_END)
$(ECHO_NOTHING)find $(THEOS_STAGING_DIR) -d \( -iname '*.dSYM' -or -iname '*.map' \) -execdir rm -rf {} \;$(ECHO_END)
$(ECHO_NOTHING)mv $(THEOS_STAGING_DIR)$(Settings_INSTALL_PATH)/$(BUNDLE_NAME).bundle/$(BUNDLE_NAME) $(THEOS_STAGING_DIR)$(Settings_INSTALL_PATH)/$(BUNDLE_NAME).bundle/$(TWEAK_NAME)$(ECHO_END)
$(ECHO_NOTHING)mv $(THEOS_STAGING_DIR)$(Settings_INSTALL_PATH)/$(BUNDLE_NAME).bundle $(THEOS_STAGING_DIR)$(Settings_INSTALL_PATH)/$(TWEAK_NAME).bundle$(ECHO_END)
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/Cmdivator/Cmds$(ECHO_END)
$(ECHO_NOTHING)cp LICENSE README.md $(THEOS_STAGING_DIR)/Library/Cmdivator$(ECHO_END)
after-install::
install.exec "(killall backboardd || killall SpringBoard) 2>/dev/null"
after-clean::
rm -f *.deb