Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f12c6a3dfead7dad92981b084282b89ec8bb5fcb (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
project(drape)

get_filename_component(DRAPE_ROOT ${PROJECT_SOURCE_DIR} ABSOLUTE)

add_definitions(-DU_DISABLE_RENAMING)

include_directories(
  ${OMIM_ROOT}/3party/freetype/include
  ${OMIM_ROOT}/3party/glm
  ${OMIM_ROOT}/3party/icu/common
  ${OMIM_ROOT}/3party/icu/i18n
  ${OMIM_ROOT}/3party/Vulkan-Headers/include
  ${OMIM_ROOT}/3party/vulkan_wrapper
)

set(
  DRAPE_COMMON_SRC
  ${DRAPE_ROOT}/attribute_buffer_mutator.cpp
  ${DRAPE_ROOT}/attribute_buffer_mutator.hpp
  ${DRAPE_ROOT}/attribute_provider.cpp
  ${DRAPE_ROOT}/attribute_provider.hpp
  ${DRAPE_ROOT}/batcher.cpp
  ${DRAPE_ROOT}/batcher.hpp
  ${DRAPE_ROOT}/batcher_helpers.cpp
  ${DRAPE_ROOT}/batcher_helpers.hpp
  ${DRAPE_ROOT}/bidi.cpp
  ${DRAPE_ROOT}/bidi.hpp
  ${DRAPE_ROOT}/binding_info.cpp
  ${DRAPE_ROOT}/binding_info.hpp
  ${DRAPE_ROOT}/buffer_base.cpp
  ${DRAPE_ROOT}/buffer_base.hpp
  ${DRAPE_ROOT}/color.cpp
  ${DRAPE_ROOT}/color.hpp
  ${DRAPE_ROOT}/constants.hpp
  ${DRAPE_ROOT}/cpu_buffer.cpp
  ${DRAPE_ROOT}/cpu_buffer.hpp
  ${DRAPE_ROOT}/data_buffer.cpp
  ${DRAPE_ROOT}/data_buffer.hpp
  ${DRAPE_ROOT}/data_buffer_impl.hpp
  ${DRAPE_ROOT}/debug_renderer.hpp
  ${DRAPE_ROOT}/drape_diagnostics.hpp
  ${DRAPE_ROOT}/drape_global.hpp
  ${DRAPE_ROOT}/drape_routine.hpp
  ${DRAPE_ROOT}/dynamic_texture.hpp
  ${DRAPE_ROOT}/font_texture.cpp
  ${DRAPE_ROOT}/font_texture.hpp
  ${DRAPE_ROOT}/framebuffer.cpp
  ${DRAPE_ROOT}/framebuffer.hpp
  ${DRAPE_ROOT}/gl_constants.cpp
  ${DRAPE_ROOT}/gl_constants.hpp
  ${DRAPE_ROOT}/gl_gpu_program.cpp
  ${DRAPE_ROOT}/gl_gpu_program.hpp
  ${DRAPE_ROOT}/gl_extensions_list.cpp
  ${DRAPE_ROOT}/gl_extensions_list.hpp
  ${DRAPE_ROOT}/gl_functions.hpp
  ${DRAPE_ROOT}/gl_includes.hpp
  ${DRAPE_ROOT}/glsl_func.hpp
  ${DRAPE_ROOT}/glsl_types.hpp
  ${DRAPE_ROOT}/glyph_generator.cpp
  ${DRAPE_ROOT}/glyph_generator.hpp
  ${DRAPE_ROOT}/glyph_manager.cpp
  ${DRAPE_ROOT}/glyph_manager.hpp
  ${DRAPE_ROOT}/gpu_buffer.cpp
  ${DRAPE_ROOT}/gpu_buffer.hpp
  ${DRAPE_ROOT}/gpu_program.hpp
  ${DRAPE_ROOT}/graphics_context.hpp
  ${DRAPE_ROOT}/graphics_context_factory.cpp
  ${DRAPE_ROOT}/graphics_context_factory.hpp
  ${DRAPE_ROOT}/hw_texture.cpp
  ${DRAPE_ROOT}/hw_texture.hpp
  ${DRAPE_ROOT}/index_buffer.cpp
  ${DRAPE_ROOT}/index_buffer.hpp
  ${DRAPE_ROOT}/index_buffer_mutator.cpp
  ${DRAPE_ROOT}/index_buffer_mutator.hpp
  ${DRAPE_ROOT}/index_storage.cpp
  ${DRAPE_ROOT}/index_storage.hpp
  ${DRAPE_ROOT}/mesh_object.cpp
  ${DRAPE_ROOT}/mesh_object.hpp
  ${DRAPE_ROOT}/object_pool.hpp
  ${DRAPE_ROOT}/oglcontext.cpp
  ${DRAPE_ROOT}/oglcontext.hpp
  ${DRAPE_ROOT}/overlay_handle.cpp
  ${DRAPE_ROOT}/overlay_handle.hpp
  ${DRAPE_ROOT}/overlay_tree.cpp
  ${DRAPE_ROOT}/overlay_tree.hpp
  ${DRAPE_ROOT}/pointers.cpp
  ${DRAPE_ROOT}/pointers.hpp
  ${DRAPE_ROOT}/render_bucket.cpp
  ${DRAPE_ROOT}/render_bucket.hpp
  ${DRAPE_ROOT}/render_state.cpp
  ${DRAPE_ROOT}/render_state.hpp
  ${DRAPE_ROOT}/shader.cpp
  ${DRAPE_ROOT}/shader.hpp
  ${DRAPE_ROOT}/static_texture.cpp
  ${DRAPE_ROOT}/static_texture.hpp
  ${DRAPE_ROOT}/stipple_pen_resource.cpp
  ${DRAPE_ROOT}/stipple_pen_resource.hpp
  ${DRAPE_ROOT}/support_manager.cpp
  ${DRAPE_ROOT}/support_manager.hpp
  ${DRAPE_ROOT}/symbols_texture.cpp
  ${DRAPE_ROOT}/symbols_texture.hpp
  ${DRAPE_ROOT}/texture.cpp
  ${DRAPE_ROOT}/texture.hpp
  ${DRAPE_ROOT}/texture_manager.cpp
  ${DRAPE_ROOT}/texture_manager.hpp
  ${DRAPE_ROOT}/texture_of_colors.cpp
  ${DRAPE_ROOT}/texture_of_colors.hpp
  ${DRAPE_ROOT}/texture_types.hpp
  ${DRAPE_ROOT}/uniform_value.cpp
  ${DRAPE_ROOT}/uniform_value.hpp
  ${DRAPE_ROOT}/utils/glyph_usage_tracker.cpp
  ${DRAPE_ROOT}/utils/glyph_usage_tracker.hpp
  ${DRAPE_ROOT}/utils/gpu_mem_tracker.cpp
  ${DRAPE_ROOT}/utils/gpu_mem_tracker.hpp
  ${DRAPE_ROOT}/utils/projection.cpp
  ${DRAPE_ROOT}/utils/projection.hpp
  ${DRAPE_ROOT}/utils/vertex_decl.cpp
  ${DRAPE_ROOT}/utils/vertex_decl.hpp
  ${DRAPE_ROOT}/vertex_array_buffer.cpp
  ${DRAPE_ROOT}/vertex_array_buffer.hpp
  ${DRAPE_ROOT}/viewport.cpp
  ${DRAPE_ROOT}/viewport.hpp
  ${DRAPE_ROOT}/visual_scale.hpp
)

set(
  SRC
  gl_functions.cpp
)

if (PLATFORM_IPHONE)
append(
  SRC
  hw_texture_ios.hpp
  hw_texture_ios.mm
  metal/metal_base_context.hpp
  metal/metal_base_context.mm
  metal/metal_gpu_buffer_impl.mm
  metal/metal_gpu_program.hpp
  metal/metal_mesh_object_impl.hpp
  metal/metal_mesh_object_impl.mm
  metal/metal_states.hpp
  metal/metal_states.mm
  metal/metal_texture.hpp
  metal/metal_texture.mm
  metal/metal_vertex_array_buffer_impl.mm
  metal/render_state_metal.mm
)
endif()

append(
  VULKAN_SRC
  ${DRAPE_ROOT}/vulkan/vulkan_base_context.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_base_context.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_gpu_buffer_impl.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_gpu_buffer_impl.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_gpu_program.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_layers.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_layers.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_memory_manager.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_memory_manager.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_mesh_object_impl.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_object_manager.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_object_manager.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_param_descriptor.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_param_descriptor.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_pipeline.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_pipeline.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_staging_buffer.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_staging_buffer.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_texture.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_texture.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_utils.cpp
  ${DRAPE_ROOT}/vulkan/vulkan_utils.hpp
  ${DRAPE_ROOT}/vulkan/vulkan_vertex_array_buffer_impl.cpp
)

omim_add_library(${PROJECT_NAME} ${DRAPE_COMMON_SRC} ${SRC} ${VULKAN_SRC})

omim_add_test_subdirectory(drape_tests)