mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-02 21:48:20 +03:00
cppdb: enable postgresql support
Also: Fix mysql support. Add hash file. Forcibly disable automatic db support when it's not selected. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
7b36de16ea
commit
2641edb8c4
@@ -14,7 +14,18 @@ CPPDB_LICENSE_FILES = LICENSE_1_0.txt MIT.txt
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
||||
CPPDB_DEPENDENCIES += mysql
|
||||
CPPDB_CONF_OPTS += -DMYSQL_LIB=$(STAGING_DIR)/usr/lib/mysql
|
||||
else
|
||||
CPPDB_CONF_OPTS += -DDISABLE_MYSQL=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
||||
CPPDB_DEPENDENCIES += postgresql
|
||||
else
|
||||
CPPDB_CONF_OPTS += -DDISABLE_PQ=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),)
|
||||
CPPDB_CONF_OPTS += -DDISABLE_SQLITE=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
Reference in New Issue
Block a user