Home | History | Annotate | Download | only in dri
      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     'internal_ozone_platform_deps': [
      8       'ozone_platform_dri',
      9     ],
     10     'internal_ozone_platform_unittest_deps': [
     11       'ozone_platform_dri_unittests',
     12     ],
     13     'internal_ozone_platforms': [
     14       'dri',
     15     ],
     16     'use_drm_atomic_flip%': 0,
     17   },
     18   'targets': [
     19     {
     20       'target_name': 'ozone_platform_dri',
     21       'type': 'static_library',
     22       'dependencies': [
     23         '../../base/base.gyp:base',
     24         '../../build/linux/system.gyp:libdrm',
     25         '../../skia/skia.gyp:skia',
     26         '../base/ui_base.gyp:ui_base',
     27         '../display/display.gyp:display_types',
     28         '../display/display.gyp:display_util',
     29         '../events/events.gyp:events',
     30         '../events/ozone/events_ozone.gyp:events_ozone_evdev',
     31         '../gfx/gfx.gyp:gfx',
     32         '../gfx/gfx.gyp:gfx_geometry',
     33       ],
     34       'defines': [
     35         'OZONE_IMPLEMENTATION',
     36       ],
     37       'sources': [
     38         'chromeos/display_mode_dri.cc',
     39         'chromeos/display_mode_dri.h',
     40         'chromeos/display_snapshot_dri.cc',
     41         'chromeos/display_snapshot_dri.h',
     42         'chromeos/native_display_delegate_dri.cc',
     43         'chromeos/native_display_delegate_dri.h',
     44         'crtc_state.cc',
     45         'crtc_state.h',
     46         'dri_console_buffer.cc',
     47         'dri_console_buffer.h',
     48         'dri_buffer.cc',
     49         'dri_buffer.h',
     50         'dri_cursor.cc',
     51         'dri_cursor.h',
     52         'dri_surface.cc',
     53         'dri_surface.h',
     54         'dri_surface_factory.cc',
     55         'dri_surface_factory.h',
     56         'dri_util.cc',
     57         'dri_util.h',
     58         'dri_vsync_provider.cc',
     59         'dri_vsync_provider.h',
     60         'dri_window.cc',
     61         'dri_window.h',
     62         'dri_window_delegate.h',
     63         'dri_window_delegate_impl.cc',
     64         'dri_window_delegate_impl.h',
     65         'dri_window_delegate_manager.cc',
     66         'dri_window_delegate_manager.h',
     67         'dri_window_manager.cc',
     68         'dri_window_manager.h',
     69         'dri_wrapper.cc',
     70         'dri_wrapper.h',
     71         'hardware_display_controller.cc',
     72         'hardware_display_controller.h',
     73         'ozone_platform_dri.cc',
     74         'ozone_platform_dri.h',
     75         'scoped_drm_types.cc',
     76         'scoped_drm_types.h',
     77         'screen_manager.cc',
     78         'screen_manager.h',
     79         'scanout_buffer.h',
     80         'virtual_terminal_manager.cc',
     81         'virtual_terminal_manager.h',
     82       ],
     83       'conditions': [
     84         ['use_drm_atomic_flip==1', {
     85           'sources': [
     86             'hardware_display_plane.cc',
     87             'hardware_display_plane.h',
     88             'hardware_display_plane_manager.cc',
     89             'hardware_display_plane_manager.h',
     90           ],
     91         }],
     92       ],      
     93     },
     94     {
     95       'target_name': 'ozone_platform_dri_unittests',
     96       'type': 'none',
     97       'dependencies': [
     98         '../../build/linux/system.gyp:libdrm',
     99         '../../skia/skia.gyp:skia',
    100         '../gfx/gfx.gyp:gfx_geometry',
    101         'ozone_platform_dri',
    102       ],
    103       'export_dependent_settings': [
    104         '../../build/linux/system.gyp:libdrm',
    105         '../../skia/skia.gyp:skia',
    106         '../gfx/gfx.gyp:gfx_geometry',
    107       ],
    108       'direct_dependent_settings': {
    109         'sources': [
    110           'dri_surface_factory_unittest.cc',
    111           'dri_surface_unittest.cc',
    112           'hardware_display_controller_unittest.cc',
    113           'screen_manager_unittest.cc',
    114           'test/mock_dri_wrapper.cc',
    115           'test/mock_dri_wrapper.h',
    116         ],
    117       },
    118     },
    119   ],
    120 }
    121