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    'use_x11': 1,  # It is necessary to explicitly set use_x11 here to make sure
9                   # that the exclusion rules in filename_rules.gypi do not
10                   # exclude the x11* files.
11  },
12
13  'targets': [
14    {
15      # GN version: //ui/gfx/x
16      'target_name': 'gfx_x11',
17      'type': '<(component)',
18      'dependencies': [
19        '../../../base/base.gyp:base',
20        '../../../build/linux/system.gyp:x11',
21      ],
22      'defines': [
23        'GFX_IMPLEMENTATION',
24      ],
25      'sources': [
26        'x11_atom_cache.cc',
27        'x11_atom_cache.h',
28        'x11_connection.cc',
29        'x11_connection.h',
30        'x11_error_tracker.cc',
31        'x11_error_tracker.h',
32        'x11_switches.cc',
33        'x11_switches.h',
34        'x11_types.cc',
35        'x11_types.h',
36      ],
37    },
38  ]
39}
40