forked from numworks/epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.mak
More file actions
65 lines (55 loc) · 1.89 KB
/
module.mak
File metadata and controls
65 lines (55 loc) · 1.89 KB
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
$(call assert_defined,ION_layout_variant)
$(call create_module,ion,1, $(patsubst %, test/%:+test, \
crc32.cpp \
events.cpp \
exam_bytes.cpp \
exam_mode.cpp \
keyboard.cpp \
storage.cpp \
))
_ion_display_width_epsilon = 320
_ion_display_height_epsilon = 240
_ion_display_border_epsilon = 0
_ion_display_border_color_epsilon = KDColor::RGB888(0, 0, 0)
_ion_display_width_scandium = 200
_ion_display_height_scandium = 87
_ion_display_border_scandium = 3
_ion_display_border_color_scandium = KDColor::RGB888(0x88, 0x96, 0x8C)
_ion_keyboard_columns = 6
_ion_keyboard_rows_epsilon = 9
_ion_keyboard_rows_scandium = 8
SFLAGS_ion += \
-I$(PATH_ion)/include/ion/keyboard/$(ION_layout_variant) \
-DION_DISPLAY_WIDTH=$(_ion_display_width_$(ION_layout_variant)) \
-DION_DISPLAY_HEIGHT=$(_ion_display_height_$(ION_layout_variant)) \
-DION_DISPLAY_BORDER=$(_ion_display_border_$(ION_layout_variant)) \
-DION_DISPLAY_BORDER_COLOR="$(_ion_display_border_color_$(ION_layout_variant))" \
-DION_KEYBOARD_COLUMNS=$(_ion_keyboard_columns) \
-DION_KEYBOARD_ROWS=$(_ion_keyboard_rows_$(ION_layout_variant)) \
PRIVATE_SFLAGS_ion += \
-DEPSILON_VERSION=\"$(APP_VERSION)\" \
-DPATCH_LEVEL=\"$(PATCH_LEVEL)\" \
-DION_KEYBOARD_RICH=$(if $(findstring epsilon,$(ION_layout_variant)),1,0)
ION_STORAGE_LOG ?= 0
ION_LOG_EVENTS_NAME ?= 0
ifeq ($(PLATFORM_TYPE),simulator)
ifeq ($(DEBUG),1)
ION_STORAGE_LOG := 1
ION_LOG_EVENTS_NAME := 1
endif
endif
ifneq ($(ION_STORAGE_LOG),0)
SFLAGS_ion += -DION_STORAGE_LOG=1
endif
ifneq ($(ION_LOG_EVENTS_NAME),0)
SFLAGS_ion += -DION_LOG_EVENTS_NAME=1
endif
ifeq ($(PLATFORM_TYPE),simulator)
include $(PATH_ion)/shared.simulator.mak
else ifeq ($(PLATFORM),u0-discovery)
include $(PATH_ion)/scandium.shared.mak
else
include $(PATH_ion)/epsilon.$(PLATFORM_TYPE).mak
endif
$(call assert_defined,KANDINSKY_fonts_dependencies)
$(call all_objects_for,$(SOURCES_ion)): $(KANDINSKY_fonts_dependencies)