<commit_before>import qbs


StaticLibrary {
    name: "qnite"

    Depends { name: "cpp" }
    cpp.includePaths: [
        product.sourceDirectory + "/src/",
        product.sourceDirectory + "/src/tools/",
        product.sourceDirectory + "/src/items/",
        product.sourceDirectory + "/3rdparty/qnanopainter/libqnanopainter/",
    ]
    cpp.cxxLanguageVersion: "c++14"
    cpp.defines: ["QNANO_QT_GL_INCLUDE"]
    cpp.dynamicLibraries: ["GL"]

    Depends { name: "Qt.qml" }
    Depends { name: "Qt.quick" }

    files: [
        "src/qniteartist.cpp",
        "src/qnitexyartist.cpp",
        "src/qniteaxis.cpp",
        "src/qnitelinearaxis.cpp",
        "src/qnitecategoryaxis.cpp",
        "src/qniteaxistick.cpp",
        "src/qniteaxes.cpp",
        "src/qniteclipper.cpp",
        "src/qnitemapper.cpp",
        "src/qnitelinearmapper.cpp",
        "src/qniteticker.cpp",
        "src/qnitelinearticker.cpp",
        "src/items/qnitebar.cpp",
        "src/items/qnitebarpainter.cpp",
        "src/items/qnitecircle.cpp",
        "src/items/qnitecirclepainter.cpp",
        "src/items/qnitegrid.cpp",
        "src/items/qnitegridpainter.cpp",
        "src/items/qniteline.cpp",
        "src/items/qnitelinepainter.cpp",
        "src/items/qnitepen.cpp",
        "src/items/qnitespline.cpp",
        "src/tools/qnitetool.cpp",<commit_msg>Added Windows compatibility to QBS<commit_after>import qbs


StaticLibrary {
    name: "qnite"

    Depends { name: "cpp" }
    cpp.includePaths: [
        product.sourceDirectory + "/src/",
        product.sourceDirectory + "/src/tools/",
        product.sourceDirectory + "/src/items/",
        product.sourceDirectory + "/3rdparty/qnanopainter/libqnanopainter/",
    ]
    cpp.cxxLanguageVersion: "c++14"
    cpp.defines: ["QNANO_QT_GL_INCLUDE"]
    cpp.dynamicLibraries: {
        if (qbs.targetOS.contains("windows")) {
            if (qbs.debugInformation) {
                return ["libGLESV2d"];
            } else {
                return ["libGLESV2"];
            }
        } else {
            return ["GL"];
        }
    }

    Depends { name: "Qt.qml" }
    Depends { name: "Qt.quick" }

    files: [
        "src/qniteartist.cpp",
        "src/qnitexyartist.cpp",
        "src/qniteaxis.cpp",
        "src/qnitelinearaxis.cpp",
        "src/qnitecategoryaxis.cpp",
        "src/qniteaxistick.cpp",
        "src/qniteaxes.cpp",
        "src/qniteclipper.cpp",
        "src/qnitemapper.cpp",
        "src/qnitelinearmapper.cpp",
        "src/qniteticker.cpp",
        "src/qnitelinearticker.cpp",
        "src/items/qnitebar.cpp",
        "src/items/qnitebarpainter.cpp",
        "src/items/qnitecircle.cpp",
        "src/items/qnitecirclepainter.cpp",
        "src/items/qnitegrid.cpp",
        "src/items/qnitegridpainter.cpp",
        "src/items/qniteline.cpp",
        "src/items/qnitelinepainter.cpp",
        "src/items/qnitepen.cpp",
        "src/items/qnitespline.cpp",
        "src/tools/qnitetool.cpp",
{'fraction_non_alphanumeric': 0.14919354838709678, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 2.136986301369863, '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': '6378533', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1043, 'n_words': 120}