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