<commit_before>set(PLUGIN "kbindicator")

set(HEADERS
    src/kbdstate.h
    src/settings.h
    src/content.h
    src/kbdlayout.h
    src/kbdinfo.h
    src/kbdkeeper.h
    src/kbdwatcher.h
    src/controls.h
    src/kbdstateconfig.h
)

set(SOURCES
    kbindicator-plugin.cpp
    src/kbdstate.cpp
    src/settings.cpp
    src/content.cpp
    src/kbdkeeper.cpp
    src/kbdwatcher.cpp
    src/kbdstateconfig.cpp
)

set(UIS
    src/kbdstateconfig.ui
)

set(LIBRARIES
)

find_package(PkgConfig REQUIRED)
pkg_check_modules(XKB_COMMON REQUIRED xkbcommon)
pkg_check_modules(XKB_COMMON_X11 QUIET xkbcommon-x11)

if(XKB_COMMON_X11_FOUND)
    message(STATUS "XkbCommon X11 was found")
    find_package(Qt5 COMPONENTS X11Extras Xml)
    pkg_check_modules(XCB xcb)
    pkg_check_modules(XCB_XKB xcb-xkb)

    set(HEADERS
        ${HEADERS}
        src/x11/kbdlayout.h
    )

    set(SOURCES
        ${SOURCES}
        src/x11/kbdlayout.cpp
    )

    set(LIBRARIES
        ${LIBRARIES}
        ${XKB_COMMON_X11_LIBRARIES}
        ${XCB_LIBRARIES}
        ${XCB_XKB_LIBRARIES}
        Qt5::Xml
    )

    add_definitions(-DX11_ENABLED)
else()
    message(FATAL_ERROR "No XkbCommon backend(X11) found!")<commit_msg>Add XKB_COMMON_X11_INCLUDE_DIRS<commit_after>set(PLUGIN "kbindicator")

set(HEADERS
    src/kbdstate.h
    src/settings.h
    src/content.h
    src/kbdlayout.h
    src/kbdinfo.h
    src/kbdkeeper.h
    src/kbdwatcher.h
    src/controls.h
    src/kbdstateconfig.h
)

set(SOURCES
    kbindicator-plugin.cpp
    src/kbdstate.cpp
    src/settings.cpp
    src/content.cpp
    src/kbdkeeper.cpp
    src/kbdwatcher.cpp
    src/kbdstateconfig.cpp
)

set(UIS
    src/kbdstateconfig.ui
)

set(LIBRARIES
)

find_package(PkgConfig REQUIRED)
pkg_check_modules(XKB_COMMON REQUIRED xkbcommon)
pkg_check_modules(XKB_COMMON_X11 QUIET xkbcommon-x11)

if(XKB_COMMON_X11_FOUND)
    message(STATUS "XkbCommon X11 was found")
    include_directories(${XKB_COMMON_X11_INCLUDE_DIRS})
    find_package(Qt5 COMPONENTS X11Extras Xml)
    pkg_check_modules(XCB xcb)
    pkg_check_modules(XCB_XKB xcb-xkb)

    set(HEADERS
        ${HEADERS}
        src/x11/kbdlayout.h
    )

    set(SOURCES
        ${SOURCES}
        src/x11/kbdlayout.cpp
    )

    set(LIBRARIES
        ${LIBRARIES}
        ${XKB_COMMON_X11_LIBRARIES}
        ${XCB_LIBRARIES}
        ${XCB_XKB_LIBRARIES}
        Qt5::Xml
    )

    add_definitions(-DX11_ENABLED)
else()
    message(FATAL_ERROR "No XkbCommon backend(X11) found!")
{'fraction_non_alphanumeric': 0.09337105901374293, 'fraction_numerical': 0.019401778496362168, 'mean_word_length': 2.934817170111288, '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': '5375175', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1014, 'n_words': 129}