Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: media/media.gyp

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/media_gpu.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Override to dynamically link the cras (ChromeOS audio) library. 8 # Override to dynamically link the cras (ChromeOS audio) library.
9 'use_cras%': 0, 9 'use_cras%': 0,
10 # Option e.g. for Linux distributions to link pulseaudio directly 10 # Option e.g. for Linux distributions to link pulseaudio directly
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 '<@(shared_memory_support_sources)', 1611 '<@(shared_memory_support_sources)',
1612 ], 1612 ],
1613 'conditions': [ 1613 'conditions': [
1614 ['arm_neon==1', { 1614 ['arm_neon==1', {
1615 'defines': [ 1615 'defines': [
1616 'USE_NEON' 1616 'USE_NEON'
1617 ], 1617 ],
1618 }], 1618 }],
1619 ], 1619 ],
1620 }, 1620 },
1621 {
1622 # GN version: //media/gpu
1623 'target_name': 'media_gpu',
1624 'type': 'static_library',
1625 'includes': [ 'media_gpu.gypi' ],
1626 },
1621 ], 1627 ],
1622 'conditions': [ 1628 'conditions': [
1623 ['target_arch=="ia32" or target_arch=="x64"', { 1629 ['target_arch=="ia32" or target_arch=="x64"', {
1624 'targets': [ 1630 'targets': [
1625 { 1631 {
1626 'target_name': 'media_asm', 1632 'target_name': 'media_asm',
1627 'type': 'static_library', 1633 'type': 'static_library',
1628 'sources': [ 1634 'sources': [
1629 'base/simd/convert_rgb_to_yuv_ssse3.asm', 1635 'base/simd/convert_rgb_to_yuv_ssse3.asm',
1630 'base/simd/convert_yuv_to_rgb_sse.asm', 1636 'base/simd/convert_yuv_to_rgb_sse.asm',
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 'conditions': [ 2083 'conditions': [
2078 ['use_x11==1', { 2084 ['use_x11==1', {
2079 'dependencies': [ 2085 'dependencies': [
2080 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 2086 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2081 ], 2087 ],
2082 }], 2088 }],
2083 ], 2089 ],
2084 }, 2090 },
2085 ], 2091 ],
2086 }], 2092 }],
2093 ['chromeos==1', {
2094 'targets': [
2095 {
2096 'target_name': 'jpeg_decode_accelerator_unittest',
2097 'type': 'executable',
2098 'dependencies': [
2099 '../base/base.gyp:base',
2100 '../media/media.gyp:media',
2101 '../media/media.gyp:media_gpu',
2102 '../media/media.gyp:media_test_support',
2103 '../testing/gtest.gyp:gtest',
2104 '../third_party/libyuv/libyuv.gyp:libyuv',
2105 '../ui/gfx/gfx.gyp:gfx',
2106 '../ui/gfx/gfx.gyp:gfx_geometry',
2107 '../ui/gl/gl.gyp:gl',
2108 '../ui/gl/gl.gyp:gl_test_support',
2109 ],
2110 'sources': [
2111 'gpu/jpeg_decode_accelerator_unittest.cc',
2112 ],
2113 'include_dirs': [
2114 '<(DEPTH)/third_party/libva',
2115 '<(DEPTH)/third_party/libyuv',
2116 ],
2117 }
2118 ]
2119 }],
2120 ['chromeos==1 or OS=="mac"', {
2121 'targets': [
2122 {
2123 'target_name': 'video_encode_accelerator_unittest',
2124 'type': 'executable',
2125 'dependencies': [
2126 '../base/base.gyp:base',
2127 '../media/media.gyp:media',
2128 '../media/media.gyp:media_gpu',
2129 '../media/media.gyp:media_test_support',
2130 '../testing/gtest.gyp:gtest',
2131 '../ui/base/ui_base.gyp:ui_base',
2132 '../ui/gfx/gfx.gyp:gfx',
2133 '../ui/gfx/gfx.gyp:gfx_geometry',
2134 '../ui/gfx/gfx.gyp:gfx_test_support',
2135 '../ui/gl/gl.gyp:gl',
2136 '../ui/gl/gl.gyp:gl_test_support',
2137 ],
2138 'sources': [
2139 'gpu/video_accelerator_unittest_helpers.h',
2140 'gpu/video_encode_accelerator_unittest.cc',
2141 ],
2142 'include_dirs': [
2143 '<(DEPTH)/third_party/libva',
2144 '<(DEPTH)/third_party/libyuv',
2145 ],
2146 'conditions': [
2147 ['use_x11==1', {
2148 'dependencies': [
2149 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
2150 ],
2151 }],
2152 ['use_ozone==1', {
2153 'dependencies': [
2154 '../ui/ozone/ozone.gyp:ozone',
2155 ],
2156 }],
2157 ],
2158 }
2159 ]
2160 }],
2161 ['chromeos==1 or OS=="win" or OS=="android"', {
2162 'targets': [
2163 {
2164 # TODO(GYP): Port Windows and ChromeOS logic.
2165 # GN: //media/gpu:video_decode_accelerator_unittest
2166 'target_name': 'video_decode_accelerator_unittest',
2167 'type': '<(gtest_target_type)',
2168 'dependencies': [
2169 '../base/base.gyp:base',
2170 '../gpu/gpu.gyp:command_buffer_service',
2171 '../media/gpu/ipc/media_ipc.gyp:media_gpu_ipc_service',
2172 '../media/media.gyp:media',
2173 '../media/media.gyp:media_gpu',
2174 '../testing/gtest.gyp:gtest',
2175 '../ui/base/ui_base.gyp:ui_base',
2176 '../ui/gfx/gfx.gyp:gfx',
2177 '../ui/gfx/gfx.gyp:gfx_geometry',
2178 '../ui/gfx/gfx.gyp:gfx_test_support',
2179 '../ui/gl/gl.gyp:gl',
2180 '../ui/gl/gl.gyp:gl_test_support',
2181 ],
2182 'include_dirs': [
2183 '<(DEPTH)/third_party/khronos',
2184 ],
2185 'sources': [
2186 'gpu/android_video_decode_accelerator_unittest.cc',
2187 'gpu/rendering_helper.cc',
2188 'gpu/rendering_helper.h',
2189 'gpu/video_accelerator_unittest_helpers.h',
2190 'gpu/video_decode_accelerator_unittest.cc',
2191 ],
2192 'conditions': [
2193 ['OS=="android"', {
2194 'sources/': [
2195 ['exclude', '^gpu/rendering_helper.h'],
2196 ['exclude', '^gpu/rendering_helper.cc'],
2197 ['exclude', '^gpu/video_decode_accelerator_unittest.cc'],
2198 ],
2199 'dependencies': [
2200 '../media/media.gyp:player_android',
2201 '../testing/gmock.gyp:gmock',
2202 '../testing/android/native_test.gyp:native_test_native_code',
2203 '../gpu/gpu.gyp:gpu_unittest_utils',
2204 ],
2205 }, { # OS!="android"
2206 'sources/': [
2207 ['exclude', '^gpu/android_video_decode_accelerator_unittest.cc '],
2208 ],
2209 }],
2210 ['OS=="win"', {
2211 'dependencies': [
2212 '<(angle_path)/src/angle.gyp:libEGL',
2213 '<(angle_path)/src/angle.gyp:libGLESv2',
2214 ],
2215 }],
2216 ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
2217 'include_dirs': [
2218 '<(DEPTH)/third_party/libva',
2219 ],
2220 }],
2221 ['use_x11==1', {
2222 'dependencies': [
2223 '../build/linux/system.gyp:x11', # Used by rendering_helper.c c
2224 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
2225 ],
2226 }],
2227 ['use_ozone==1 and chromeos==1', {
2228 'dependencies': [
2229 '../ui/display/display.gyp:display', # Used by rendering_help er.cc
2230 '../ui/ozone/ozone.gyp:ozone', # Used by rendering_helper.cc
2231 ],
2232 }],
2233 ],
2234 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2235 'msvs_disabled_warnings': [ 4267 ],
2236 },
2237 ],
2238 }],
2239 ['OS=="android"', {
2240 'targets': [
2241 {
2242 'target_name': 'video_decode_accelerator_unittest_apk',
2243 'type': 'none',
2244 'dependencies': [
2245 'video_decode_accelerator_unittest',
2246 ],
2247 'variables': {
2248 'test_suite_name': 'video_decode_accelerator_unittest',
2249 },
2250 'includes': [ '../build/apk_test.gypi' ],
2251 },
2252 ],
2253 }],
2254
2255 ['chromeos==1 and target_arch != "arm"', {
2256 'targets': [
2257 {
2258 'target_name': 'vaapi_jpeg_decoder_unittest',
2259 'type': '<(gtest_target_type)',
2260 'dependencies': [
2261 '../media/media.gyp:media_gpu',
2262 '../base/base.gyp:base',
2263 '../media/media.gyp:media',
2264 '../media/media.gyp:media_test_support',
2265 '../testing/gtest.gyp:gtest',
2266 ],
2267 'sources': [
2268 'gpu/vaapi_jpeg_decoder_unittest.cc',
2269 ],
2270 'include_dirs': [
2271 '<(DEPTH)/third_party/libva',
2272 ],
2273 'conditions': [
2274 ['use_x11==1', {
2275 'dependencies': [
2276 '../build/linux/system.gyp:x11',
2277 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
2278 ]
2279 }, {
2280 'dependencies': [
2281 '../build/linux/system.gyp:libdrm',
2282 ]
2283 }],
2284 ],
2285 }
2286 ]
2287 }],
2087 ], 2288 ],
2088 } 2289 }
OLDNEW
« no previous file with comments | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/media_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698