2024-07-27 06:49:29 +00:00
|
|
|
From 7435b2e12c2004cb0c497ff313288902f2a6f39a Mon Sep 17 00:00:00 2001
|
|
|
|
From: toonn <toonn@toonn.io>
|
|
|
|
Date: Fri, 19 Jul 2024 21:53:58 +0200
|
|
|
|
Subject: [PATCH] Don't build demos
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile | 7 ++-----
|
|
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
diff --git a/Makefile b/Makefile
|
2024-07-27 06:49:29 +00:00
|
|
|
index 8327b4e..7901cc5 100644
|
2022-04-15 01:41:22 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2024-07-27 06:49:29 +00:00
|
|
|
@@ -45,7 +45,7 @@ DEMO_UTIL_OBJ = \
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
OPENCV_CFLAGS := $(shell pkg-config --cflags opencv4 2>&1)
|
|
|
|
OPENCV_LIBS = $(shell pkg-config --libs opencv4)
|
2022-04-15 01:41:22 +00:00
|
|
|
-QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) $(OPENCV_CFLAGS) --std=c++17
|
|
|
|
+QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) --std=c++17
|
|
|
|
|
|
|
|
.PHONY: all v4l sdl opencv install uninstall clean
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
@@ -93,15 +93,12 @@ libquirc.$(VERSIONED_LIB_SUFFIX): $(LIB_OBJ)
|
2022-04-15 01:41:22 +00:00
|
|
|
.cxx.o:
|
|
|
|
$(CXX) $(QUIRC_CXXFLAGS) -o $@ -c $<
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
-install: libquirc.a libquirc.$(LIB_SUFFIX) quirc-demo quirc-scanner
|
|
|
|
+install: libquirc.a libquirc.$(LIB_SUFFIX)
|
2022-04-15 01:41:22 +00:00
|
|
|
install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include
|
|
|
|
install -o root -g root -m 0644 libquirc.a $(DESTDIR)$(PREFIX)/lib
|
2024-07-27 06:49:29 +00:00
|
|
|
install -o root -g root -m 0755 libquirc.$(VERSIONED_LIB_SUFFIX) \
|
2022-04-15 01:41:22 +00:00
|
|
|
$(DESTDIR)$(PREFIX)/lib
|
2024-07-27 06:49:29 +00:00
|
|
|
cp -d libquirc.$(LIB_SUFFIX) $(DESTDIR)$(PREFIX)/lib
|
2022-04-15 01:41:22 +00:00
|
|
|
- install -o root -g root -m 0755 quirc-demo $(DESTDIR)$(PREFIX)/bin
|
|
|
|
- # install -o root -g root -m 0755 quirc-demo-opencv $(DESTDIR)$(PREFIX)/bin
|
|
|
|
- install -o root -g root -m 0755 quirc-scanner $(DESTDIR)$(PREFIX)/bin
|
|
|
|
|
|
|
|
uninstall:
|
2024-07-27 06:49:29 +00:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/include/quirc.h
|
|
|
|
--
|
|
|
|
2.42.2
|
|
|
|
|