-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
93 lines (78 loc) · 4.09 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
LIBRARY_NAME = libflipswitch libFlipswitchSpringBoard libFlipswitchSwitches
libflipswitch_FILES = FSSwitchPanel.m NSBundle+Flipswitch.m FSSwitchButton.m FSSwitchState.m
libflipswitch_FRAMEWORKS = UIKit CoreGraphics
libflipswitch_USE_MODULES = 0
libFlipswitchSpringBoard_FILES = FSSwitchDataSource.m FSSwitchMainPanel.m FSPreferenceSwitchDataSource.m FSLazySwitch.m FSCapability.m FSLaunchURL.x
libFlipswitchSpringBoard_LIBRARIES = flipswitch bsm
libFlipswitchSpringBoard_FRAMEWORKS = UIKit
libFlipswitchSpringBoard_LDFLAGS = -L$(THEOS_OBJ_DIR)
libFlipswitchSpringBoard_INSTALL_PATH = /Library/Flipswitch
libFlipswitchSpringBoard_USE_MODULES = 0
libFlipswitchSwitches_FILES = Switches/Adblock.x Switches/AirplaneMode.x Switches/AutoBrightness.x Switches/Autolock.x Switches/Bluetooth.x Switches/DarkMode.x Switches/Data.x Switches/DataSpeed.x Switches/DoNotDisturb.x Switches/Flashlight.x Switches/Hotspot.x Switches/Location.x Switches/LowPower.x Switches/NightShift.x Switches/RecordScreen.x Switches/Respring.x Switches/Ringer.x Switches/Rotation.x Switches/Settings.x Switches/VPN.x Switches/Vibration.x Switches/Wifi.x Switches/WifiProxy.x
libFlipswitchSwitches_FRAMEWORKS = UIKit CoreLocation SystemConfiguration
libFlipswitchSwitches_PRIVATE_FRAMEWORKS = ManagedConfiguration GraphicsServices Preferences
libFlipswitchSwitches_LIBRARIES = flipswitch FlipswitchSpringBoard
libFlipswitchSwitches_LDFLAGS = -L$(THEOS_OBJ_DIR) -weak_framework CoreTelephony
libFlipswitchSwitches_CFLAGS = -I./
libFlipswitchSwitches_INSTALL_PATH = /Library/Flipswitch
libFlipswitchSwitches_USE_MODULES = 0
BUNDLE_NAME = FlipswitchSettings
FlipswitchSettings_FILES = FSSettingsController.m Switches/DataSpeedSettings.m Switches/RotationSettings.m Switches/FlashlightSettings.m Switches/RespringSettings.m
FlipswitchSettings_FRAMEWORKS = UIKit
FlipswitchSettings_PRIVATE_FRAMEWORKS = Preferences
FlipswitchSettings_LIBRARIES = flipswitch
FlipswitchSettings_LDFLAGS = -L$(THEOS_OBJ_DIR)
FlipswitchSettings_INSTALL_PATH = /Library/PreferenceBundles
FlipswitchSettings_USE_MODULES = 0
TOOL_NAME = switch
switch_FILES = tool.m
switch_USE_MODULES = 0
# switch_LIBRARIES = flipswitch
# switch_LDFLAGS = -L$(THEOS_OBJ_DIR)
ifeq ($(THEOS_CURRENT_ARCH),armv6)
switch_FRAMEWORKS = Foundation UIKit
endif
ADDITIONAL_CFLAGS = -Ipublic -Ioverlayheaders -IPrivateHeaders -include log.h
TARGET_CODESIGN_FLAGS = -Sentitlements.xml
LEGACY_XCODE_PATH ?= /Applications/Xcode_Legacy.app/Contents/Developer
CLASSIC_XCODE_PATH ?= /Volumes/Xcode/Xcode.app/Contents/Developer
XCODE9_PATH ?= /Volumes/Xcode_9.4.1/Xcode.app/Contents/Developer
ifneq ($(wildcard $(LEGACY_XCODE_PATH)/*),)
THEOS_PLATFORM_SDK_ROOT_armv6 = $(LEGACY_XCODE_PATH)
THEOS_PLATFORM_SDK_ROOT_armv7 = $(CLASSIC_XCODE_PATH)
THEOS_PLATFORM_SDK_ROOT_armv7s = $(CLASSIC_XCODE_PATH)
THEOS_PLATFORM_SDK_ROOT_arm64 = $(XCODE9_PATH)
SDKVERSION_armv6 = 5.1
INCLUDE_SDKVERSION_armv6 = latest
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 8.4
TARGET_IPHONEOS_DEPLOYMENT_VERSION_armv6 = 3.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION_armv7 = 3.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION_armv7s = 6.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION_arm64 = 7.0
TARGET_IPHONEOS_DEPLOYMENT_VERSION_arm64e = 8.4
IPHONE_ARCHS = armv6 armv7 arm64 arm64e
libflipswitch_IPHONE_ARCHS = armv6 armv7 armv7s arm64 arm64e
FlipswitchSettings_IPHONE_ARCHS = armv6 arm64 arm64e
switch_IPHONE_ARCHS = armv6 arm64
else
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 8.4
IPHONE_ARCHS = armv7 arm64 arm64e
libflipswitch_IPHONE_ARCHS = armv7 armv7s arm64 arm64e
ifeq ($(FINALPACKAGE),1)
$(error Building final package requires a legacy Xcode install!)
endif
endif
arm64_CFLAGS = -Wno-unguarded-availability-new
arm64e_CFLAGS = -Wno-unguarded-availability-new
ifeq ($(THEOS_CURRENT_ARCH),armv6)
GO_EASY_ON_ME=1
endif
INSTALL_TARGET_PROCESSES ?= SpringBoard
include theos/makefiles/common.mk
include $(THEOS_MAKE_PATH)/library.mk
include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/bundle.mk
include $(THEOS_MAKE_PATH)/tool.mk
stage::
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/usr/include$(ECHO_END)
$(ECHO_NOTHING)rsync -a public/* $(THEOS_STAGING_DIR)/usr/include/flipswitch/ $(FW_RSYNC_EXCLUDES)$(ECHO_END)