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

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 1399363002: Add ffmpeg (chromium's branch) to third_party for use in mojo media. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 if (target_os == "") { 5 if (target_os == "") {
6 target_os = host_os 6 target_os = host_os
7 } 7 }
8 8
9 if (target_cpu == "") { 9 if (target_cpu == "") {
10 if (target_os == "android") { 10 if (target_os == "android") {
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 # Optimizations and debug checking. 419 # Optimizations and debug checking.
420 if (is_debug) { 420 if (is_debug) {
421 _native_compiler_configs += [ "//build/config:debug" ] 421 _native_compiler_configs += [ "//build/config:debug" ]
422 _default_optimization_config = "//build/config/compiler:no_optimize" 422 _default_optimization_config = "//build/config/compiler:no_optimize"
423 } else { 423 } else {
424 _native_compiler_configs += [ "//build/config:release" ] 424 _native_compiler_configs += [ "//build/config:release" ]
425 _default_optimization_config = "//build/config/compiler:optimize" 425 _default_optimization_config = "//build/config/compiler:optimize"
426 } 426 }
427 _native_compiler_configs += [ _default_optimization_config ] 427 _native_compiler_configs += [ _default_optimization_config ]
428 428
429 # //third_party/ffmpeg/BUILD.gn wants to remove this, add it. Does nothing.
brettw 2015/10/13 21:35:36 You should migrate to Chrome's configuration for t
430 _native_compiler_configs += [ "//build/config/compiler:default_optimization" ]
431
429 # If it wasn't manually set, set to an appropriate default. 432 # If it wasn't manually set, set to an appropriate default.
430 if (symbol_level == -1) { 433 if (symbol_level == -1) {
431 # Linux is slowed by having symbols as part of the target binary, whereas 434 # Linux is slowed by having symbols as part of the target binary, whereas
432 # Mac and Windows have them separate, so in Release Linux, default them off. 435 # Mac and Windows have them separate, so in Release Linux, default them off.
433 if (is_debug || !is_linux) { 436 if (is_debug || !is_linux) {
434 symbol_level = 2 437 symbol_level = 2
435 } else if (is_asan || is_lsan || is_tsan || is_msan) { 438 } else if (is_asan || is_lsan || is_tsan || is_msan) {
436 # Sanitizers require symbols for filename suppressions to work. 439 # Sanitizers require symbols for filename suppressions to work.
437 symbol_level = 1 440 symbol_level = 1
438 } else { 441 } else {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 } 793 }
791 if (defined(invoker.testonly)) { 794 if (defined(invoker.testonly)) {
792 testonly = invoker.testonly 795 testonly = invoker.testonly
793 } 796 }
794 if (defined(invoker.visibility)) { 797 if (defined(invoker.visibility)) {
795 visibility = invoker.visibility 798 visibility = invoker.visibility
796 } 799 }
797 } 800 }
798 } 801 }
799 } 802 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698