<commit_before>include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
    ${Boost_INCLUDE_DIRS}
    ${COIN3D_INCLUDE_DIRS}
    ${ZLIB_INCLUDE_DIR}
    ${PYTHON_INCLUDE_DIRS}
    ${XercesC_INCLUDE_DIRS}
)

set(WebGui_LIBS
    FreeCADGui
)

if(BUILD_QT5)
    include_directories(
        ${Qt5WebKitWidgets_INCLUDE_DIRS}
    )
    list(APPEND WebGui_LIBS
        ${Qt5WebKitWidgets_LIBRARIES}
    )
    qt5_add_resources(Web_QRC_SRCS Resources/Web.qrc)
else()
    qt4_add_resources(Web_QRC_SRCS Resources/Web.qrc)
endif()

SET(WebGui_SRCS
    ${Web_QRC_SRCS}
    AppWebGui.cpp
    Command.cpp
    PreCompiled.cpp
    PreCompiled.h
    Workbench.cpp
    Workbench.h
    BrowserView.h
    BrowserView.cpp
    CookieJar.cpp
    CookieJar.h
)

set(WebGui_MOC_HDRS
    BrowserView.h
    CookieJar.h
)
fc_wrap_cpp(WebGui_MOC_SRCS ${WebGui_MOC_HDRS})
SOURCE_GROUP("Moc" FILES ${SketcherGui_MOC_SRCS})

add_library(WebGui SHARED ${WebGui_SRCS})
target_link_libraries(WebGui ${WebGui_LIBS})


fc_target_copy_resource(WebGui 
    ${CMAKE_SOURCE_DIR}/src/Mod/Web
    ${CMAKE_BINARY_DIR}/Mod/Web
    ${Web_Scripts}
    Init.py InitGui.py)

SET_BIN_DIR(WebGui WebGui /Mod/Web)
SET_PYTHON_PREFIX_SUFFIX(WebGui)

INSTALL(TARGETS WebGui DESTINATION ${CMAKE_INSTALL_LIBDIR})

SET(WebGuiIcon_SVG
    Resources/icons/WebWorkbench.svg
)

fc_copy_sources(WebGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Web" ${WebGuiIcon_SVG})

INSTALL(FILES ${WebGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Web/Resources/icons")
<commit_msg>Fix ninja warnings about duplicate rules for Mod/Web/Init.py<commit_after>include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
    ${Boost_INCLUDE_DIRS}
    ${COIN3D_INCLUDE_DIRS}
    ${ZLIB_INCLUDE_DIR}
    ${PYTHON_INCLUDE_DIRS}
    ${XercesC_INCLUDE_DIRS}
)

set(WebGui_LIBS
    FreeCADGui
)

if(BUILD_QT5)
    include_directories(
        ${Qt5WebKitWidgets_INCLUDE_DIRS}
    )
    list(APPEND WebGui_LIBS
        ${Qt5WebKitWidgets_LIBRARIES}
    )
    qt5_add_resources(Web_QRC_SRCS Resources/Web.qrc)
else()
    qt4_add_resources(Web_QRC_SRCS Resources/Web.qrc)
endif()

SET(WebGui_SRCS
    ${Web_QRC_SRCS}
    AppWebGui.cpp
    Command.cpp
    PreCompiled.cpp
    PreCompiled.h
    Workbench.cpp
    Workbench.h
    BrowserView.h
    BrowserView.cpp
    CookieJar.cpp
    CookieJar.h
)

set(WebGui_MOC_HDRS
    BrowserView.h
    CookieJar.h
)
fc_wrap_cpp(WebGui_MOC_SRCS ${WebGui_MOC_HDRS})
SOURCE_GROUP("Moc" FILES ${SketcherGui_MOC_SRCS})

add_library(WebGui SHARED ${WebGui_SRCS})
target_link_libraries(WebGui ${WebGui_LIBS})


fc_target_copy_resource(WebGui 
    ${CMAKE_SOURCE_DIR}/src/Mod/Web
    ${CMAKE_BINARY_DIR}/Mod/Web
    InitGui.py)

SET_BIN_DIR(WebGui WebGui /Mod/Web)
SET_PYTHON_PREFIX_SUFFIX(WebGui)

INSTALL(TARGETS WebGui DESTINATION ${CMAKE_INSTALL_LIBDIR})

SET(WebGuiIcon_SVG
    Resources/icons/WebWorkbench.svg
)

fc_copy_sources(WebGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Web" ${WebGuiIcon_SVG})

INSTALL(FILES ${WebGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Web/Resources/icons")

{'fraction_non_alphanumeric': 0.10032679738562092, 'fraction_numerical': 0.00392156862745098, 'mean_word_length': 4.753759398496241, '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': '2338292', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1257, 'n_words': 143}