First commit of Shredos v2021.08.2_19_x86-64_0.32.014

This commit is contained in:
PartialVolume
2021-11-23 23:01:30 +00:00
commit 49625f0571
12651 changed files with 532695 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
From 9e5dfa57f3b998bc3049bfa893b20e81dea656df Mon Sep 17 00:00:00 2001
From: Yuri <yuri@rawbw.com>
Date: Sat, 20 Apr 2019 07:28:26 -0700
Subject: [PATCH] Link library with OpenCV, not only the executable, make libs
PRIVATE.
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/glassechidna/zxing-cpp/pull/86]
---
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 738f4e1..efe3aee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,10 +60,12 @@ include_directories(core/src)
add_library(libzxing ${LIBZXING_FILES})
set_target_properties(libzxing PROPERTIES PREFIX "")
+set(libzxing_LIBS "")
+
find_package(Iconv)
if(ICONV_FOUND)
include_directories(${ICONV_INCLUDE_DIR})
- target_link_libraries(libzxing ${ICONV_LIBRARIES})
+ set(libzxing_LIBS ${libzxing_LIBS} ${ICONV_LIBRARIES})
else()
add_definitions(-DNO_ICONV=1)
endif()
@@ -75,9 +77,12 @@ if(OpenCV_FOUND)
"./opencv-cli/src/*.h"
)
add_executable(zxing-cv ${OPENCV_ZXING_FILES})
+ set(libzxing_LIBS ${libzxing_LIBS} ${OpenCV_LIBRARIES})
target_link_libraries(zxing-cv libzxing ${OpenCV_LIBRARIES})
endif()
+target_link_libraries(libzxing PRIVATE ${libzxing_LIBS})
+
# Add cli executable.
file(GLOB_RECURSE ZXING_FILES
"./cli/src/*.cpp"

View File

@@ -0,0 +1,39 @@
From fe740316af970f57ec511cdeafb512510e4842a9 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 9 Nov 2019 17:21:13 +0100
Subject: [PATCH] CMakeLists.txt: add BUILD_OPENCV option
Add BUILD_OPENCV option to allow the user to disable OpenCV. It is
especially useful as opencv library can be built without highgui support
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/glassechidna/zxing-cpp/pull/90]
---
CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 738f4e1..12913cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.0)
project(zxing)
option(BUILD_TESTING "Enable generation of test targets" OFF)
+option(BUILD_OPENCV "Enable OpenCV classes and OpenCV cli executable" ON)
set(CMAKE_LIBRARY_PATH /opt/local/lib ${CMAKE_LIBRARY_PATH})
@@ -44,8 +45,10 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
-# OpenCV classes
-find_package(OpenCV)
+if (BUILD_OPENCV)
+ # OpenCV classes
+ find_package(OpenCV)
+endif()
if(OpenCV_FOUND)
list(APPEND LIBZXING_FILES
opencv/src/zxing/MatSource.cpp

View File

@@ -0,0 +1,14 @@
comment "zxing-cpp needs a toolchain w/ C++, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
config BR2_PACKAGE_ZXING_CPP
bool "zxing-cpp"
depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP
help
ZXing-cpp (pronounced "zebra crossing") is an open-source,
multi-format 1D/2D barcode image processing library
implemented in Java, with ports to other languages. This
compiles the C++ port.
https://github.com/glassechidna/zxing-cpp

View File

@@ -0,0 +1,5 @@
# Locally calculated
sha256 4c2b8601d0e3377143c1a0bbab220146af9fa5a5e29e8fbef42862fe3d38f8e6 zxing-cpp-e0e40ddec63f38405aca5c8c1ff60b85ec8b1f10.tar.gz
# License files
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 COPYING

View File

@@ -0,0 +1,26 @@
################################################################################
#
# zxing-cpp
#
################################################################################
ZXING_CPP_VERSION = e0e40ddec63f38405aca5c8c1ff60b85ec8b1f10
ZXING_CPP_SITE = $(call github,glassechidna,zxing-cpp,$(ZXING_CPP_VERSION))
ZXING_CPP_LICENSE = Apache-2.0
ZXING_CPP_LICENSE_FILES = COPYING
ZXING_CPP_INSTALL_STAGING = YES
ZXING_CPP_SUPPORTS_IN_SOURCE_BUILD = NO
ZXING_CPP_CONF_OPTS = -DBUILD_TESTING=OFF
ifeq ($(BR2_PACKAGE_LIBICONV),y)
ZXING_CPP_DEPENDENCIES += libiconv
endif
ifeq ($(BR2_PACKAGE_OPENCV3_LIB_HIGHGUI),y)
ZXING_CPP_DEPENDENCIES += opencv3
ZXING_CPP_CONF_OPTS += -DBUILD_OPENCV=ON
else
ZXING_CPP_CONF_OPTS += -DBUILD_OPENCV=OFF
endif
$(eval $(cmake-package))