include $(THEOS)/makefiles/common.mk

export TARGET = iphone:clang:12.1.2:12.0
export ARCHS = arm64 arm64e

BUNDLE_NAME = ColorMyBattery
ColorMyBattery_FILES = ColorMyBattery.m
ColorMyBattery_INSTALL_PATH = /Library/PreferenceBundles
ColorMyBattery_FRAMEWORKS = UIKit CoreGraphics QuartzCore
ColorMyBattery_PRIVATE_FRAMEWORKS = Preferences
ColorMyBattery_LIBRARIES = colorpicker
include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
	$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
	$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/ColorMyBattery.plist$(ECHO_END)
