summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-19 20:35:26 -0500
committermidipix <writeonce@midipix.org>2018-12-19 20:51:36 -0500
commit7219fdc0a016e1bc7740a352ff83b0e3727a524e (patch)
tree12372d9817eff7f5ad4e4ef5b7524e3c4543b1da /project/config
parentc2e600e53977ee7fee6e25ecce0b366cc8be6347 (diff)
downloadsbpython2-7219fdc0a016e1bc7740a352ff83b0e3727a524e.tar.bz2
sbpython2-7219fdc0a016e1bc7740a352ff83b0e3727a524e.tar.xz
project: custom config: handle all sqlite-related bits at config-time.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 492dd3f..61482d3 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -217,6 +217,20 @@ cfgdefs_perform_target_tests()
mb_cfgtest_makevar='LDFLAGS_TCLTK_LIBS'
cfgtest_makevar_append "$mb_tcltk_libs"
+ # sqlite
+ cfgtest_newline
+ cfgtest_comment 'sqlite3'
+
+ mb_cfgtest_makevar='CFLAGS_SQLITE'
+ cfgtest_makevar_append '-DMODULE_NAME=\"sqlite3\"'
+ cfgtest_makevar_append '-DSQLITE_OMIT_LOAD_EXTENSION'
+
+ mb_cfgtest_makevar='LDFLAGS_SQLITE'
+ cfgtest_makevar_append '-lsqlite3'
+
+ mb_cfgtest_makevar='LDFLAGS_SQLITE_STATIC'
+ cfgtest_makevar_append '$(LDFLAGS_SQLITE)'
+
# pretty cfgdefs.mk
cfgtest_newline
}