blob: d96ce09abf5a469f5734760da6f109f9f12a5fec (
plain)
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
set(SOURCES DDSImage.cpp
DirtyRegionSolvers.cpp
DirtyRegionTracker.cpp
FFmpegImage.cpp
GUIAction.cpp
GUIAudioManager.cpp
GUIBaseContainer.cpp
GUIBorderedImage.cpp
GUIButtonControl.cpp
GUIColorButtonControl.cpp
GUIColorManager.cpp
GUIComponent.cpp
GUIControl.cpp
GUIControlFactory.cpp
GUIControlGroup.cpp
GUIControlGroupList.cpp
GUIControlLookup.cpp
GUIControlProfiler.cpp
GUIDialog.cpp
GUIEditControl.cpp
GUIFadeLabelControl.cpp
GUIFixedListContainer.cpp
GUIFont.cpp
GUIFontCache.cpp
GUIFontManager.cpp
GUIFontTTF.cpp
GUIImage.cpp
GUIIncludes.cpp
GUIKeyboardFactory.cpp
GUILabelControl.cpp
GUILabel.cpp
GUIListContainer.cpp
GUIListGroup.cpp
GUIListItem.cpp
GUIListItemLayout.cpp
GUIListLabel.cpp
GUIMessage.cpp
GUIMoverControl.cpp
GUIMultiImage.cpp
GUIPanelContainer.cpp
GUIProgressControl.cpp
GUIRadioButtonControl.cpp
GUIRangesControl.cpp
GUIRenderingControl.cpp
GUIResizeControl.cpp
GUIRSSControl.cpp
GUIScrollBarControl.cpp
GUISettingsSliderControl.cpp
GUISliderControl.cpp
GUISpinControl.cpp
GUISpinControlEx.cpp
GUIStaticItem.cpp
GUITextBox.cpp
GUITextLayout.cpp
GUITexture.cpp
GUIToggleButtonControl.cpp
GUIVideoControl.cpp
GUIVisualisationControl.cpp
GUIWindow.cpp
GUIWindowManager.cpp
GUIWrappingListContainer.cpp
imagefactory.cpp
IWindowManagerCallback.cpp
LocalizeStrings.cpp
StereoscopicsManager.cpp
TextureBundle.cpp
TextureBundleXBT.cpp
Texture.cpp
TextureManager.cpp
VisibleEffect.cpp
XBTF.cpp
XBTFReader.cpp)
set(HEADERS DDSImage.h
DirtyRegion.h
DirtyRegionSolvers.h
DirtyRegionTracker.h
DispResource.h
FFmpegImage.h
gui3d.h
GUIAction.h
GUIAudioManager.h
GUIBaseContainer.h
GUIBorderedImage.h
GUIButtonControl.h
GUIColorButtonControl.h
GUIColorManager.h
GUIComponent.h
GUIControl.h
GUIControlFactory.h
GUIControlGroup.h
GUIControlGroupList.h
GUIControlProfiler.h
GUIControlLookup.h
GUIDialog.h
GUIEditControl.h
GUIFadeLabelControl.h
GUIFixedListContainer.h
GUIFont.h
GUIFontCache.h
GUIFontManager.h
GUIFontTTF.h
GUIImage.h
GUIIncludes.h
GUIKeyboard.h
GUIKeyboardFactory.h
GUILabel.h
GUILabelControl.h
GUIListContainer.h
GUIListGroup.h
GUIListItem.h
GUIListItemLayout.h
GUIListLabel.h
GUIMessage.h
GUIMoverControl.h
GUIMultiImage.h
GUIPanelContainer.h
GUIProgressControl.h
GUIRadioButtonControl.h
GUIRangesControl.h
GUIRenderingControl.h
GUIResizeControl.h
GUIRSSControl.h
GUIScrollBarControl.h
GUISettingsSliderControl.h
GUISliderControl.h
GUISpinControl.h
GUISpinControlEx.h
GUIStaticItem.h
GUITextBox.h
GUITextLayout.h
GUITexture.h
GUIToggleButtonControl.h
GUIVideoControl.h
GUIVisualisationControl.h
GUIWindow.h
GUIWindowManager.h
GUIWrappingListContainer.h
IAudioDeviceChangedCallback.h
IDirtyRegionSolver.h
IGUIContainer.h
iimage.h
imagefactory.h
IMsgTargetCallback.h
IRenderingCallback.h
ISliderCallback.h
IWindowManagerCallback.h
LocalizeStrings.h
StereoscopicsManager.h
Texture.h
TextureBundle.h
TextureBundleXBT.h
TextureManager.h
Tween.h
VisibleEffect.h
WindowIDs.h
XBTF.h
XBTFReader.h)
if(OPENGL_FOUND OR OPENGLES_FOUND)
list(APPEND SOURCES GUIFontTTFGL.cpp
Shader.cpp
TextureGL.cpp)
list(APPEND HEADERS GUIFontTTFGL.h
Shader.h
TextureGL.h)
if(OPENGL_FOUND)
list(APPEND SOURCES GUITextureGL.cpp)
list(APPEND HEADERS GUITextureGL.h)
endif()
if(OPENGLES_FOUND)
list(APPEND SOURCES GUITextureGLES.cpp)
list(APPEND HEADERS GUITextureGLES.h)
endif()
endif()
if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
list(APPEND SOURCES D3DResource.cpp
DirectXGraphics.cpp
GUIFontTTFDX.cpp
GUIShaderDX.cpp
GUITextureD3D.cpp
TextureDX.cpp)
list(APPEND HEADERS D3DResource.h
DirectXGraphics.h
GUIFontTTFDX.h
GUIShaderDX.h
GUITextureD3D.h
TextureDX.h)
endif()
core_add_library(guilib)
if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
set(SHADERS_VERTEX guishader_vert.hlsl)
set(SHADERS_PIXEL guishader_checkerboard_right.hlsl
guishader_checkerboard_left.hlsl
guishader_default.hlsl
guishader_fonts.hlsl
guishader_interlaced_right.hlsl
guishader_interlaced_left.hlsl
guishader_multi_texture_blend.hlsl
guishader_texture.hlsl
guishader_texture_noblend.hlsl)
foreach(shader ${SHADERS_VERTEX})
get_filename_component(file ${shader} NAME_WE)
add_custom_command(OUTPUT ${file}.h
COMMAND ${FXC} /Fh ${file}.h /E VS /T vs_4_0_level_9_1 /Vn ${file} /Qstrip_reflect
${CMAKE_SOURCE_DIR}/system/shaders/${shader}
DEPENDS ${CMAKE_SOURCE_DIR}/system/shaders/${shader}
COMMENT "FX compile vertex shader ${shader}"
VERBATIM)
list(APPEND SHADERS ${file}.h)
endforeach()
foreach(shader ${SHADERS_PIXEL})
get_filename_component(file ${shader} NAME_WE)
add_custom_command(OUTPUT ${file}.h
COMMAND ${FXC} /Fh ${file}.h /E PS /T ps_4_0_level_9_1 /Vn ${file} /Qstrip_reflect
${CMAKE_SOURCE_DIR}/system/shaders/${shader}
DEPENDS ${CMAKE_SOURCE_DIR}/system/shaders/${shader}
COMMENT "FX compile pixel shader ${shader}"
VERBATIM)
list(APPEND SHADERS ${file}.h)
endforeach()
add_custom_target(generate_shaders ALL DEPENDS ${SHADERS})
set_target_properties(generate_shaders PROPERTIES FOLDER "Build Utilities")
target_include_directories(${CORE_LIBRARY} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
add_dependencies(${CORE_LIBRARY} generate_shaders)
endif()
|