OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | |
7 'linux_link_libpci%': 0, | |
8 }, | |
9 'dependencies': [ | 6 'dependencies': [ |
10 '../base/base.gyp:base', | 7 '../base/base.gyp:base', |
11 '../skia/skia.gyp:skia', | 8 '../skia/skia.gyp:skia', |
12 '../ui/gl/gl.gyp:gl', | 9 '../ui/gl/gl.gyp:gl', |
13 ], | 10 ], |
14 'sources': [ | 11 'sources': [ |
15 'gpu/gpu_dx_diagnostics_win.cc', | 12 'gpu/gpu_dx_diagnostics_win.cc', |
16 'gpu/gpu_info_collector_android.cc', | 13 'gpu/gpu_info_collector_android.cc', |
17 'gpu/gpu_info_collector_linux.cc', | 14 'gpu/gpu_info_collector_linux.cc', |
18 'gpu/gpu_info_collector_mac.mm', | 15 'gpu/gpu_info_collector_mac.mm', |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ], | 90 ], |
94 }], | 91 }], |
95 ['OS=="win" and branding=="Chrome"', { | 92 ['OS=="win" and branding=="Chrome"', { |
96 'sources': [ | 93 'sources': [ |
97 '../third_party/amd/AmdCfxPxExt.h', | 94 '../third_party/amd/AmdCfxPxExt.h', |
98 '../third_party/amd/amd_videocard_info_win.cc', | 95 '../third_party/amd/amd_videocard_info_win.cc', |
99 ], | 96 ], |
100 }], | 97 }], |
101 ['OS=="linux"', { | 98 ['OS=="linux"', { |
102 'dependencies': [ | 99 'dependencies': [ |
| 100 '../build/linux/system.gyp:libpci', |
103 '../third_party/libXNVCtrl/libXNVCtrl.gyp:libXNVCtrl', | 101 '../third_party/libXNVCtrl/libXNVCtrl.gyp:libXNVCtrl', |
104 ], | 102 ], |
105 }], | 103 }], |
106 ['target_arch=="arm" and chromeos == 1', { | 104 ['target_arch=="arm" and chromeos == 1', { |
107 'include_dirs': [ | 105 'include_dirs': [ |
108 '<(DEPTH)/third_party/openmax/il', | 106 '<(DEPTH)/third_party/openmax/il', |
109 ], | 107 ], |
110 }], | 108 }], |
111 ['target_arch!="arm" and chromeos == 1', { | 109 ['target_arch!="arm" and chromeos == 1', { |
112 'include_dirs': [ | 110 'include_dirs': [ |
113 '<(DEPTH)/third_party/libva', | 111 '<(DEPTH)/third_party/libva', |
114 ], | 112 ], |
115 }], | 113 }], |
116 ['linux_link_libpci==0', { | |
117 'defines': [ | |
118 'DLOPEN_LIBPCI', | |
119 ], | |
120 }, { # linux_link_libpci==1 | |
121 'cflags': [ | |
122 '<!@(pkg-config --cflags libpci)', | |
123 ], | |
124 'link_settings': { | |
125 'ldflags': [ | |
126 '<!@(pkg-config --libs-only-L --libs-only-other libpci)', | |
127 ], | |
128 'libraries': [ | |
129 '<!@(pkg-config --libs-only-l libpci)', | |
130 ], | |
131 } | |
132 }], | |
133 ], | 114 ], |
134 } | 115 } |
OLD | NEW |