This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
39 lines (32 loc) · 2.05 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
TWEAK_NAME = Couria CouriaUI
BUNDLE_NAME = CouriaPreferences
Couria_FILES = $(wildcard src/Couria/*.m)
Couria_FRAMEWORKS = UIKit
Couria_PRIVATE_FRAMEWORKS = BulletinBoard AppSupport ChatKit
Couria_INSTALL_PATH = /Library/MobileSubstrate/DynamicLibraries
CouriaUI_FILES = $(wildcard src/CouriaUI/*.m)
CouriaUI_FRAMEWORKS = UIKit CoreGraphics AddressBook AssetsLibrary MobileCoreServices
CouriaUI_PRIVATE_FRAMEWORKS = ChatKit AppSupport IMCore AssetsLibraryServices Search
CouriaUI_LIBRARIES = substrate
CouriaUI_LDFLAGS = -weak_framework Contacts -weak_framework ContactsUI -weak_framework Photos
CouriaUI_INSTALL_PATH = /Library/MobileSubstrate/DynamicLibraries
CouriaPreferences_FILES = $(wildcard src/Preferences/*.m)
CouriaPreferences_RESOURCE_DIRS = res
CouriaPreferences_FRAMEWORKS = UIKit CoreGraphics QuartzCore Social
CouriaPreferences_PRIVATE_FRAMEWORKS = Preferences AppSupport ChatKit
CouriaPreferences_INSTALL_PATH = /Library/PreferenceBundles
Color-Picker-for-iOS_FILES = $(wildcard external/Color-Picker-for-iOS/ColorPicker/*.m)
Color-Picker-for-iOS_CFLAGS = -include external/Color-Picker-for-iOS/Project/Hayashi311ColorPickerSample/Hayashi311ColorPickerSample-Prefix.pch
CouriaPreferences_FILES += $(Color-Picker-for-iOS_FILES)
$(foreach file, $(Color-Picker-for-iOS_FILES), $(eval $(file)_CFLAGS = $(Color-Picker-for-iOS_CFLAGS)))
export TARGET = iphone:clang:9.2
export ARCHS = armv7 arm64
export TARGET_IPHONEOS_DEPLOYMENT_VERSION = 8.0
export ADDITIONAL_OBJCFLAGS = -fobjc-arc -fvisibility=hidden
export INSTALL_TARGET_PROCESSES = SpringBoard MessagesNotificationViewService
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/bundle.mk
internal-stage::
$(ECHO_NOTHING)pref="$(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences"; mkdir -p "$$pref"; cp CouriaPreferences.plist "$$pref/Couria.plist"$(ECHO_END)
@(echo "Generating localization resources..."; twine generate-all-string-files loc/strings.txt "$(THEOS_STAGING_DIR)/$(CouriaPreferences_INSTALL_PATH)/CouriaPreferences.bundle" --create-folders --format apple)