forked from RetroPie/EmulationStation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
180 lines (163 loc) · 9.18 KB
/
CMakeLists.txt
File metadata and controls
180 lines (163 loc) · 9.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
project("core")
set(CORE_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/src/AsyncHandle.h
${CMAKE_CURRENT_SOURCE_DIR}/src/AudioManager.h
${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
${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h
${CMAKE_CURRENT_SOURCE_DIR}/src/PowerSaver.h
${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/Util.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
${CMAKE_CURRENT_SOURCE_DIR}/src/components/HelpComponent.h
${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
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoComponent.h
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoPlayerComponent.h
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoVlcComponent.h
# 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
# 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
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureData.h
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureDataManager.h
# Embedded assets (needed by ResourceManager)
${emulationstation-all_SOURCE_DIR}/data/Resources.h
)
set(CORE_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/AudioManager.cpp
${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
${CMAKE_CURRENT_SOURCE_DIR}/src/platform.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/PowerSaver.cpp
${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/Util.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
${CMAKE_CURRENT_SOURCE_DIR}/src/components/HelpComponent.cpp
${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
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoComponent.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoPlayerComponent.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/components/VideoVlcComponent.cpp
# 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
# 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
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureData.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/resources/TextureDataManager.cpp
)
set(EMBEDDED_ASSET_SOURCES
${emulationstation-all_SOURCE_DIR}/data/ResourceUtil.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/splash_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/window_icon_256_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/button_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/button_filled_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/textinput_ninepatch_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/textinput_ninepatch_active_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/frame_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/scroll_gradient_png.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_analog_left_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_analog_right_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_analog_up_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_analog_down_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_analog_thumb_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_a_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_b_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_x_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_y_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_l_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_r_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_start_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_select_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_button_hotkey_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_up_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_down_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_left_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_right_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_updown_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_leftright_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/help_dpad_all_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/opensans_hebrew_condensed_regular_ttf.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/opensans_hebrew_condensed_light_ttf.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/arrow_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/option_arrow_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/checkbox_checked_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/checkbox_unchecked_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/star_filled_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/star_unfilled_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/on_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/off_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/fav_add_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/fav_remove_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/slider_knob_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/busy_0_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/busy_1_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/busy_2_svg.cpp
${emulationstation-all_SOURCE_DIR}/data/converted/busy_3_svg.cpp
)
list(APPEND CORE_SOURCES ${EMBEDDED_ASSET_SOURCES})
include_directories(${COMMON_INCLUDE_DIRS})
add_library(es-core STATIC ${CORE_SOURCES} ${CORE_HEADERS})
target_link_libraries(es-core ${COMMON_LIBRARIES})