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

Side by Side Diff: media/base/BUILD.gn

Issue 516543004: Cleanup: Remove unneeded media/ SSE2 checks and unused code. (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 6 years, 3 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 | « no previous file | media/base/simd/convert_yuv_to_rgb.h » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/config/linux/pkg_config.gni") 8 import("//build/config/linux/pkg_config.gni")
9 import("//media/media_options.gni") 9 import("//media/media_options.gni")
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } else if (is_win) { 202 } else if (is_win) {
203 sources += [ "user_input_monitor_win.cc" ] 203 sources += [ "user_input_monitor_win.cc" ]
204 } else { 204 } else {
205 defines += [ "DISABLE_USER_INPUT_MONITOR" ] 205 defines += [ "DISABLE_USER_INPUT_MONITOR" ]
206 } 206 }
207 207
208 if (cpu_arch == "x86" || cpu_arch == "x64") { 208 if (cpu_arch == "x86" || cpu_arch == "x64") {
209 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ] 209 sources += [ "simd/convert_yuv_to_rgb_x86.cc" ]
210 deps += [ 210 deps += [
211 ":media_yasm", 211 ":media_yasm",
212 ":media_mmx",
213 ":media_sse2", 212 ":media_sse2",
214 ] 213 ]
215 } 214 }
216 215
217 if (is_linux || is_win) { 216 if (is_linux || is_win) {
218 sources += [ 217 sources += [
219 "keyboard_event_counter.cc", 218 "keyboard_event_counter.cc",
220 "keyboard_event_counter.h", 219 "keyboard_event_counter.h",
221 ] 220 ]
222 } 221 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 "demuxer_perftest.cc", 343 "demuxer_perftest.cc",
345 ] 344 ]
346 } 345 }
347 346
348 if (is_android) { 347 if (is_android) {
349 deps += [ "//ui/gl"] 348 deps += [ "//ui/gl"]
350 } 349 }
351 } 350 }
352 351
353 if (cpu_arch == "x86" || cpu_arch == "x64") { 352 if (cpu_arch == "x86" || cpu_arch == "x64") {
354 source_set("media_mmx") {
355 sources = [ "simd/filter_yuv_mmx.cc" ]
356 configs += [ "//media:media_config" ]
357 if (!is_win) {
358 cflags = [ "-mmmx" ]
359 }
360 }
361
362 source_set("media_sse2") { 353 source_set("media_sse2") {
363 sources = [ 354 sources = [
364 "simd/convert_rgb_to_yuv_sse2.cc", 355 "simd/convert_rgb_to_yuv_sse2.cc",
365 "simd/convert_rgb_to_yuv_ssse3.cc", 356 "simd/convert_rgb_to_yuv_ssse3.cc",
366 "simd/filter_yuv_sse2.cc", 357 "simd/filter_yuv_sse2.cc",
367 ] 358 ]
368 configs += [ "//media:media_config" ] 359 configs += [ "//media:media_config" ]
369 if (!is_win) { 360 if (!is_win) {
370 cflags = [ "-msse2" ] 361 cflags = [ "-msse2" ]
371 } 362 }
372 } 363 }
373 364
374 import("//third_party/yasm/yasm_assemble.gni") 365 import("//third_party/yasm/yasm_assemble.gni")
375 yasm_assemble("media_yasm") { 366 yasm_assemble("media_yasm") {
376 sources = [ 367 sources = [
377 "simd/convert_rgb_to_yuv_ssse3.asm", 368 "simd/convert_rgb_to_yuv_ssse3.asm",
378 "simd/convert_yuv_to_rgb_mmx.asm",
379 "simd/convert_yuv_to_rgb_sse.asm", 369 "simd/convert_yuv_to_rgb_sse.asm",
380 "simd/convert_yuva_to_argb_mmx.asm", 370 "simd/convert_yuva_to_argb_mmx.asm",
381 "simd/empty_register_state_mmx.asm", 371 "simd/empty_register_state_mmx.asm",
382 "simd/linear_scale_yuv_to_rgb_mmx.asm", 372 "simd/linear_scale_yuv_to_rgb_mmx.asm",
383 "simd/linear_scale_yuv_to_rgb_sse.asm", 373 "simd/linear_scale_yuv_to_rgb_sse.asm",
384 "simd/scale_yuv_to_rgb_mmx.asm", 374 "simd/scale_yuv_to_rgb_mmx.asm",
385 "simd/scale_yuv_to_rgb_sse.asm", 375 "simd/scale_yuv_to_rgb_sse.asm",
386 ] 376 ]
387 377
388 # TODO(ajwong): Only export if shared_library build... 378 # TODO(ajwong): Only export if shared_library build...
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (is_posix) { 413 if (is_posix) {
424 yasm_flags += [ "-DELF" ] 414 yasm_flags += [ "-DELF" ]
425 if (cpu_arch == "x64") { 415 if (cpu_arch == "x64") {
426 # TODO(ajwong): Why isn't this true in mac? 416 # TODO(ajwong): Why isn't this true in mac?
427 yasm_flags += [ "-DPIC" ] 417 yasm_flags += [ "-DPIC" ]
428 } 418 }
429 } 419 }
430 } 420 }
431 } 421 }
432 } 422 }
OLDNEW
« no previous file with comments | « no previous file | media/base/simd/convert_yuv_to_rgb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698