Home | History | Annotate | Download | only in display
      1 # Copyright 2014 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/display/types
     12       'target_name': 'display_types',
     13       'type': '<(component)',
     14       'dependencies': [
     15         '../../base/base.gyp:base',
     16         '../../ui/gfx/gfx.gyp:gfx_geometry',
     17       ],
     18       'defines': [
     19         'DISPLAY_TYPES_IMPLEMENTATION',
     20       ],
     21       'sources': [
     22         # Note: file list duplicated in GN build.
     23         'types/display_constants.h',
     24         'types/display_mode.cc',
     25         'types/display_mode.h',
     26         'types/display_snapshot.cc',
     27         'types/display_snapshot.h',
     28         'types/display_types_export.h',
     29         'types/native_display_delegate.h',
     30         'types/native_display_observer.h',
     31       ],
     32     },
     33     {
     34       # GN version: //ui/display
     35       'target_name': 'display',
     36       'type': '<(component)',
     37       'dependencies': [
     38         '../../base/base.gyp:base',
     39         '../../ui/gfx/gfx.gyp:gfx',
     40         '../../ui/gfx/gfx.gyp:gfx_geometry',
     41         'display_util',
     42       ],
     43       'defines': [
     44         'DISPLAY_IMPLEMENTATION',
     45       ],
     46       'sources': [
     47         # Note: file list duplicated in GN build.
     48         'chromeos/display_configurator.cc',
     49         'chromeos/display_configurator.h',
     50         'chromeos/ozone/display_configurator_ozone.cc',
     51         'chromeos/x11/display_configurator_x11.cc',
     52         'chromeos/x11/display_mode_x11.cc',
     53         'chromeos/x11/display_mode_x11.h',
     54         'chromeos/x11/display_snapshot_x11.cc',
     55         'chromeos/x11/display_snapshot_x11.h',
     56         'chromeos/x11/display_util_x11.cc',
     57         'chromeos/x11/display_util_x11.h',
     58         'chromeos/x11/native_display_delegate_x11.cc',
     59         'chromeos/x11/native_display_delegate_x11.h',
     60         'chromeos/x11/native_display_event_dispatcher_x11.cc',
     61         'chromeos/x11/native_display_event_dispatcher_x11.h',
     62         'display_export.h',
     63         'display_switches.cc',
     64         'display_switches.h',
     65       ],
     66       'conditions': [
     67         ['use_x11 == 1', {
     68           'dependencies': [
     69             '../../build/linux/system.gyp:x11',
     70             '../../build/linux/system.gyp:xext',
     71             '../../build/linux/system.gyp:xi',
     72             '../../build/linux/system.gyp:xrandr',
     73             '../../ui/events/platform/events_platform.gyp:events_platform',
     74           ],
     75         }],
     76         ['chromeos == 1', {
     77           'dependencies': [
     78             'display_types',
     79           ],
     80         }],
     81         ['use_ozone == 1', {
     82           'dependencies': [
     83             '../../ui/ozone/ozone.gyp:ozone',
     84           ],
     85         }],
     86       ],
     87     },
     88     {
     89       # GN version: //ui/display/util
     90       'target_name': 'display_util',
     91       'type': '<(component)',
     92       'dependencies': [
     93         '../../base/base.gyp:base',
     94         '../../ui/gfx/gfx.gyp:gfx_geometry',
     95       ],
     96       'defines': [
     97         'DISPLAY_UTIL_IMPLEMENTATION',
     98       ],
     99       'sources': [
    100         # Note: file list shared with GN build.
    101         'util/display_util.cc',
    102         'util/display_util.h',
    103         'util/display_util_export.h',
    104         'util/edid_parser.cc',
    105         'util/edid_parser.h',
    106         'util/x11/edid_parser_x11.cc',
    107         'util/x11/edid_parser_x11.h',
    108       ],
    109       'conditions': [
    110         ['use_x11 == 1', {
    111           'dependencies': [
    112             '../../build/linux/system.gyp:xrandr',
    113             '../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
    114           ],
    115         }],
    116         ['chromeos == 1', {
    117           'dependencies': [
    118             'display_types',
    119           ],
    120         }],
    121       ],
    122     },
    123     {
    124       # GN version: //ui/display:test_util
    125       'target_name': 'display_test_util',
    126       'type': '<(component)',
    127       'dependencies': [
    128         '../../base/base.gyp:base',
    129         '../../ui/gfx/gfx.gyp:gfx',
    130         '../../ui/gfx/gfx.gyp:gfx_geometry',
    131       ],
    132       'defines': [
    133         'DISPLAY_IMPLEMENTATION',
    134       ],
    135       'sources': [
    136         # Note: file list duplicated in GN build.
    137         'chromeos/test/test_display_snapshot.cc',
    138         'chromeos/test/test_display_snapshot.h',
    139       ],
    140       'conditions': [
    141         ['chromeos == 1', {
    142           'dependencies': [
    143             'display_types',
    144           ],
    145         }],
    146       ],
    147     },
    148     {
    149       # GN version: //ui/display:display_unittests
    150       'target_name': 'display_unittests',
    151       'type': 'executable',
    152       'dependencies': [
    153         '../../base/base.gyp:run_all_unittests',
    154         '../../testing/gtest.gyp:gtest',
    155         '../../ui/gfx/gfx.gyp:gfx_geometry',
    156         'display_util',
    157       ],
    158       'include_dirs': [
    159         '../..',
    160       ],
    161       'sources': [
    162         'chromeos/display_configurator_unittest.cc',
    163         'chromeos/x11/display_util_x11_unittest.cc',
    164         'chromeos/x11/native_display_event_dispatcher_x11_unittest.cc',
    165         'util/display_util_unittest.cc',
    166         'util/edid_parser_unittest.cc',
    167       ],
    168       'conditions': [
    169         ['chromeos == 1', {
    170           'dependencies': [
    171             'display',
    172             'display_test_util',
    173             'display_types',
    174           ],
    175         }],
    176       ],
    177     },
    178   ],
    179 }
    180