Disable webcam stuff on macOS

This commit is contained in:
Thomas Farstrike
2025-10-24 23:18:35 +02:00
parent d5d443a25a
commit 5c81ae4340
+9 -3
View File
@@ -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