Recipe files
LICENSE-libzueci 1569 bytes · raw
libzueci (core/src/libzueci of zxing-cpp), an open source UTF-8 ECI library adapted from libzint
Copyright (C) 2022 gitlost
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions
and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other materials provided
with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
LICENSE-zint 1535 bytes · raw
libzint - the open source barcode library
Copyright (C) 2008-2025 Robin Stuart <rstuart114@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the project nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
build.lua 829 bytes · raw
-- The CMake project of the reader (with `writers`, the writer too): ZXing.lib, or ZXing.lib with ZXing.dll, and
-- include/ZXing/.
function build(slice, options, deps)
-- the project of core/, as the wrappers build it: the top one adds, with the C API, the C wrapper's test
-- program, for which it fetches stb; the writer's libzint is the submodule zint/ beside core/
otok.cmake{
source = slice.source .. "/core",
defines = { ZXING_READERS = true, ZXING_WRITERS = options.writers and "NEW" or "OFF", ZXING_C_API = true },
}
local p = slice.prefix
local library = otok.glob("lib/ZXing.lib", p)[1]
local dll = otok.glob("bin/ZXing.dll", p)[1]
if dll then library = { link = library, runtime = dll } end
return { libraries = { ZXing = library }, headers = p .. "/include" }
end
recipe.toml 1839 bytes · raw
# The otok recipe of zxing-cpp (https://github.com/apotocki/otok): the barcode reader library, with `writers`
# also the writer of its new backend, the bundled libzint (the submodule zint/), for Windows, with MSVC or with clang-cl
# across from Linux.
[recipe]
api = 1
library = "zxing-cpp"
name = "zxing-cpp"
version = "3.1.1"
revision = 1
# the reader carries libzueci (core/src/libzueci), the writer libzint (zint/backend), both BSD-3-Clause; the source has
# neither text: zint/LICENSE only says which part of zint is BSD, the text is in the headers of its files. The code of
# android/ and wrappers/ is this recipe's own, CC0-1.0.
license = "Apache-2.0 AND BSD-3-Clause AND CC0-1.0"
license-files = ["LICENSE", { recipe = "LICENSE-libzueci" }, "zint/LICENSE", { recipe = "LICENSE-zint" }]
homepage = "https://github.com/zxing-cpp/zxing-cpp"
description = "zxing-cpp, a barcode reader and writer for linear and matrix formats: QR Code, Micro QR, rMQR, Aztec, DataMatrix, PDF417, MaxiCode, EAN/UPC, Code 39/93/128, ITF, Codabar, DataBar and others."
keywords = ["barcode", "qrcode", "scanner", "zxing"]
linkage = ["static", "dynamic"]
cxx-standard = ">= 20"
[source]
git = "https://github.com/zxing-cpp/zxing-cpp"
commit = "287c85df6f961c8efbfb5ffd736cd9457b8b890e"
tag = "v3.1.1"
# zint/, the writer's backend
submodules = true
[platforms]
supported = ["windows"]
build-on = ["windows/msvc", "linux/clang-cl"]
[options.writers]
type = "bool"
default = false
doc = "The writer of the new backend (ZXING_WRITERS = NEW: CreateBarcode.h, WriteBarcode.h), built from the bundled libzint into the ZXing library."
[toolchains]
cmake = { version = ">= 3.16", default-recipe = "apotocki/cmake" }
ninja = { version = ">= 1.10", default-recipe = "apotocki/ninja" }
[[product]]
name = "ZXing"
libraries = ["ZXing"]
link = { runtime = "c++" }