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