forked from MicroPythonOS/MicroPythonOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmicropython.mk
More file actions
24 lines (18 loc) · 723 Bytes
/
micropython.mk
File metadata and controls
24 lines (18 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MOD_DIR := $(USERMOD_DIR)
ifneq (,$(findstring -Wno-missing-field-initializers, $(CFLAGS_USERMOD)))
CFLAGS_USERMOD += -Wno-missing-field-initializers
endif
# Check which system this build is being performed on
UNAME_S := $(shell uname -s)
ifneq ($(UNAME_S),Darwin)
# Non-macOS settings (e.g., Linux)
LDFLAGS += -lv4l2
SRC_USERMOD_C += $(MOD_DIR)/src/webcam.c
endif
SRC_USERMOD_C += $(MOD_DIR)/src/quirc_decode.c
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/identify.c
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/version_db.c
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/decode.c
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/quirc.c
#SRC_USERMOD_C += $(MOD_DIR)/src/font_Noto_Sans_sat_emojis_compressed.c
CFLAGS+= -I/usr/include