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