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

Side by Side Diff: third_party/opus/BUILD.gn

Issue 1324623005: Move sanitizer and symbol flags out of BUILDCONFIG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/brotli/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('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/arm.gni") 5 import("//build/config/arm.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 # If fixed point implementation shall be used (otherwise float). 8 # If fixed point implementation shall be used (otherwise float).
9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64"
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 if (is_posix && !is_android) { 94 if (is_posix && !is_android) {
95 # Suppress a warning given by opus_decoder.c that tells us 95 # Suppress a warning given by opus_decoder.c that tells us
96 # optimizations are turned off. 96 # optimizations are turned off.
97 cflags = [ "-Wno-#pragma-messages" ] 97 cflags = [ "-Wno-#pragma-messages" ]
98 } 98 }
99 99
100 if (!is_debug && is_posix && 100 if (!is_debug && is_posix &&
101 (current_cpu == "arm" || current_cpu == "arm64")) { 101 (current_cpu == "arm" || current_cpu == "arm64")) {
102 configs -= [ "//build/config/compiler:optimize" ] 102 configs -= [ "//build/config/compiler:default_optimization" ]
103 configs += [ "//build/config/compiler:optimize_max" ] 103 configs += [ "//build/config/compiler:optimize_max" ]
104 } 104 }
105 105
106 if (use_opus_fixed_point) { 106 if (use_opus_fixed_point) {
107 sources += gypi_values.opus_fixed_sources 107 sources += gypi_values.opus_fixed_sources
108 108
109 defines += [ "FIXED_POINT" ] 109 defines += [ "FIXED_POINT" ]
110 110
111 include_dirs += [ "src/silk/fixed" ] 111 include_dirs += [ "src/silk/fixed" ]
112 } else { 112 } else {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 configs -= [ "//build/config/compiler:chromium_code" ] 254 configs -= [ "//build/config/compiler:chromium_code" ]
255 configs += [ 255 configs += [
256 "//build/config/compiler:no_chromium_code", 256 "//build/config/compiler:no_chromium_code",
257 ":opus_test_config", 257 ":opus_test_config",
258 ] 258 ]
259 259
260 deps = [ 260 deps = [
261 ":opus", 261 ":opus",
262 ] 262 ]
263 } 263 }
OLDNEW
« no previous file with comments | « third_party/brotli/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698