| OLD | NEW |
| (Empty) |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 # Normally, the external_ozone_platform* variables below can be | |
| 9 # overridden by supplement.gypi which must exist exactly one level | |
| 10 # below the top-level src directory. They can now also be set in | |
| 11 # $GYP_DEFINES | |
| 12 'external_ozone_platforms%': [], | |
| 13 'external_ozone_platform_files%': [], | |
| 14 'external_ozone_platform_deps%': [], | |
| 15 'external_ozone_platform_unittest_deps%': [], | |
| 16 'internal_ozone_platforms': [], | |
| 17 'internal_ozone_platform_deps': [], | |
| 18 'internal_ozone_platform_unittest_deps': [], | |
| 19 | |
| 20 # This enables memory-mapped access to accelerated graphics buffers via | |
| 21 # the VGEM ("virtual GEM") driver. This is currently only available on | |
| 22 # Chrome OS kernels and affects code in the GBM ozone platform. | |
| 23 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. | |
| 24 # crbug.com/519587 | |
| 25 'use_vgem_map%': 0, | |
| 26 }, | |
| 27 'targets': [ | |
| 28 { | |
| 29 # GN version: //ui/ozone:ozone_base | |
| 30 'target_name': 'ozone_base', | |
| 31 'type': '<(component)', | |
| 32 'dependencies': [ | |
| 33 '<(DEPTH)/base/base.gyp:base', | |
| 34 '<(DEPTH)/ipc/ipc.gyp:ipc', | |
| 35 '<(DEPTH)/skia/skia.gyp:skia', | |
| 36 '<(DEPTH)/ui/display/display.gyp:display_types', | |
| 37 '<(DEPTH)/ui/display/display.gyp:display_util', | |
| 38 '<(DEPTH)/ui/gl/gl.gyp:gl', | |
| 39 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
| 40 '<(DEPTH)/ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry', | |
| 41 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc', | |
| 42 '<(DEPTH)/ui/gfx/ipc/skia/gfx_ipc_skia.gyp:gfx_ipc_skia', | |
| 43 ], | |
| 44 'defines': [ | |
| 45 'OZONE_BASE_IMPLEMENTATION', | |
| 46 ], | |
| 47 'sources': [ | |
| 48 'public/client_native_pixmap.h', | |
| 49 'public/cursor_factory_ozone.cc', | |
| 50 'public/cursor_factory_ozone.h', | |
| 51 'public/gpu_platform_support_host.cc', | |
| 52 'public/gpu_platform_support_host.h', | |
| 53 'public/input_controller.cc', | |
| 54 'public/input_controller.h', | |
| 55 'public/native_pixmap.h', | |
| 56 'public/overlay_candidates_ozone.cc', | |
| 57 'public/overlay_candidates_ozone.h', | |
| 58 'public/overlay_manager_ozone.h', | |
| 59 'public/ozone_switches.cc', | |
| 60 'public/ozone_switches.h', | |
| 61 'public/surface_factory_ozone.cc', | |
| 62 'public/surface_factory_ozone.h', | |
| 63 'public/surface_ozone_canvas.h', | |
| 64 'public/swap_completion_callback.h', | |
| 65 'public/system_input_injector.h', | |
| 66 ], | |
| 67 }, | |
| 68 { | |
| 69 # GN version: //ui/ozone/common | |
| 70 'target_name': 'ozone_common', | |
| 71 'type': 'static_library', | |
| 72 'dependencies': [ | |
| 73 'ozone_base', | |
| 74 '<(DEPTH)/base/base.gyp:base', | |
| 75 '<(DEPTH)/ipc/ipc.gyp:ipc', | |
| 76 '<(DEPTH)/skia/skia.gyp:skia', | |
| 77 '<(DEPTH)/ui/display/display.gyp:display_types', | |
| 78 '<(DEPTH)/ui/display/display.gyp:display_util', | |
| 79 '<(DEPTH)/ui/gl/gl.gyp:gl', | |
| 80 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
| 81 '<(DEPTH)/ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry', | |
| 82 '<(DEPTH)/ui/gfx/ipc/skia/gfx_ipc_skia.gyp:gfx_ipc_skia', | |
| 83 ], | |
| 84 'sources': [ | |
| 85 'common/display_mode_proxy.cc', | |
| 86 'common/display_mode_proxy.h', | |
| 87 'common/display_snapshot_proxy.cc', | |
| 88 'common/display_snapshot_proxy.h', | |
| 89 'common/display_util.cc', | |
| 90 'common/display_util.h', | |
| 91 'common/egl_util.cc', | |
| 92 'common/egl_util.h', | |
| 93 'common/gpu/ozone_gpu_message_generator.cc', | |
| 94 'common/gpu/ozone_gpu_message_generator.h', | |
| 95 'common/gpu/ozone_gpu_message_params.cc', | |
| 96 'common/gpu/ozone_gpu_message_params.h', | |
| 97 'common/gpu/ozone_gpu_messages.h', | |
| 98 'common/native_display_delegate_ozone.cc', | |
| 99 'common/native_display_delegate_ozone.h', | |
| 100 'common/stub_overlay_manager.cc', | |
| 101 'common/stub_overlay_manager.h', | |
| 102 ], | |
| 103 }, | |
| 104 { | |
| 105 # GN version: //ui/ozone:platform | |
| 106 'target_name': 'ozone_platform', | |
| 107 'type': 'static_library', | |
| 108 'dependencies': [ | |
| 109 '<(DEPTH)/base/base.gyp:base', | |
| 110 '<(DEPTH)/ipc/ipc.gyp:ipc', | |
| 111 '<(DEPTH)/skia/skia.gyp:skia', | |
| 112 '<(DEPTH)/ui/display/display.gyp:display_types', | |
| 113 '<(DEPTH)/ui/display/display.gyp:display_util', | |
| 114 '<(DEPTH)/ui/events/events.gyp:events', | |
| 115 '<(DEPTH)/ui/events/devices/events_devices.gyp:events_devices', | |
| 116 '<(DEPTH)/ui/events/ozone/events_ozone.gyp:events_ozone', | |
| 117 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
| 118 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
| 119 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc', | |
| 120 '<(DEPTH)/ui/gfx/ipc/skia/gfx_ipc_skia.gyp:gfx_ipc_skia', | |
| 121 '<@(external_ozone_platform_deps)', | |
| 122 '<@(internal_ozone_platform_deps)', | |
| 123 'ozone_base', | |
| 124 ], | |
| 125 'defines': [ | |
| 126 'OZONE_IMPLEMENTATION', | |
| 127 ], | |
| 128 'variables': { | |
| 129 'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc'
, | |
| 130 'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_li
st.h', | |
| 131 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_
list.txt', | |
| 132 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_li
st.cc', | |
| 133 'ozone_platforms': [ | |
| 134 '<@(external_ozone_platforms)', | |
| 135 '<@(internal_ozone_platforms)', | |
| 136 ], | |
| 137 }, | |
| 138 'include_dirs': [ | |
| 139 '<(SHARED_INTERMEDIATE_DIR)', | |
| 140 ], | |
| 141 'sources': [ | |
| 142 '<(platform_list_cc_file)', | |
| 143 '<(platform_list_h_file)', | |
| 144 '<(constructor_list_cc_file)', | |
| 145 | |
| 146 'common/stub_client_native_pixmap_factory.cc', | |
| 147 'common/stub_client_native_pixmap_factory.h', | |
| 148 'platform_selection.cc', | |
| 149 'platform_selection.h', | |
| 150 'public/client_native_pixmap_factory.cc', | |
| 151 'public/client_native_pixmap_factory.h', | |
| 152 'public/ozone_gpu_test_helper.cc', | |
| 153 'public/ozone_gpu_test_helper.h', | |
| 154 'public/ozone_platform.cc', | |
| 155 'public/ozone_platform.h', | |
| 156 '<@(external_ozone_platform_files)', | |
| 157 ], | |
| 158 'actions': [ | |
| 159 { | |
| 160 # GN version: //ui/ozone:generate_ozone_platform_list | |
| 161 'action_name': 'generate_ozone_platform_list', | |
| 162 'variables': { | |
| 163 'generator_path': 'generate_ozone_platform_list.py', | |
| 164 }, | |
| 165 'inputs': [ | |
| 166 '<(generator_path)', | |
| 167 ], | |
| 168 'outputs': [ | |
| 169 '<(platform_list_cc_file)', | |
| 170 '<(platform_list_h_file)', | |
| 171 '<(platform_list_txt_file)', | |
| 172 ], | |
| 173 'action': [ | |
| 174 'python', | |
| 175 '<(generator_path)', | |
| 176 '--output_cc=<(platform_list_cc_file)', | |
| 177 '--output_h=<(platform_list_h_file)', | |
| 178 '--output_txt=<(platform_list_txt_file)', | |
| 179 '--default=<(ozone_platform)', | |
| 180 '<@(ozone_platforms)', | |
| 181 ], | |
| 182 }, | |
| 183 { | |
| 184 # GN version: //ui/ozone:generate_constructor_list | |
| 185 'action_name': 'generate_constructor_list', | |
| 186 'variables': { | |
| 187 'generator_path': 'generate_constructor_list.py', | |
| 188 }, | |
| 189 'inputs': [ | |
| 190 '<(generator_path)', | |
| 191 '<(platform_list_txt_file)', | |
| 192 ], | |
| 193 'outputs': [ | |
| 194 '<(constructor_list_cc_file)', | |
| 195 ], | |
| 196 'action': [ | |
| 197 'python', | |
| 198 '<(generator_path)', | |
| 199 '--platform_list=<(platform_list_txt_file)', | |
| 200 '--output_cc=<(constructor_list_cc_file)', | |
| 201 '--namespace=ui', | |
| 202 '--typename=OzonePlatform', | |
| 203 '--typename=ClientNativePixmapFactory', | |
| 204 '--include="ui/ozone/public/ozone_platform.h"', | |
| 205 '--include="ui/ozone/public/client_native_pixmap_factory.h"' | |
| 206 ], | |
| 207 }, | |
| 208 ], | |
| 209 'conditions': [ | |
| 210 ['use_udev == 0', { | |
| 211 'sources/': [ | |
| 212 ['exclude', '_udev\\.(h|cc)$'], | |
| 213 ], | |
| 214 }], | |
| 215 ], | |
| 216 }, | |
| 217 { | |
| 218 # GN version: //ui/ozone | |
| 219 'target_name': 'ozone', | |
| 220 'type': '<(component)', | |
| 221 'sources': [ | |
| 222 'empty.cc', | |
| 223 ], | |
| 224 'dependencies': [ | |
| 225 'ozone_platform', | |
| 226 ], | |
| 227 }, | |
| 228 { | |
| 229 'target_name': 'ozone_unittests', | |
| 230 'type': '<(gtest_target_type)', | |
| 231 'sources': [ | |
| 232 'run_all_unittests.cc', | |
| 233 ], | |
| 234 'dependencies': [ | |
| 235 '../../base/base.gyp:base', | |
| 236 '../../base/base.gyp:test_support_base', | |
| 237 '../../testing/gtest.gyp:gtest', | |
| 238 '../gfx/gfx.gyp:gfx_geometry', | |
| 239 '<@(external_ozone_platform_unittest_deps)', | |
| 240 '<@(internal_ozone_platform_unittest_deps)', | |
| 241 ], | |
| 242 }, | |
| 243 { | |
| 244 'target_name': 'vgem_map', | |
| 245 'type': 'none', | |
| 246 'conditions': [ | |
| 247 ['use_vgem_map==1', { | |
| 248 'direct_dependent_settings': { | |
| 249 'defines': [ | |
| 250 'USE_VGEM_MAP', | |
| 251 ], | |
| 252 }, | |
| 253 }], | |
| 254 ], | |
| 255 }, | |
| 256 ], | |
| 257 'conditions': [ | |
| 258 ['<(ozone_platform_caca) == 1', { | |
| 259 'includes': [ | |
| 260 'platform/caca/caca.gypi', | |
| 261 ], | |
| 262 }], | |
| 263 ['<(ozone_platform_cast) == 1', { | |
| 264 'includes': [ | |
| 265 'platform/cast/cast.gypi', | |
| 266 ], | |
| 267 }], | |
| 268 ['<(ozone_platform_gbm) == 1', { | |
| 269 'includes': [ | |
| 270 'platform/drm/gbm.gypi', | |
| 271 ], | |
| 272 }], | |
| 273 ['<(ozone_platform_headless) == 1', { | |
| 274 'includes': [ | |
| 275 'platform/headless/headless.gypi', | |
| 276 ], | |
| 277 }], | |
| 278 ['<(ozone_platform_wayland) == 1', { | |
| 279 'includes': [ | |
| 280 'platform/wayland/wayland.gypi', | |
| 281 ], | |
| 282 }], | |
| 283 ], | |
| 284 } | |
| OLD | NEW |