Home | History | Annotate | Download | only in wm
      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   },
      9   'targets': [
     10     {
     11       # GN version: //ui/wm
     12       'target_name': 'wm',
     13       'type': '<(component)',
     14       'dependencies': [
     15         '../../base/base.gyp:base',
     16         '../../skia/skia.gyp:skia',
     17         '../aura/aura.gyp:aura',
     18         '../compositor/compositor.gyp:compositor',
     19         '../events/events.gyp:events',
     20         '../events/events.gyp:events_base',
     21         '../events/platform/events_platform.gyp:events_platform',
     22         '../gfx/gfx.gyp:gfx_geometry',
     23         '../gfx/gfx.gyp:gfx',
     24         '../resources/ui_resources.gyp:ui_resources',
     25         '../base/ui_base.gyp:ui_base',
     26       ],
     27       'defines': [
     28         'WM_IMPLEMENTATION',
     29       ],
     30       'sources': [
     31         # Note: sources list duplicated in GN build.
     32         'core/accelerator_delegate.h',
     33         'core/accelerator_filter.cc',
     34         'core/accelerator_filter.h',
     35         'core/base_focus_rules.h',
     36         'core/base_focus_rules.cc',
     37         'core/base_focus_rules.h',
     38         'core/capture_controller.cc',
     39         'core/capture_controller.h',
     40         'core/compound_event_filter.cc',
     41         'core/compound_event_filter.h',
     42         'core/coordinate_conversion.cc',
     43         'core/coordinate_conversion.h',
     44         'core/cursor_manager.cc',
     45         'core/cursor_manager.h',
     46         'core/default_activation_client.cc',
     47         'core/default_activation_client.h',
     48         'core/easy_resize_window_targeter.cc',
     49         'core/easy_resize_window_targeter.h',
     50         'core/focus_controller.cc',
     51         'core/focus_controller.h',
     52         'core/focus_rules.h',
     53         'core/image_grid.cc',
     54         'core/image_grid.h',
     55         'core/input_method_event_filter.cc',
     56         'core/input_method_event_filter.h',
     57         'core/masked_window_targeter.cc',
     58         'core/masked_window_targeter.h',
     59         'core/native_cursor_manager.h',
     60         'core/native_cursor_manager_delegate.h',
     61         'core/nested_accelerator_dispatcher_linux.cc',
     62         'core/nested_accelerator_dispatcher_win.cc',
     63         'core/nested_accelerator_dispatcher.cc',
     64         'core/nested_accelerator_dispatcher.h',
     65         'core/nested_accelerator_delegate.h',
     66         'core/nested_accelerator_controller.cc',
     67         'core/nested_accelerator_controller.h',
     68         'core/shadow.cc',
     69         'core/shadow.h',
     70         'core/shadow_controller.cc',
     71         'core/shadow_controller.h',
     72         'core/shadow_types.cc',
     73         'core/shadow_types.h',
     74         'core/transient_window_controller.cc',
     75         'core/transient_window_controller.h',
     76         'core/transient_window_manager.cc',
     77         'core/transient_window_manager.h',
     78         'core/transient_window_observer.h',
     79         'core/transient_window_stacking_client.cc',
     80         'core/transient_window_stacking_client.h',
     81         'core/user_activity_detector.cc',
     82         'core/user_activity_detector.h',
     83         'core/user_activity_observer.h',
     84         'core/visibility_controller.cc',
     85         'core/visibility_controller.h',
     86         'core/window_animations.cc',
     87         'core/window_animations.h',
     88         'core/window_modality_controller.cc',
     89         'core/window_modality_controller.h',
     90         'core/window_util.cc',
     91         'core/window_util.h',
     92         'core/wm_core_switches.cc',
     93         'core/wm_core_switches.h',
     94         'core/wm_state.cc',
     95         'core/wm_state.h',
     96         'public/window_types.h',
     97         'wm_export.h',
     98       ],
     99     },
    100     {
    101       # GN version: //ui/wm:test_support
    102       'target_name': 'wm_test_support',
    103       'type': 'static_library',
    104       'dependencies': [
    105         '../../skia/skia.gyp:skia',
    106         '../aura/aura.gyp:aura',
    107         '../events/events.gyp:events',
    108         '../events/events.gyp:events_base',
    109       ],
    110       'sources': [
    111         'test/wm_test_helper.cc',
    112         'test/wm_test_helper.h',
    113       ],
    114     },
    115     {
    116       # GN version: //ui/wm:wm_unittests
    117       'target_name': 'wm_unittests',
    118       'type': 'executable',
    119       'dependencies': [
    120         '../../base/base.gyp:base',
    121         '../../base/base.gyp:test_support_base',
    122         '../../skia/skia.gyp:skia',
    123         '../../testing/gtest.gyp:gtest',
    124         '../aura/aura.gyp:aura',
    125         '../aura/aura.gyp:aura_test_support',
    126         '../base/ui_base.gyp:ui_base',
    127         '../compositor/compositor.gyp:compositor',
    128         '../events/events.gyp:events',
    129         '../events/events.gyp:events_base',
    130         '../events/platform/events_platform.gyp:events_platform',
    131         '../gfx/gfx.gyp:gfx',
    132         '../gfx/gfx.gyp:gfx_geometry',
    133         'wm',
    134         'wm_test_support',
    135       ],
    136       'sources': [
    137         'test/run_all_unittests.cc',
    138         'core/compound_event_filter_unittest.cc',
    139         'core/cursor_manager_unittest.cc',
    140         'core/focus_controller_unittest.cc',
    141         'core/input_method_event_filter_unittest.cc',
    142         'core/image_grid_unittest.cc',
    143         'core/nested_accelerator_controller_unittest.cc',
    144         'core/shadow_controller_unittest.cc',
    145         'core/shadow_unittest.cc',
    146         'core/transient_window_manager_unittest.cc',
    147         'core/transient_window_stacking_client_unittest.cc',
    148         'core/user_activity_detector_unittest.cc',
    149         'core/visibility_controller_unittest.cc',
    150         'core/window_animations_unittest.cc',
    151         'core/window_util_unittest.cc',
    152       ],
    153     },
    154   ],
    155 }
    156