• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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  'dependencies': [
7    '../base/base.gyp:base',
8    '../skia/skia.gyp:skia',
9    '../ui/gl/gl.gyp:gl',
10  ],
11  'sources': [
12    'gpu/gpu_main.cc',
13    'gpu/gpu_process.cc',
14    'gpu/gpu_process.h',
15    'gpu/gpu_child_thread.cc',
16    'gpu/gpu_child_thread.h',
17    'gpu/gpu_watchdog_thread.cc',
18    'gpu/gpu_watchdog_thread.h',
19    'gpu/in_process_gpu_thread.cc',
20    'gpu/in_process_gpu_thread.h',
21  ],
22  'include_dirs': [
23    '..',
24  ],
25  'conditions': [
26    ['OS=="win"', {
27      'include_dirs': [
28        '<(DEPTH)/third_party/khronos',
29        '<(angle_path)/src',
30        '<(DEPTH)/third_party/wtl/include',
31      ],
32      'dependencies': [
33        '<(angle_path)/src/build_angle.gyp:libEGL',
34        '<(angle_path)/src/build_angle.gyp:libGLESv2',
35      ],
36      'link_settings': {
37        'libraries': [
38          '-lsetupapi.lib',
39        ],
40      },
41    }],
42    ['OS=="win" and target_arch=="ia32" and directxsdk_exists=="True"', {
43      # We don't support x64 prior to Win7 and D3DCompiler_43.dll is
44      # not needed on Vista+.
45      'actions': [
46        {
47          'action_name': 'extract_d3dcompiler',
48          'variables': {
49            'input': 'Jun2010_D3DCompiler_43_x86.cab',
50            'output': 'D3DCompiler_43.dll',
51          },
52          'inputs': [
53            '../third_party/directxsdk/files/Redist/<(input)',
54          ],
55          'outputs': [
56            '<(PRODUCT_DIR)/<(output)',
57          ],
58          'action': [
59            'python',
60            '../build/extract_from_cab.py',
61            '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
62            '<(output)',
63            '<(PRODUCT_DIR)',
64          ],
65          'msvs_cygwin_shell': 1,
66        },
67      ],
68    }],
69    ['target_arch!="arm" and chromeos == 1', {
70      'include_dirs': [
71        '<(DEPTH)/third_party/libva',
72      ],
73    }],
74  ],
75}
76