summaryrefslogtreecommitdiffstats
path: root/rules/host-sqlite.make
blob: 9ba633fef9a8f18ea4449d5f63ecc90612ee72be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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