summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-08-28 15:58:08 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 20:30:30 +0200
commit69698e123c4ae128e930e20becb1dcd4e72b4907 (patch)
treec1fa27a80ec483b97eacee49c8a0925527df7304 /rules
parent60e4cd806765905de66bc334855df64982a545fb (diff)
downloadptxdist-69698e123c4ae128e930e20becb1dcd4e72b4907.tar.gz
ptxdist-69698e123c4ae128e930e20becb1dcd4e72b4907.tar.xz
sqlitecpp: new package
SQLiteC++ offers an encapsulation around the native C APIs of SQLite, with a few intuitive and well documented C++ classes. The library is only built statically, so there is no need to targetinstall anything. Based on a patch by Chetan Dayananda. Cc: Chetan Dayananda <chetan.dayananda@in.bosch.com> Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/sqlitecpp.in11
-rw-r--r--rules/sqlitecpp.make39
2 files changed, 50 insertions, 0 deletions
diff --git a/rules/sqlitecpp.in b/rules/sqlitecpp.in
new file mode 100644
index 000000000..e6a662337
--- /dev/null
+++ b/rules/sqlitecpp.in
@@ -0,0 +1,11 @@
+## SECTION=system_libraries
+
+config SQLITECPP
+ bool
+ prompt "sqlitecpp"
+ select HOST_CMAKE
+ select SQLITE
+ select SQLITE_LOAD_EXTENSION
+ help
+ SQLiteC++ offers an encapsulation around the native C APIs of SQLite,
+ with a few intuitive and well documented C++ classes.
diff --git a/rules/sqlitecpp.make b/rules/sqlitecpp.make
new file mode 100644
index 000000000..5d1b74d60
--- /dev/null
+++ b/rules/sqlitecpp.make
@@ -0,0 +1,39 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Chetan Dayananda <chetan.dayananda@in.bosch.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SQLITECPP) += sqlitecpp
+
+#
+# Paths and names
+#
+SQLITECPP_VERSION := 2.4.0
+SQLITECPP_MD5 := aa0da9aa79bd76bc09446de418b6be08
+SQLITECPP := sqlitecpp-$(SQLITECPP_VERSION)
+SQLITECPP_SUFFIX := tar.gz
+SQLITECPP_URL := https://github.com/SRombauts/SQLiteCpp/archive/$(SQLITECPP_VERSION).$(SQLITECPP_SUFFIX)
+SQLITECPP_SOURCE := $(SRCDIR)/$(SQLITECPP).tar.gz
+SQLITECPP_DIR := $(BUILDDIR)/$(SQLITECPP)
+SQLITECPP_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SQLITECPP_CONF_TOOL := cmake
+SQLITECPP_CONF_OPT := $(CROSS_CMAKE_USR) -DSQLITECPP_INTERNAL_SQLITE=OFF
+
+#
+# No Target-Install stage because the package only builds a static lib.
+#
+
+# vim: syntax=make