diff --git a/pkg/Kconfig b/pkg/Kconfig index 81ff5332af..89a3c50cea 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -32,6 +32,7 @@ rsource "nanocbor/Kconfig" rsource "nanopb/Kconfig" rsource "qcbor/Kconfig" rsource "qDSA/Kconfig" +rsource "qr-code-generator/Kconfig" rsource "relic/Kconfig" rsource "semtech-loramac/Kconfig" rsource "talking_leds/Kconfig" diff --git a/pkg/qr-code-generator/Kconfig b/pkg/qr-code-generator/Kconfig new file mode 100644 index 0000000000..d0b3f13503 --- /dev/null +++ b/pkg/qr-code-generator/Kconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2021 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. + +config PACKAGE_QR-CODE-GENERATOR + bool "QR Code generator" + depends on TEST_KCONFIG diff --git a/pkg/qr-code-generator/Makefile b/pkg/qr-code-generator/Makefile new file mode 100644 index 0000000000..4b98f0c475 --- /dev/null +++ b/pkg/qr-code-generator/Makefile @@ -0,0 +1,11 @@ +PKG_NAME=qr-code-generator +PKG_URL=https://github.com/nayuki/QR-Code-generator +PKG_VERSION=71c75cfeb0f06788ebc43a39b704c39fcf5eba7c # v1.6.0 +PKG_LICENSE=MIT + +include $(RIOTBASE)/pkg/pkg.mk + +CFLAGS += -Wno-type-limits + +all: + $(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/c -f $(CURDIR)/$(PKG_NAME).mk diff --git a/pkg/qr-code-generator/Makefile.include b/pkg/qr-code-generator/Makefile.include new file mode 100644 index 0000000000..ab90976c68 --- /dev/null +++ b/pkg/qr-code-generator/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/qr-code-generator/c diff --git a/pkg/qr-code-generator/doc.txt b/pkg/qr-code-generator/doc.txt new file mode 100644 index 0000000000..0365fb36e9 --- /dev/null +++ b/pkg/qr-code-generator/doc.txt @@ -0,0 +1,11 @@ +/** + * @defgroup pkg_qr-code-generator QR Code generator + * @ingroup pkg + * @brief QR Code generator library + * + * # License + * + * Licensed under MIT. + * + * @see https://github.com/nayuki/QR-Code-generator + */ diff --git a/pkg/qr-code-generator/qr-code-generator.mk b/pkg/qr-code-generator/qr-code-generator.mk new file mode 100644 index 0000000000..6b0a0c8af5 --- /dev/null +++ b/pkg/qr-code-generator/qr-code-generator.mk @@ -0,0 +1,5 @@ +MODULE = qr-code-generator + +SRC := qrcodegen.c + +include $(RIOTBASE)/Makefile.base