summaryrefslogtreecommitdiffstats
path: root/gpu/gpu_ipc_common.gypi
blob: 2b261f19d2bef412f90033fc012f3a031131c70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'dependencies': [
    '../base/base.gyp:base',
    '../ipc/ipc.gyp:ipc',
    '../third_party/khronos/khronos.gyp:khronos_headers',
  ],
  'include_dirs': [
    '..',
  ],
  'sources': [
    'ipc/common/gpu_command_buffer_traits.cc',
    'ipc/common/gpu_command_buffer_traits.h',
    'ipc/common/id_type_traits.h',
    'ipc/common/memory_stats.cc',
    'ipc/common/memory_stats.h',
    'ipc/common/surface_handle.h',
  ],
  'conditions': [
    # This section applies to gpu_ipc_win64, used by the NaCl Win64 helper
    # (nacl64.exe).
    ['nacl_win64_target==1', {
      # gpu_ipc_win64 must only link against the 64-bit ipc target.
      'dependencies!': [
        '../base/base.gyp:base',
        '../ipc/ipc.gyp:ipc',
      ],
    }],
    ['OS=="android"', {
      'sources': [
        'ipc/common/android/surface_texture_manager.cc',
        'ipc/common/android/surface_texture_manager.h',
        'ipc/common/android/surface_texture_peer.cc',
        'ipc/common/android/surface_texture_peer.h',
      ]
    }]
  ],
}