<commit_before>﻿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("dl")


    Group {
        name: "ThirdPartySqlite"
        prefix: "../3rdparty/sqlite/"
        files: [
            "sqlite3.c",
            "sqlite3.h",
            "sqlite3ext.h",
        ]
    }

    Group {
        files: [
            "*.h",
            "*.cpp"
        ]
    }

    Export {
        cpp.includePaths: base.concat([<commit_msg>sqlite: Fix qbs build on Windows.<commit_after>﻿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/"
        files: [
            "sqlite3.c",
            "sqlite3.h",
            "sqlite3ext.h",
        ]
    }

    Group {
        files: [
            "*.h",
            "*.cpp"
        ]
    }

    Export {
        cpp.includePaths: base.concat([
{'fraction_non_alphanumeric': 0.1412190706095353, 'fraction_numerical': 0.012070006035003017, 'mean_word_length': 1.834188034188034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5599945', 'n_tokens_mistral': 617, 'n_tokens_neox': 582, 'n_words': 77}