summaryrefslogtreecommitdiffstats
path: root/content/content_gpu.gypi
blob: fec3a08f664e7ac6a6ef885ca0cc3f4b78de0b80 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Copyright (c) 2011 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.

{
  'variables': {
    'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
  },  # variables
  'targets': [
    {
      'target_name': 'content_gpu',
      'type': '<(library)',
      'msvs_guid': 'F10F1ECD-D84D-4C33-8468-9DDFE19F4D8A',
      'dependencies': [
        'content_common',
        '../app/app.gyp:app_base',
        '../base/base.gyp:base',
        '../media/media.gyp:media',
        '../skia/skia.gyp:skia',
      ],
      'sources': [
        'gpu/content_gpu_client.h',
        'gpu/gpu_channel.cc',
        'gpu/gpu_channel.h',
        'gpu/gpu_command_buffer_stub.cc',
        'gpu/gpu_command_buffer_stub.h',
        'gpu/gpu_config.h',
        'gpu/gpu_dx_diagnostics_win.cc',
        'gpu/gpu_info_collector_linux.cc',
        'gpu/gpu_info_collector_mac.mm',
        'gpu/gpu_info_collector_win.cc',
        'gpu/gpu_info_collector.cc',
        'gpu/gpu_info_collector.h',
        'gpu/gpu_main.cc',
        'gpu/gpu_process.cc',
        'gpu/gpu_process.h',
        'gpu/gpu_child_thread.cc',
        'gpu/gpu_child_thread.h',
        'gpu/gpu_render_thread.cc',
        'gpu/gpu_render_thread.h',
        'gpu/gpu_video_decoder.cc',
        'gpu/gpu_video_decoder.h',
        'gpu/gpu_video_service.cc',
        'gpu/gpu_video_service.h',
        'gpu/gpu_watchdog_thread.cc',
        'gpu/gpu_watchdog_thread.h',
        'gpu/media/gpu_video_device.h',
        'gpu/media/fake_gl_video_decode_engine.cc',
        'gpu/media/fake_gl_video_decode_engine.h',
        'gpu/media/fake_gl_video_device.cc',
        'gpu/media/fake_gl_video_device.h',
      ],
      'include_dirs': [
        '..',
      ],
      'conditions': [
        ['OS=="win"', {
          'include_dirs': [
            '<(DEPTH)/third_party/angle/include',
            '<(DEPTH)/third_party/angle/src',
            '<(DEPTH)/third_party/wtl/include',
            '$(DXSDK_DIR)/include',
          ],
          'dependencies': [
            '../third_party/angle/src/build_angle.gyp:libEGL',
            '../third_party/angle/src/build_angle.gyp:libGLESv2',
          ],
        }],
        ['OS=="win" and directxsdk_exists=="True"', {
          'actions': [
            {
              'action_name': 'extract_d3dx9',
              'variables': {
                'input': 'Jun2010_d3dx9_43_x86.cab',
                'output': 'd3dx9_43.dll',
              },
              'inputs': [
                '../third_party/directxsdk/files/Redist/<(input)',
              ],
              'outputs': [
                '<(PRODUCT_DIR)/<(output)',
              ],
              'action': [
                'python',
                '../build/extract_from_cab.py',
                '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
                '<(output)',
                '<(PRODUCT_DIR)',
              ],
            },
            {
              'action_name': 'extract_d3dcompiler',
              'variables': {
                'input': 'Jun2010_D3DCompiler_43_x86.cab',
                'output': 'D3DCompiler_43.dll',
              },
              'inputs': [
                '../third_party/directxsdk/files/Redist/<(input)',
              ],
              'outputs': [
                '<(PRODUCT_DIR)/<(output)',
              ],
              'action': [
                'python',
                '../build/extract_from_cab.py',
                '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
                '<(output)',
                '<(PRODUCT_DIR)',
              ],
            },
          ],
          'sources': [
            'gpu/media/mft_angle_video_device.cc',
            'gpu/media/mft_angle_video_device.h',
          ],
        }],
        ['OS=="linux" and target_arch!="arm"', {
          'sources': [
            'gpu/x_util.cc',
            'gpu/x_util.h',
          ],
        }],
        ['enable_gpu==1', {
          'dependencies': [
            '../gpu/gpu.gyp:command_buffer_service',
          ],
        }],
      ],
    },
  ],
}