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

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

Issue 471753002: gn win: Don't add linux-style cflags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 if (is_android) { 346 if (is_android) {
347 deps += [ "//ui/gl"] 347 deps += [ "//ui/gl"]
348 } 348 }
349 } 349 }
350 350
351 if (cpu_arch == "x86" || cpu_arch == "x64") { 351 if (cpu_arch == "x86" || cpu_arch == "x64") {
352 source_set("media_mmx") { 352 source_set("media_mmx") {
353 sources = [ "simd/filter_yuv_mmx.cc" ] 353 sources = [ "simd/filter_yuv_mmx.cc" ]
354 configs += [ "//media:media_config" ] 354 configs += [ "//media:media_config" ]
355 cflags = [ "-mmmx" ] 355 if (!is_win) {
356 cflags = [ "-mmmx" ]
scottmg 2014/08/13 23:25:35 This is a bit tricky, 'cflags' is ignored in gyp o
DaleCurtis 2014/08/14 00:23:26 Does msvc require a similar setting?
357 }
356 } 358 }
357 359
358 source_set("media_sse2") { 360 source_set("media_sse2") {
359 sources = [ 361 sources = [
360 "simd/convert_rgb_to_yuv_sse2.cc", 362 "simd/convert_rgb_to_yuv_sse2.cc",
361 "simd/convert_rgb_to_yuv_ssse3.cc", 363 "simd/convert_rgb_to_yuv_ssse3.cc",
362 "simd/filter_yuv_sse2.cc", 364 "simd/filter_yuv_sse2.cc",
363 ] 365 ]
364 configs += [ "//media:media_config" ] 366 configs += [ "//media:media_config" ]
365 cflags = [ "-msse2" ] 367 if (!is_win) {
368 cflags = [ "-msse2" ]
369 }
366 } 370 }
367 371
368 import("//third_party/yasm/yasm_assemble.gni") 372 import("//third_party/yasm/yasm_assemble.gni")
369 yasm_assemble("media_yasm") { 373 yasm_assemble("media_yasm") {
370 sources = [ 374 sources = [
371 "simd/convert_rgb_to_yuv_ssse3.asm", 375 "simd/convert_rgb_to_yuv_ssse3.asm",
372 "simd/convert_yuv_to_rgb_mmx.asm", 376 "simd/convert_yuv_to_rgb_mmx.asm",
373 "simd/convert_yuv_to_rgb_sse.asm", 377 "simd/convert_yuv_to_rgb_sse.asm",
374 "simd/convert_yuva_to_argb_mmx.asm", 378 "simd/convert_yuva_to_argb_mmx.asm",
375 "simd/empty_register_state_mmx.asm", 379 "simd/empty_register_state_mmx.asm",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (is_posix) { 421 if (is_posix) {
418 yasm_flags += [ "-DELF" ] 422 yasm_flags += [ "-DELF" ]
419 if (cpu_arch == "x64") { 423 if (cpu_arch == "x64") {
420 # TODO(ajwong): Why isn't this true in mac? 424 # TODO(ajwong): Why isn't this true in mac?
421 yasm_flags += [ "-DPIC" ] 425 yasm_flags += [ "-DPIC" ]
422 } 426 }
423 } 427 }
424 } 428 }
425 } 429 }
426 } 430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698