<commit_before>set(LIBATTICA_MIN_VERSION 0.1.90)

find_package(LibAttica)

include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
	${GLUON_ENGINE_INCLUDES} 
	${GLUON_GRAPHICS_INCLUDES}
	${LIBATTICA_INCLUDE_DIR}
	)

set(libGluonPlayer_SRCS
    gamedownloadmanager.cpp
    atticamanager.cpp
    authentication.cpp
	models/gameviewitem.cpp
	models/gameitemsmodel.cpp
	models/commentitemsmodel.cpp
	models/highscoresmodel.cpp
)

qt4_automoc(${libGluonPlayer_SRCS})
add_library(libGluonPlayer SHARED ${libGluonPlayer_SRCS})
set_target_properties(libGluonPlayer PROPERTIES VERSION ${GLUON_VERSION_STRING} SOVERSION ${GLUON_VERSION_STRING} DEFINE_SYMBOL MAKE_GLUON_PLAYER_LIB PREFIX "")
if(GLUON_BUILD_ALL)
    add_dependencies(libGluonPlayer GluonEngine)
endif()

target_link_libraries(libGluonPlayer
					  ${LIBATTICA_LIBRARIES}
					  ${GLUON_CORE_LIBS}
                      ${GLUON_ENGINE_LIBS}
                      )

set(GLUON_PLAYER_LIBS
    libGluonPlayer
	${LIBATTICA_LIBRARIES}
    ${GLUON_ENGINE_LIBS}
	${GLUON_CORE_LIBS}
    CACHE PATHS "Libraries required for Gluon Player"
)

install(TARGETS libGluonPlayer RUNTIME DESTINATION bin LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})

install(FILES
    atticamanager.h
	authentication.h
	models/gameviewitem.h
	models/gameitemsmodel.h
	models/commentitemsmodel.h
	models/highscoresmodel.h
    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib
    COMPONENT Devel
)

install(FILES
	models/highscoresmodel.h
	models/gameitemsmodel.h
	models/commentitemsmodel.h
    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib/models
    COMPONENT Devel
)

<commit_msg>Player: Eliminate the downloadmanager *again* in order to build<commit_after>set(LIBATTICA_MIN_VERSION 0.1.90)

find_package(LibAttica)

include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
	${GLUON_ENGINE_INCLUDES} 
	${GLUON_GRAPHICS_INCLUDES}
	${LIBATTICA_INCLUDE_DIR}
	)

set(libGluonPlayer_SRCS
    atticamanager.cpp
    authentication.cpp
	models/gameviewitem.cpp
	models/gameitemsmodel.cpp
	models/commentitemsmodel.cpp
	models/highscoresmodel.cpp
)

qt4_automoc(${libGluonPlayer_SRCS})
add_library(libGluonPlayer SHARED ${libGluonPlayer_SRCS})
set_target_properties(libGluonPlayer PROPERTIES VERSION ${GLUON_VERSION_STRING} SOVERSION ${GLUON_VERSION_STRING} DEFINE_SYMBOL MAKE_GLUON_PLAYER_LIB PREFIX "")
if(GLUON_BUILD_ALL)
    add_dependencies(libGluonPlayer GluonEngine)
endif()

target_link_libraries(libGluonPlayer
					  ${LIBATTICA_LIBRARIES}
					  ${GLUON_CORE_LIBS}
                      ${GLUON_ENGINE_LIBS}
                      )

set(GLUON_PLAYER_LIBS
    libGluonPlayer
	${LIBATTICA_LIBRARIES}
    ${GLUON_ENGINE_LIBS}
	${GLUON_CORE_LIBS}
    CACHE PATHS "Libraries required for Gluon Player"
)

install(TARGETS libGluonPlayer RUNTIME DESTINATION bin LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})

install(FILES
    atticamanager.h
	authentication.h
	models/gameviewitem.h
	models/gameitemsmodel.h
	models/commentitemsmodel.h
	models/highscoresmodel.h
    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib
    COMPONENT Devel
)

install(FILES
	models/highscoresmodel.h
	models/gameitemsmodel.h
	models/commentitemsmodel.h
    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib/models
    COMPONENT Devel
)


{'fraction_non_alphanumeric': 0.07797619047619048, 'fraction_numerical': 0.002976190476190476, 'mean_word_length': 5.426386233269598, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7216530', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1242, 'n_words': 167}