forked from manna-harbour/miryoku_kmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_rules.mk
49 lines (34 loc) · 1003 Bytes
/
post_rules.mk
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
# Copyright 2022 Manna Harbour
# https://github.com/manna-harbour/miryoku
# create macro with value appended
ifneq ($(strip $(MIRYOKU_ALPHAS)),)
OPT_DEFS += -DMIRYOKU_ALPHAS_$(MIRYOKU_ALPHAS)
endif
ifneq ($(strip $(MIRYOKU_EXTRA)),)
OPT_DEFS += -DMIRYOKU_EXTRA_$(MIRYOKU_EXTRA)
endif
ifneq ($(strip $(MIRYOKU_TAP)),)
OPT_DEFS += -DMIRYOKU_TAP_$(MIRYOKU_TAP)
endif
ifneq ($(strip $(MIRYOKU_NAV)),)
OPT_DEFS += -DMIRYOKU_NAV_$(MIRYOKU_NAV)
endif
ifneq ($(strip $(MIRYOKU_CLIPBOARD)),)
OPT_DEFS += -DMIRYOKU_CLIPBOARD_$(MIRYOKU_CLIPBOARD)
endif
ifneq ($(strip $(MIRYOKU_LAYERS)),)
OPT_DEFS += -DMIRYOKU_LAYERS_$(MIRYOKU_LAYERS)
endif
ifneq ($(strip $(MIRYOKU_MAPPING)),)
OPT_DEFS += -DMIRYOKU_MAPPING_$(MIRYOKU_MAPPING)
endif
ifneq ($(strip $(KMK_KEYBOARD)),)
OPT_DEFS += -DKMK_KEYBOARD_$(KMK_KEYBOARD)
endif
ifneq ($(strip $(KMK_RGB)),)
OPT_DEFS += -DKMK_RGB_$(KMK_RGB)
endif
# create macro with value
ifneq ($(strip $(KMK_KCP)),)
OPT_DEFS += -DKMK_KCP=$(KMK_KCP)
endif