-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 1.39 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
LIBRARY_NAME = libDCWeather
$(LIBRARY_NAME)_FILES = $(wildcard *.m)
$(LIBRARY_NAME)_CFLAGS = -fobjc-arc -I$(THEOS_PROJECT_DIR)/headers
$(LIBRARY_NAME)_FRAMEWORKS = UIKit CoreLocation
$(LIBRARY_NAME)_PRIVATE_FRAMEWORKS = Weather SpringBoard
$(LIBRARY_NAME)_INSTALL_PATH = /usr/lib
ifeq ($(SIM_BUILD), 1)
SIM_BUILD = 1
TARGET := simulator:clang::15.0
ARCHS = arm64
else
SIM_BUILD = 0
TARGET := iphone:clang:latest:15.0
INSTALL_TARGET_PROCESSES = SpringBoard
SDK_PATH = $(THEOS)/sdks/iPhoneOS16.5.sdk/
SYSROOT = $(SDK_PATH)
ifeq ($(ROOTLESS), 1)
THEOS_PACKAGE_SCHEME = rootless
endif
endif
export SIM_BUILD
export DEBUG
export FINALPACKAGE
export ROOTLESS
include $(THEOS)/makefiles/common.mk
##################################
########## NOTE ##########
################################## \
If the current build is a production build, the LDCW_DEBUG variable will be ignored and just overwritten.\
This way production builds won't get built with debug output enabled by accident. \
If the current build is not a production build, the LDCW_DEBUG variable will be passed to the compiler.
ifeq ($(FINALPACKAGE), 1)
$(LIBRARY_NAME)_CFLAGS += -DLDCW_DEBUG=0
else
$(LIBRARY_NAME)_CFLAGS += -DLDCW_DEBUG="$(DEBUG)"
endif
ifeq ($(DEBUG), 1)
ifeq ($(FINALPACKAGE), 0)
$(LIBRARY_NAME)_CFLAGS += -Wno-unused-variable -Wno-unused-function -ferror-limit=0
endif
endif
include $(THEOS_MAKE_PATH)/library.mk