You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
25 lines
723 B
Makefile
25 lines
723 B
Makefile
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
|
|
|