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