2014-06-20 01:30:09 +00:00
|
|
|
project("core")
|
|
|
|
|
|
|
|
set(CORE_HEADERS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/AsyncHandle.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/AudioManager.h
|
2017-11-08 22:22:15 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/CECInput.h
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/GuiComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/HelpStyle.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/HttpReq.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/ImageIO.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/InputConfig.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/InputManager.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Log.h
|
2018-02-09 17:23:58 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MameNames.h
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h
|
2017-07-20 07:07:02 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/PowerSaver.h
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Settings.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Sound.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/ThemeData.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Window.h
|
|
|
|
|
|
|
|
# Animations
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/animations/Animation.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/animations/AnimationController.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/animations/LambdaAnimation.h
|
|
|
|
|
|
|
|
# GuiComponents
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/AnimatedImageComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/BusyComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ButtonComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ComponentGrid.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ComponentList.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/DateTimeComponent.h
|
2018-10-13 01:08:15 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/DateTimeEditComponent.h
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/HelpComponent.h
|
2018-04-07 19:23:10 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/GridTileComponent.h
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/IList.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ImageComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ImageGridComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/MenuComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/NinePatchComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/OptionListComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ScrollableContainer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/SliderComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/SwitchComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/TextComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/TextEditComponent.h
|
2016-12-04 23:47:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoComponent.h
|
2017-01-25 15:00:56 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoPlayerComponent.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoVlcComponent.h
|
2014-06-20 01:30:09 +00:00
|
|
|
|
|
|
|
# Guis
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiDetectDevice.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiInputConfig.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMsgBox.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiTextEditPopup.h
|
|
|
|
|
2017-11-13 22:16:38 +00:00
|
|
|
# Math
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Misc.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Transform4x4f.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector2f.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector2i.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector3f.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector4f.h
|
|
|
|
|
2014-06-20 01:30:09 +00:00
|
|
|
# Resources
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/Font.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/ResourceManager.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureResource.h
|
2017-01-22 23:28:06 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureData.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureDataManager.h
|
2014-06-21 01:03:05 +00:00
|
|
|
|
2017-11-15 15:59:39 +00:00
|
|
|
# Utils
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/FileSystemUtil.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/StringUtil.h
|
2017-11-22 21:01:12 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/TimeUtil.h
|
2014-06-20 01:30:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(CORE_SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/AudioManager.cpp
|
2017-11-08 22:22:15 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/CECInput.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/GuiComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/HelpStyle.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/HttpReq.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/ImageIO.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/InputConfig.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/InputManager.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Log.cpp
|
2018-02-09 17:23:58 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MameNames.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/platform.cpp
|
2017-07-20 07:07:02 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/PowerSaver.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer_draw_gl.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer_init_sdlgl.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Settings.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Sound.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/ThemeData.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Window.cpp
|
|
|
|
|
|
|
|
# Animations
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/animations/AnimationController.cpp
|
|
|
|
|
|
|
|
# GuiComponents
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/AnimatedImageComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/BusyComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ButtonComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ComponentGrid.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ComponentList.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/DateTimeComponent.cpp
|
2018-10-13 01:08:15 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/DateTimeEditComponent.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/HelpComponent.cpp
|
2018-04-07 19:23:10 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/GridTileComponent.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ImageComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/MenuComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/NinePatchComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/ScrollableContainer.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/SliderComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/SwitchComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/TextComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/TextEditComponent.cpp
|
2016-12-04 23:47:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoComponent.cpp
|
2017-01-25 15:00:56 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoPlayerComponent.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoVlcComponent.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
|
|
|
|
# Guis
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiDetectDevice.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiInputConfig.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMsgBox.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiTextEditPopup.cpp
|
|
|
|
|
2017-11-13 22:16:38 +00:00
|
|
|
# Math
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Misc.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Transform4x4f.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector2f.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector2i.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector3f.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/math/Vector4f.cpp
|
|
|
|
|
2014-06-20 01:30:09 +00:00
|
|
|
# Resources
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/Font.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/ResourceManager.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureResource.cpp
|
2017-01-22 23:28:06 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureData.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureDataManager.cpp
|
2017-11-15 15:59:39 +00:00
|
|
|
|
|
|
|
# Utils
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/FileSystemUtil.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/StringUtil.cpp
|
2017-11-22 21:01:12 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils/TimeUtil.cpp
|
2014-06-20 01:30:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(${COMMON_INCLUDE_DIRS})
|
|
|
|
add_library(es-core STATIC ${CORE_SOURCES} ${CORE_HEADERS})
|
|
|
|
target_link_libraries(es-core ${COMMON_LIBRARIES})
|