diff options
-rw-r--r-- | rules/host-sqlite.in | 6 | ||||
-rw-r--r-- | rules/host-sqlite.make | 51 |
2 files changed, 57 insertions, 0 deletions
diff --git a/rules/host-sqlite.in b/rules/host-sqlite.in new file mode 100644 index 000000000..b79005603 --- /dev/null +++ b/rules/host-sqlite.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_platform +## SECTION=hosttools_noprompt + +config HOST_SQLITE + tristate + default ALLYES diff --git a/rules/host-sqlite.make b/rules/host-sqlite.make new file mode 100644 index 000000000..9ba633fef --- /dev/null +++ b/rules/host-sqlite.make @@ -0,0 +1,51 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Jan Luebbe <jlu@pengutronix.de> +# +# 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 +# +HOST_PACKAGES-$(PTXCONF_HOST_SQLITE) += host-sqlite + +# +# Paths and names +# +HOST_SQLITE = $(SQLITE) +HOST_SQLITE_DIR = $(HOST_BUILDDIR)/$(HOST_SQLITE) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_SQLITE_CONF_ENV := \ + $(HOST_ENV) \ + CPPFLAGS=" \ + -DSQLITE_ENABLE_COLUMN_METADATA=1 \ + -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \ + -DSQLITE_ENABLE_FTS4=1 \ + -DSQLITE_ENABLE_JSON1=1 \ + -DSQLITE_ENABLE_RTREE=1 \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \ + -DSQLITE_SOUNDEX=1 \ + " + +HOST_SQLITE_CONF_TOOL := autoconf +HOST_SQLITE_CONF_OPT := \ + $(HOST_AUTOCONF) \ + --disable-static \ + --disable-editline \ + --disable-readline \ + --enable-threadsafe \ + --disable-dynamic-extensions \ + --disable-fts5 \ + --enable-json1 \ + --disable-session \ + --disable-static-shell + +# vim: syntax=make |