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

Side by Side Diff: build/config/compiler/BUILD.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
« build/config/BUILDCONFIG.gn ('K') | « build/config/BUILDCONFIG.gn ('k') | 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 (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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 # Note that this can be applied regardless of platform and architecture to 1062 # Note that this can be applied regardless of platform and architecture to
1063 # clean up the call sites. This will only apply the flag when necessary. 1063 # clean up the call sites. This will only apply the flag when necessary.
1064 # 1064 #
1065 # TODO(jschuh): crbug.com/167187 fix this and delete this config. 1065 # TODO(jschuh): crbug.com/167187 fix this and delete this config.
1066 config("no_size_t_to_int_warning") { 1066 config("no_size_t_to_int_warning") {
1067 if (is_win && current_cpu == "x64") { 1067 if (is_win && current_cpu == "x64") {
1068 cflags = [ "/wd4267" ] 1068 cflags = [ "/wd4267" ]
1069 } 1069 }
1070 } 1070 }
1071 1071
1072 # Some code presumes that pointers to structures/objects are compatible
1073 # regardless of whether what they point to is already known to be valid.
1074 # gcc 4.9 and earlier had no way of suppressing this warning without
1075 # supressing the rest of them. Here we centralize the identification of
1076 # the gcc 4.9 toolchains.
jamesr 2015/10/13 00:13:56 I'm pretty sure we will never use a gcc 4.9 toolch
1077 config("no_incompatible_pointer_warnings") {
1078 cflags = []
1079 if (is_clang) {
1080 cflags += [ "-Wno-incompatible-pointer-types" ]
1081 } else if (current_cpu == "mipsel") {
jamesr 2015/10/13 00:13:56 we aren't building anything targeting mips
1082 cflags += [ "-w" ]
1083 } else if (is_chromeos && current_cpu == "arm") {
jamesr 2015/10/13 00:13:56 we aren't building for chromeos
1084 cflags += [ "-w" ]
1085 }
jamesr 2015/10/13 00:13:56 was there supposed to be something gcc 4.9 related
1086 }
1087
1088 # //third_party/ffmpeg/BUILD.gn wants to remove this, so we need a placeholder.
1089 config("default_optimization") {
1090 }
1091
1072 # Optimization ----------------------------------------------------------------- 1092 # Optimization -----------------------------------------------------------------
1073 # 1093 #
1074 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" 1094 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config"
1075 # which it will assign to the config it implicitly applies to every target. If 1095 # which it will assign to the config it implicitly applies to every target. If
1076 # you want to override the optimization level for your target, remove this 1096 # you want to override the optimization level for your target, remove this
1077 # config (which will expand differently for debug or release builds), and then 1097 # config (which will expand differently for debug or release builds), and then
1078 # add back the one you want to override it with: 1098 # add back the one you want to override it with:
1079 # 1099 #
1080 # configs -= default_optimization_config 1100 # configs -= default_optimization_config
1081 # configs += [ "//build/config/compiler/optimize_max" ] 1101 # configs += [ "//build/config/compiler/optimize_max" ]
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 cflags += [ "-gsplit-dwarf" ] 1266 cflags += [ "-gsplit-dwarf" ]
1247 } 1267 }
1248 } 1268 }
1249 } 1269 }
1250 1270
1251 config("no_symbols") { 1271 config("no_symbols") {
1252 if (!is_win) { 1272 if (!is_win) {
1253 cflags = [ "-g0" ] 1273 cflags = [ "-g0" ]
1254 } 1274 }
1255 } 1275 }
OLDNEW
« build/config/BUILDCONFIG.gn ('K') | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698