You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Disable webcam stuff on macOS
This commit is contained in:
@@ -4,9 +4,16 @@ ifneq (,$(findstring -Wno-missing-field-initializers, $(CFLAGS_USERMOD)))
|
||||
CFLAGS_USERMOD += -Wno-missing-field-initializers
|
||||
endif
|
||||
|
||||
SRC_USERMOD_C += $(MOD_DIR)/src/hello_world.c
|
||||
# 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/hello_world.c
|
||||
SRC_USERMOD_C += $(MOD_DIR)/src/webcam.c
|
||||
endif
|
||||
|
||||
SRC_USERMOD_C += $(MOD_DIR)/src/quirc_decode.c
|
||||
SRC_USERMOD_C += $(MOD_DIR)/src/webcam.c
|
||||
|
||||
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/identify.c
|
||||
SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/version_db.c
|
||||
@@ -15,4 +22,3 @@ SRC_USERMOD_C += $(MOD_DIR)/quirc/lib/quirc.c
|
||||
|
||||
CFLAGS+= -I/usr/include
|
||||
|
||||
LDFLAGS+= -lv4l2
|
||||
|
||||
Reference in New Issue
Block a user