1 # Copyright (c) 2012 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 }, 9 'targets': [ 10 { 11 'target_name': 'aura', 12 'type': '<(component)', 13 'dependencies': [ 14 '../../base/base.gyp:base', 15 '../../base/base.gyp:base_i18n', 16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', 17 '../../skia/skia.gyp:skia', 18 '../base/ui_base.gyp:ui_base', 19 '../compositor/compositor.gyp:compositor', 20 '../events/events.gyp:events', 21 '../events/events.gyp:events_base', 22 '../events/platform/events_platform.gyp:events_platform', 23 '../gfx/gfx.gyp:gfx', 24 '../gfx/gfx.gyp:gfx_geometry', 25 ], 26 'defines': [ 27 'AURA_IMPLEMENTATION', 28 ], 29 'sources': [ 30 'client/aura_constants.cc', 31 'client/aura_constants.h', 32 'client/capture_client.cc', 33 'client/capture_client.h', 34 'client/capture_delegate.h', 35 'client/cursor_client.cc', 36 'client/cursor_client.h', 37 'client/cursor_client_observer.h', 38 'client/cursor_client_observer.cc', 39 'client/default_capture_client.cc', 40 'client/default_capture_client.h', 41 'client/event_client.cc', 42 'client/event_client.h', 43 'client/focus_change_observer.cc', 44 'client/focus_change_observer.h', 45 'client/focus_client.cc', 46 'client/focus_client.h', 47 'client/screen_position_client.cc', 48 'client/screen_position_client.h', 49 'client/visibility_client.cc', 50 'client/visibility_client.h', 51 'client/window_stacking_client.cc', 52 'client/window_stacking_client.h', 53 'client/window_tree_client.cc', 54 'client/window_tree_client.h', 55 'env.cc', 56 'env.h', 57 'env_observer.h', 58 'input_state_lookup.cc', 59 'input_state_lookup.h', 60 'input_state_lookup_win.cc', 61 'input_state_lookup_win.h', 62 'layout_manager.cc', 63 'layout_manager.h', 64 'remote_window_tree_host_win.cc', 65 'remote_window_tree_host_win.h', 66 'scoped_window_targeter.cc', 67 'scoped_window_targeter.h', 68 'window.cc', 69 'window.h', 70 'window_event_dispatcher.cc', 71 'window_event_dispatcher.h', 72 'window_delegate.h', 73 'window_layer_type.h', 74 'window_observer.cc', 75 'window_observer.h', 76 'window_targeter.cc', 77 'window_targeter.h', 78 'window_tracker.cc', 79 'window_tracker.h', 80 'window_tree_host.cc', 81 'window_tree_host.h', 82 'window_tree_host_mac.mm', 83 'window_tree_host_mac.h', 84 'window_tree_host_observer.h', 85 'window_tree_host_ozone.cc', 86 'window_tree_host_ozone.h', 87 'window_tree_host_win.cc', 88 'window_tree_host_win.h', 89 'window_tree_host_x11.cc', 90 'window_tree_host_x11.h', 91 '../wm/public/activation_change_observer.h', 92 '../wm/public/activation_change_observer.cc', 93 '../wm/public/activation_client.cc', 94 '../wm/public/activation_client.h', 95 '../wm/public/activation_delegate.cc', 96 '../wm/public/activation_delegate.h', 97 '../wm/public/animation_host.cc', 98 '../wm/public/animation_host.h', 99 '../wm/public/dispatcher_client.cc', 100 '../wm/public/dispatcher_client.h', 101 '../wm/public/drag_drop_client.cc', 102 '../wm/public/drag_drop_client.h', 103 '../wm/public/drag_drop_delegate.cc', 104 '../wm/public/drag_drop_delegate.h', 105 '../wm/public/scoped_tooltip_disabler.cc', 106 '../wm/public/scoped_tooltip_disabler.h', 107 '../wm/public/tooltip_client.cc', 108 '../wm/public/tooltip_client.h', 109 '../wm/public/transient_window_client.cc', 110 '../wm/public/transient_window_client.h', 111 '../wm/public/window_move_client.cc', 112 '../wm/public/window_move_client.h', 113 ], 114 'conditions': [ 115 ['use_x11==1', { 116 'dependencies': [ 117 '../../build/linux/system.gyp:x11', 118 '../../build/linux/system.gyp:xrandr', 119 '../../build/linux/system.gyp:xi', 120 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform', 121 ], 122 }], 123 ['OS=="win"', { 124 'dependencies': [ 125 '../metro_viewer/metro_viewer.gyp:metro_viewer_messages', 126 '../../ipc/ipc.gyp:ipc', 127 ], 128 'sources!': [ 129 'input_state_lookup.cc', 130 ], 131 }], 132 ['use_ozone==1', { 133 'dependencies': [ 134 '../events/ozone/events_ozone.gyp:events_ozone', 135 '../ozone/ozone.gyp:ozone', 136 ], 137 }], 138 ], 139 }, 140 { 141 'target_name': 'aura_test_support', 142 'type': 'static_library', 143 'dependencies': [ 144 '../../skia/skia.gyp:skia', 145 '../../testing/gtest.gyp:gtest', 146 '../base/ui_base.gyp:ui_base', 147 '../base/ui_base.gyp:ui_base_test_support', 148 '../compositor/compositor.gyp:compositor_test_support', 149 '../events/events.gyp:events', 150 '../events/events.gyp:events_base', 151 '../events/events.gyp:events_test_support', 152 '../gfx/gfx.gyp:gfx', 153 '../gfx/gfx.gyp:gfx_geometry', 154 'aura', 155 ], 156 'include_dirs': [ 157 '..', 158 ], 159 'sources': [ 160 'test/aura_test_base.cc', 161 'test/aura_test_base.h', 162 'test/aura_test_helper.cc', 163 'test/aura_test_helper.h', 164 'test/aura_test_utils.cc', 165 'test/aura_test_utils.h', 166 'test/env_test_helper.h', 167 'test/event_generator.cc', 168 'test/event_generator.h', 169 'test/test_cursor_client.cc', 170 'test/test_cursor_client.h', 171 'test/test_focus_client.cc', 172 'test/test_focus_client.h', 173 'test/test_screen.cc', 174 'test/test_screen.h', 175 'test/test_window_tree_client.cc', 176 'test/test_window_tree_client.h', 177 'test/test_windows.cc', 178 'test/test_windows.h', 179 'test/test_window_delegate.cc', 180 'test/test_window_delegate.h', 181 'test/ui_controls_factory_aura.h', 182 'test/ui_controls_factory_aurawin.cc', 183 'test/ui_controls_factory_aurax11.cc', 184 'test/window_test_api.cc', 185 'test/window_test_api.h', 186 ], 187 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 188 'msvs_disabled_warnings': [ 4267, ], 189 }, 190 { 191 'target_name': 'aura_demo', 192 'type': 'executable', 193 'dependencies': [ 194 '../../base/base.gyp:base', 195 '../../base/base.gyp:base_i18n', 196 '../../skia/skia.gyp:skia', 197 '../../third_party/icu/icu.gyp:icui18n', 198 '../../third_party/icu/icu.gyp:icuuc', 199 '../base/ui_base.gyp:ui_base', 200 '../compositor/compositor.gyp:compositor', 201 '../compositor/compositor.gyp:compositor_test_support', 202 '../events/events.gyp:events', 203 '../gfx/gfx.gyp:gfx', 204 '../gfx/gfx.gyp:gfx_geometry', 205 'aura', 206 'aura_test_support', 207 ], 208 'include_dirs': [ 209 '..', 210 ], 211 'sources': [ 212 'demo/demo_main.cc', 213 ], 214 'conditions': [ 215 ['use_x11==1', { 216 'dependencies': [ 217 '../gfx/x/gfx_x11.gyp:gfx_x11', 218 ], 219 }], 220 ] 221 }, 222 { 223 'target_name': 'aura_bench', 224 'type': 'executable', 225 'dependencies': [ 226 '../../base/base.gyp:base', 227 '../../base/base.gyp:base_i18n', 228 '../../cc/cc.gyp:cc', 229 '../../gpu/gpu.gyp:gles2_implementation', 230 '../../skia/skia.gyp:skia', 231 '../../third_party/icu/icu.gyp:icui18n', 232 '../../third_party/icu/icu.gyp:icuuc', 233 '../base/ui_base.gyp:ui_base', 234 '../compositor/compositor.gyp:compositor', 235 '../compositor/compositor.gyp:compositor_test_support', 236 '../events/events.gyp:events', 237 '../gfx/gfx.gyp:gfx', 238 '../gfx/gfx.gyp:gfx_geometry', 239 'aura', 240 'aura_test_support', 241 ], 242 'include_dirs': [ 243 '..', 244 ], 245 'sources': [ 246 'bench/bench_main.cc', 247 ], 248 'conditions': [ 249 ['use_x11==1', { 250 'dependencies': [ 251 '../gfx/x/gfx_x11.gyp:gfx_x11', 252 ], 253 }], 254 ] 255 }, 256 { 257 'target_name': 'aura_unittests', 258 'type': 'executable', 259 'dependencies': [ 260 '../../base/base.gyp:test_support_base', 261 '../../skia/skia.gyp:skia', 262 '../../testing/gtest.gyp:gtest', 263 '../base/ui_base.gyp:ui_base', 264 '../base/ui_base.gyp:ui_base_test_support', 265 '../compositor/compositor.gyp:compositor', 266 '../compositor/compositor.gyp:compositor_test_support', 267 '../events/events.gyp:events', 268 '../events/events.gyp:events_base', 269 '../events/events.gyp:gesture_detection', 270 '../gfx/gfx.gyp:gfx', 271 '../gfx/gfx.gyp:gfx_geometry', 272 '../gl/gl.gyp:gl', 273 'aura_test_support', 274 'aura', 275 ], 276 'include_dirs': [ 277 '..', 278 ], 279 'sources': [ 280 'gestures/gesture_recognizer_unittest.cc', 281 'window_event_dispatcher_unittest.cc', 282 'test/run_all_unittests.cc', 283 'window_targeter_unittest.cc', 284 'window_unittest.cc', 285 ], 286 'conditions': [ 287 # osmesa GL implementation is used on linux. 288 ['OS=="linux"', { 289 'dependencies': [ 290 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', 291 ], 292 }], 293 ['OS=="linux" and use_allocator!="none"', { 294 'dependencies': [ 295 # See http://crbug.com/162998#c4 for why this is needed. 296 '../../base/allocator/allocator.gyp:allocator', 297 ], 298 }], 299 ], 300 }, 301 ], 302 } 303