SHA256
8
0
forked from pool/zxing-cpp

Accepting request 1115985 from home:polslinux:branches:devel:libraries:c_c++

- Update to 2.1.0:
  * Considerable performance improvements in linear symbol detection (up to 2x speedup in select use cases of ReadBarcodes)
  * QRCode: major improvement in detection of high version symbols (see e.g. here)
  * DMDetector: reduce runtime overhead of c++-20 builds 
  * Refactor Python wrapper so the sdist includes the core library code 
  * wasm wrapper: add function to reader to scan multiple barcode 
  * Added a C wrapper
  * Python: improve error reporting
  * DMDetector: fix potential dead-lock
  * DMDecoder: support 144x144 symbols in legacy and compliant variants
- Remove the %check section since we are not building the tests.

OBS-URL: https://build.opensuse.org/request/show/1115985
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=33
This commit is contained in:
2023-10-09 11:11:32 +00:00
committed by Git OBS Bridge
parent f4c4811a30
commit e409205e98
5 changed files with 46 additions and 31 deletions

View File

@@ -1,30 +1,32 @@
--- zxing-cpp-2.0.0/CMakeLists.txt 2023-08-08 13:26:51.918694430 +0200
+++ zxing-cpp-2.0.0/CMakeLists.txt 2023-08-08 13:38:00.669700216 +0200
diff -ru orig/CMakeLists.txt mod/CMakeLists.txt
--- orig/CMakeLists.txt 2023-07-05 18:25:57.000000000 +0200
+++ mod/CMakeLists.txt 2023-10-06 08:29:27.429624816 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.14)
+cmake_minimum_required (VERSION 3.5)
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.5)
project(ZXing)
@@ -42,8 +42,7 @@
@@ -37,9 +37,6 @@
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
-set (CMAKE_CXX_STANDARD 17)
-set (CMAKE_CXX_EXTENSIONS OFF)
+set (CMAKE_CXX_EXTENSIONS ON)
if (NOT (BUILD_READERS OR BUILD_WRITERS))
message(FATAL_ERROR "At least one of BUILD_READERS/BUILD_WRITERS must be enabled.")
--- zxing-cpp-2.0.0/core/CMakeLists.txt 2023-08-08 13:26:51.918694430 +0200
+++ zxing-cpp-2.0.0/core/CMakeLists.txt 2023-08-08 13:32:23.494204854 +0200
-if (NOT CMAKE_CXX_STANDARD)
- set (CMAKE_CXX_STANDARD 17)
-endif()
if (NOT CMAKE_CXX_EXTENSIONS)
set (CMAKE_CXX_EXTENSIONS OFF)
endif()
diff -ru orig/core/CMakeLists.txt mod/core/CMakeLists.txt
--- orig/core/CMakeLists.txt 2023-07-05 18:25:57.000000000 +0200
+++ mod/core/CMakeLists.txt 2023-10-06 08:29:35.169666650 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.14)
+cmake_minimum_required (VERSION 3.5)
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.5)
project (ZXing VERSION "2.0.0")
project (ZXing VERSION "2.1.0")
set (ZXING_SONAME 3) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
@@ -457,8 +457,6 @@
@@ -459,8 +459,6 @@
)
endif()