forked from qt-creator/qt-creator
Change-Id: I33b29016daa950ab88632ffbc5cf54dde4c6eafa Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
44 lines
952 B
QML
44 lines
952 B
QML
import qbs 1.0
|
|
|
|
QtcLibrary {
|
|
name: "Sqlite"
|
|
|
|
cpp.includePaths: base.concat(["../3rdparty/sqlite", "."])
|
|
cpp.defines: base.concat([
|
|
"BUILD_SQLITE_LIBRARY",
|
|
"SQLITE_THREADSAFE=2",
|
|
"SQLITE_ENABLE_FTS4",
|
|
"SQLITE_ENABLE_FTS3_PARENTHESIS",
|
|
"SQLITE_ENABLE_UNLOCK_NOTIFY",
|
|
"SQLITE_ENABLE_COLUMN_METADATA"
|
|
])
|
|
cpp.optimization: "fast"
|
|
cpp.dynamicLibraries: base.concat((qbs.targetOS.contains("unix") && !qbs.targetOS.contains("openbsd")) ? ["dl"] : [])
|
|
|
|
|
|
Group {
|
|
name: "ThirdPartySqlite"
|
|
prefix: "../3rdparty/sqlite/"
|
|
cpp.warningLevel: "none"
|
|
files: [
|
|
"sqlite3.c",
|
|
"sqlite3.h",
|
|
"sqlite3ext.h",
|
|
]
|
|
}
|
|
|
|
Group {
|
|
files: [
|
|
"*.h",
|
|
"*.cpp"
|
|
]
|
|
}
|
|
|
|
Export {
|
|
cpp.includePaths: base.concat([
|
|
"../3rdparty/sqlite",
|
|
"."
|
|
])
|
|
}
|
|
}
|