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