| # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| { |
| 'variables': { |
| 'chromium_code': 1, |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'aura', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../base/base.gyp:base_i18n', |
| '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| '../../cc/cc.gyp:cc', |
| '../../gpu/gpu.gyp:gpu', |
| '../../skia/skia.gyp:skia', |
| '../compositor/compositor.gyp:compositor', |
| '../events/events.gyp:events', |
| '../events/events.gyp:events_base', |
| '../gfx/gfx.gyp:gfx', |
| '../resources/ui_resources.gyp:ui_resources', |
| '../ui.gyp:ui', |
| ], |
| 'defines': [ |
| 'AURA_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'client/activation_change_observer.h', |
| 'client/activation_change_observer.cc', |
| 'client/activation_client.cc', |
| 'client/activation_client.h', |
| 'client/activation_delegate.cc', |
| 'client/activation_delegate.h', |
| 'client/animation_host.cc', |
| 'client/animation_host.h', |
| 'client/aura_constants.cc', |
| 'client/aura_constants.h', |
| 'client/capture_client.cc', |
| 'client/capture_client.h', |
| 'client/capture_delegate.h', |
| 'client/cursor_client.cc', |
| 'client/cursor_client.h', |
| 'client/cursor_client_observer.h', |
| 'client/cursor_client_observer.cc', |
| 'client/default_activation_client.cc', |
| 'client/default_activation_client.h', |
| 'client/default_capture_client.cc', |
| 'client/default_capture_client.h', |
| 'client/dispatcher_client.cc', |
| 'client/dispatcher_client.h', |
| 'client/drag_drop_client.cc', |
| 'client/drag_drop_client.h', |
| 'client/drag_drop_delegate.cc', |
| 'client/drag_drop_delegate.h', |
| 'client/event_client.cc', |
| 'client/event_client.h', |
| 'client/focus_change_observer.cc', |
| 'client/focus_change_observer.h', |
| 'client/focus_client.cc', |
| 'client/focus_client.h', |
| 'client/screen_position_client.cc', |
| 'client/screen_position_client.h', |
| 'client/tooltip_client.cc', |
| 'client/tooltip_client.h', |
| 'client/user_action_client.cc', |
| 'client/user_action_client.h', |
| 'client/visibility_client.cc', |
| 'client/visibility_client.h', |
| 'client/window_move_client.cc', |
| 'client/window_move_client.h', |
| 'client/window_tree_client.cc', |
| 'client/window_tree_client.h', |
| 'client/window_types.h', |
| 'device_list_updater_aurax11.cc', |
| 'device_list_updater_aurax11.h', |
| 'dispatcher_win.cc', |
| 'env.cc', |
| 'env.h', |
| 'env_observer.h', |
| 'input_state_lookup.cc', |
| 'input_state_lookup.h', |
| 'input_state_lookup_win.cc', |
| 'input_state_lookup_win.h', |
| 'layout_manager.cc', |
| 'layout_manager.h', |
| 'remote_root_window_host_win.cc', |
| 'remote_root_window_host_win.h', |
| 'root_window_host_ozone.cc', |
| 'root_window_host_ozone.h', |
| 'root_window_host_win.cc', |
| 'root_window_host_win.h', |
| 'root_window_host_x11.cc', |
| 'root_window_host_x11.h', |
| 'root_window_transformer.h', |
| 'root_window.cc', |
| 'root_window.h', |
| 'window.cc', |
| 'window.h', |
| 'window_targeter.cc', |
| 'window_targeter.h', |
| 'window_delegate.h', |
| 'window_layer_type.h', |
| 'window_observer.h', |
| 'window_tracker.cc', |
| 'window_tracker.h', |
| 'window_tree_host.cc', |
| 'window_tree_host.h', |
| 'window_tree_host_delegate.h', |
| ], |
| 'conditions': [ |
| ['use_x11==1', { |
| 'link_settings': { |
| 'libraries': [ |
| '-lX11', |
| '-lXi', |
| '-lXfixes', |
| '-lXrandr', |
| ], |
| }, |
| }], |
| ['OS=="win"', { |
| 'dependencies': [ |
| '../metro_viewer/metro_viewer.gyp:metro_viewer_messages', |
| '../../ipc/ipc.gyp:ipc', |
| ], |
| 'sources!': [ |
| 'input_state_lookup.cc', |
| ], |
| }], |
| ['use_ozone==1', { |
| 'dependencies': [ |
| '../ozone/ozone.gyp:ozone', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'aura_test_support', |
| 'type': 'static_library', |
| 'dependencies': [ |
| '../../skia/skia.gyp:skia', |
| '../../testing/gtest.gyp:gtest', |
| '../compositor/compositor.gyp:compositor_test_support', |
| '../events/events.gyp:events', |
| '../events/events.gyp:events_base', |
| '../events/events.gyp:events_test_support', |
| '../gfx/gfx.gyp:gfx', |
| '../ui.gyp:ui', |
| '../ui_unittests.gyp:ui_test_support', |
| 'aura', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'sources': [ |
| 'test/aura_test_base.cc', |
| 'test/aura_test_base.h', |
| 'test/aura_test_helper.cc', |
| 'test/aura_test_helper.h', |
| 'test/env_test_helper.h', |
| 'test/event_generator.cc', |
| 'test/event_generator.h', |
| 'test/test_cursor_client.cc', |
| 'test/test_cursor_client.h', |
| 'test/test_event_handler.cc', |
| 'test/test_event_handler.h', |
| 'test/test_focus_client.cc', |
| 'test/test_focus_client.h', |
| 'test/test_screen.cc', |
| 'test/test_screen.h', |
| 'test/test_window_tree_client.cc', |
| 'test/test_window_tree_client.h', |
| 'test/test_windows.cc', |
| 'test/test_windows.h', |
| 'test/test_window_delegate.cc', |
| 'test/test_window_delegate.h', |
| 'test/ui_controls_factory_aura.h', |
| 'test/ui_controls_factory_aurawin.cc', |
| 'test/ui_controls_factory_aurax11.cc', |
| 'test/window_test_api.cc', |
| 'test/window_test_api.h', |
| ], |
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 'msvs_disabled_warnings': [ 4267, ], |
| }, |
| { |
| 'target_name': 'aura_demo', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../base/base.gyp:base_i18n', |
| '../../skia/skia.gyp:skia', |
| '../../third_party/icu/icu.gyp:icui18n', |
| '../../third_party/icu/icu.gyp:icuuc', |
| '../compositor/compositor.gyp:compositor', |
| '../compositor/compositor.gyp:compositor_test_support', |
| '../events/events.gyp:events', |
| '../gfx/gfx.gyp:gfx', |
| '../resources/ui_resources.gyp:ui_resources', |
| '../ui.gyp:ui', |
| 'aura', |
| 'aura_test_support', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'sources': [ |
| 'demo/demo_main.cc', |
| ], |
| }, |
| { |
| 'target_name': 'aura_bench', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../base/base.gyp:base_i18n', |
| '../../skia/skia.gyp:skia', |
| '../../third_party/icu/icu.gyp:icui18n', |
| '../../third_party/icu/icu.gyp:icuuc', |
| '../compositor/compositor.gyp:compositor', |
| '../compositor/compositor.gyp:compositor_test_support', |
| '../events/events.gyp:events', |
| '../gfx/gfx.gyp:gfx', |
| '../resources/ui_resources.gyp:ui_resources', |
| '../ui.gyp:ui', |
| 'aura', |
| 'aura_test_support', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'sources': [ |
| 'bench/bench_main.cc', |
| ], |
| }, |
| { |
| 'target_name': 'aura_unittests', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../../base/base.gyp:test_support_base', |
| '../../chrome/chrome_resources.gyp:packed_resources', |
| '../../skia/skia.gyp:skia', |
| '../../testing/gtest.gyp:gtest', |
| '../compositor/compositor.gyp:compositor', |
| '../compositor/compositor.gyp:compositor_test_support', |
| '../events/events.gyp:events', |
| '../events/events.gyp:events_base', |
| '../gfx/gfx.gyp:gfx', |
| '../gl/gl.gyp:gl', |
| '../resources/ui_resources.gyp:ui_resources', |
| '../ui.gyp:ui', |
| '../ui_unittests.gyp:ui_test_support', |
| 'aura_test_support', |
| 'aura', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'sources': [ |
| 'gestures/gesture_recognizer_unittest.cc', |
| 'root_window_host_x11_unittest.cc', |
| 'root_window_unittest.cc', |
| 'test/run_all_unittests.cc', |
| 'test/test_suite.cc', |
| 'test/test_suite.h', |
| 'window_targeter_unittest.cc', |
| 'window_unittest.cc', |
| ], |
| 'conditions': [ |
| # osmesa GL implementation is used on linux. |
| ['OS=="linux"', { |
| 'dependencies': [ |
| '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', |
| ], |
| }], |
| ['OS=="linux" and linux_use_tcmalloc==1', { |
| 'dependencies': [ |
| # See http://crbug.com/162998#c4 for why this is needed. |
| '../../base/allocator/allocator.gyp:allocator', |
| ], |
| }], |
| ], |
| }, |
| ], |
| } |