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

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

Issue 595073002: Replace forward_dependent_configs with public_deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « third_party/npapi/BUILD.gn ('k') | third_party/protobuf/BUILD.gn » ('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 6
7 # If fixed point implementation shall be used (otherwise float). 7 # If fixed point implementation shall be used (otherwise float).
8 use_opus_fixed_point = ((is_android || is_chromeos || 8 use_opus_fixed_point = ((is_android || is_chromeos ||
9 (is_ios && arm_version == 7)) && cpu_arch == "arm") 9 (is_ios && arm_version == 7)) && cpu_arch == "arm")
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 "OPUS_EXPORT=", 48 "OPUS_EXPORT=",
49 ] 49 ]
50 50
51 include_dirs = [ 51 include_dirs = [
52 "src/celt", 52 "src/celt",
53 "src/silk", 53 "src/silk",
54 ] 54 ]
55 55
56 configs -= [ "//build/config/compiler:chromium_code" ] 56 configs -= [ "//build/config/compiler:chromium_code" ]
57 configs += [ "//build/config/compiler:no_chromium_code" ] 57 configs += [ "//build/config/compiler:no_chromium_code" ]
58 direct_dependent_configs = [ ":opus_config" ] 58 public_configs = [ ":opus_config" ]
59 59
60 if (is_win) { 60 if (is_win) {
61 defines += [ 61 defines += [
62 "USE_ALLOCA", 62 "USE_ALLOCA",
63 "inline=__inline", 63 "inline=__inline",
64 ] 64 ]
65 65
66 cflags = [ 66 cflags = [
67 "/wd4305", # Disable truncation warning in celt/pitch.c . 67 "/wd4305", # Disable truncation warning in celt/pitch.c .
68 "/wd4334", # Disable 32-bit shift warning in src/opus_encoder.c . 68 "/wd4334", # Disable 32-bit shift warning in src/opus_encoder.c .
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 if (is_android) { 157 if (is_android) {
158 libs = [ "log" ] 158 libs = [ "log" ]
159 } 159 }
160 if (is_clang) { 160 if (is_clang) {
161 cflags = [ "-Wno-absolute-value" ] 161 cflags = [ "-Wno-absolute-value" ]
162 } 162 }
163 163
164 deps = [ ":opus" ] 164 deps = [ ":opus" ]
165 } 165 }
OLDNEW
« no previous file with comments | « third_party/npapi/BUILD.gn ('k') | third_party/protobuf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698