Updating trunk VERSION from 750.0 to 751.0
[chromium-blink-merge.git] / content / content_gpu.gypi
blobfea5677f6db217a1e5c3f0ddb50bb71a4c39f6c4
1 # Copyright (c) 2011 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.
6   'variables': {
7     'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
8   },  # variables
9   'targets': [
10     {
11       'target_name': 'content_gpu',
12       'type': '<(library)',
13       'msvs_guid': 'F10F1ECD-D84D-4C33-8468-9DDFE19F4D8A',
14       'dependencies': [
15         'content_common',
16         '../base/base.gyp:base',
17         '../skia/skia.gyp:skia',
18         '../ui/gfx/gl/gl.gyp:gl',
19       ],
20       'sources': [
21         'gpu/gpu_dx_diagnostics_win.cc',
22         'gpu/gpu_info_collector_linux.cc',
23         'gpu/gpu_info_collector_mac.mm',
24         'gpu/gpu_info_collector_win.cc',
25         'gpu/gpu_info_collector.cc',
26         'gpu/gpu_info_collector.h',
27         'gpu/gpu_main.cc',
28         'gpu/gpu_process.cc',
29         'gpu/gpu_process.h',
30         'gpu/gpu_child_thread.cc',
31         'gpu/gpu_child_thread.h',
32         'gpu/gpu_watchdog_thread.cc',
33         'gpu/gpu_watchdog_thread.h',
34       ],
35       'include_dirs': [
36         '..',
37       ],
38       'conditions': [
39         ['OS=="win"', {
40           'include_dirs': [
41             '<(DEPTH)/third_party/angle/include',
42             '<(DEPTH)/third_party/angle/src',
43             '<(DEPTH)/third_party/wtl/include',
44             '$(DXSDK_DIR)/include',
45           ],
46           'dependencies': [
47             '../third_party/angle/src/build_angle.gyp:libEGL',
48             '../third_party/angle/src/build_angle.gyp:libGLESv2',
49           ],
50         }],
51         ['OS=="win" and directxsdk_exists=="True"', {
52           'actions': [
53             {
54               'action_name': 'extract_d3dx9',
55               'variables': {
56                 'input': 'Jun2010_d3dx9_43_x86.cab',
57                 'output': 'd3dx9_43.dll',
58               },
59               'inputs': [
60                 '../third_party/directxsdk/files/Redist/<(input)',
61               ],
62               'outputs': [
63                 '<(PRODUCT_DIR)/<(output)',
64               ],
65               'action': [
66                 'python',
67                 '../build/extract_from_cab.py',
68                 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
69                 '<(output)',
70                 '<(PRODUCT_DIR)',
71               ],
72             },
73             {
74               'action_name': 'extract_d3dcompiler',
75               'variables': {
76                 'input': 'Jun2010_D3DCompiler_43_x86.cab',
77                 'output': 'D3DCompiler_43.dll',
78               },
79               'inputs': [
80                 '../third_party/directxsdk/files/Redist/<(input)',
81               ],
82               'outputs': [
83                 '<(PRODUCT_DIR)/<(output)',
84               ],
85               'action': [
86                 'python',
87                 '../build/extract_from_cab.py',
88                 '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
89                 '<(output)',
90                 '<(PRODUCT_DIR)',
91               ],
92             },
93           ],
94         }],
95       ],
96     },
97   ],