From c00487d588f9ae45d8a477a1c436fde69feca782 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Fri, 5 Jul 2019 07:52:08 +0900 Subject: Fix build without features.dlopen Change-Id: I4ad24c241d3c32a5658bf71fa6133181793020d3 Reviewed-by: Volker Hilsheimer --- src/3rdparty/sqlite.pri | 6 +++++- src/gui/configure.json | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/3rdparty/sqlite.pri b/src/3rdparty/sqlite.pri index 6405beb3d0..cc8c12a6da 100644 --- a/src/3rdparty/sqlite.pri +++ b/src/3rdparty/sqlite.pri @@ -9,7 +9,11 @@ winrt { } qnx: DEFINES += _QNX_SOURCE !win32:!winrt:!winphone: DEFINES += HAVE_USLEEP=1 -qtConfig(dlopen): QMAKE_USE += libdl +qtConfig(dlopen) { + QMAKE_USE += libdl +} else { + DEFINES += SQLITE_OMIT_LOAD_EXTENSION +} integrity: QMAKE_CFLAGS += -include qplatformdefs.h INCLUDEPATH += $$PWD/sqlite SOURCES += $$PWD/sqlite/sqlite3.c diff --git a/src/gui/configure.json b/src/gui/configure.json index 81b6ebbb84..c2793bf236 100644 --- a/src/gui/configure.json +++ b/src/gui/configure.json @@ -1,7 +1,7 @@ { "module": "gui", "depends": [ - "core", + "core-private", "network" ], "testDir": "../../config.tests", @@ -1375,7 +1375,7 @@ }, "egl": { "label": "EGL", - "condition": "(features.opengl || features.openvg) && (features.angle || libs.egl)", + "condition": "(features.opengl || features.openvg) && (features.angle || libs.egl) && (features.dlopen || !config.unix)", "output": [ "privateFeature", "feature" ] }, "egl_x11": { -- cgit v1.2.3