This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlite.pro
More file actions
82 lines (67 loc) · 2.5 KB
/
sqlite.pro
File metadata and controls
82 lines (67 loc) · 2.5 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
####################################################################################################
#
# $ALPINE_TOOLKIT_BEGIN_LICENSE:GPL3$
#
# Copyright (C) 2017 Fabrice Salvaire
# Contact: http://www.fabrice-salvaire.fr
#
# This file is part of the QtCarto library.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# $ALPINE_TOOLKIT_END_LICENSE$
#
####################################################################################################
####################################################################################################
# QtCreator: only build the project
# export ANDROID_NDK_ROOT=/opt/android-ndk-r10e
# /opt/Qt/5.9/android_armv7/bin/qmake -o Makefile ../sqlite/sqlite.pro -spec android-g++ CONFIG+=debug CONFIG+=qml_debug
TARGET = qsqlite-at
TEMPLATE = lib
####################################################################################################
CONFIG += plugin
CONFIG += c++11
# CONFIG += debug
QT -= gui
QT += core-private sql-private
PLUGIN_CLASS_NAME = QSQLiteDriverPlugin
PLUGIN_TYPE = sqldrivers
HEADERS += $$PWD/qsql_sqlite_at_p.h
SOURCES += $$PWD/qsql_sqlite_at.cpp $$PWD/smain.cpp
linux:!android {
# Qt is compiled on Linux using system SQLite
# It crashes if we compile SQLite source in the plugin.
LIBS += -lsqlite3
}
android {
# SOURCES += $$PWD/sqlite3.c
LIBS += $$PWD/../build-cmake-android-$$ANDROID_TARGET_ARCH/third-parties/sqlite/libsqlite.so
}
# CONFIG(release, debug|release):DEFINES *= NDEBUG
# See sqlite CMakelist.txt
DEFINES += SQLITE_OMIT_COMPLETE SQLITE_ENABLE_FTS3 SQLITE_ENABLE_FTS3_PARENTHESIS SQLITE_ENABLE_RTREE
linux:!android {
DEFINES += HAVE_POSIX_FALLOCATE=1
}
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
OTHER_FILES += sqlite.json
android {
DESTDIR = $$OUT_PWD/../plugins/sqldrivers
# qsqlite-at.path = $$PWD/plugins-foo/sqldrivers
# INSTALLS += qsqlite-at
}
linux:!android {
# qsqlite-at.path += $$[QT_INSTALL_PLUGINS]/sqldrivers
# INSTALLS += qsqlite-at
}