summaryrefslogtreecommitdiff
path: root/src/libs/sqlite/sqlite.qbs
blob: e223470644d68d8a736b47fd76dfd722ef8086a7 (plain)
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
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") ? ["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",
            "."
        ])
    }
}