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

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

Issue 402683003: Fix most GN clang errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« breakpad/BUILD.gn ('K') | « media/audio/pulse/audio_manager_pulse.cc ('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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 defines = [ 46 defines = [
47 "OPUS_BUILD", 47 "OPUS_BUILD",
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" ]
57 configs += [ "//build/config/compiler:no_chromium_code" ]
56 direct_dependent_configs = [ ":opus_config" ] 58 direct_dependent_configs = [ ":opus_config" ]
57 59
58 if (is_win) { 60 if (is_win) {
59 defines += [ 61 defines += [
60 "USE_ALLOCA", 62 "USE_ALLOCA",
61 "inline=__inline", 63 "inline=__inline",
62 ] 64 ]
63 65
64 cflags = [ 66 cflags = [
65 "/wd4305", # Disable truncation warning in celt/pitch.c . 67 "/wd4305", # Disable truncation warning in celt/pitch.c .
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 deps = [ ":convert_rtcd_assembler" ] 136 deps = [ ":convert_rtcd_assembler" ]
135 } 137 }
136 } 138 }
137 } 139 }
138 140
139 executable("opus_demo") { 141 executable("opus_demo") {
140 sources = [ 142 sources = [
141 "src/src/opus_demo.c", 143 "src/src/opus_demo.c",
142 ] 144 ]
143 145
146 configs -= [ "//build/config/compiler:chromium_code" ]
147 configs += [ "//build/config/compiler:no_chromium_code" ]
148
144 include_dirs = [ 149 include_dirs = [
145 "src/celt", 150 "src/celt",
146 "src/silk", 151 "src/silk",
147 ] 152 ]
148 153
149 if (is_win) { 154 if (is_win) {
150 defines = [ "inline=__inline" ] 155 defines = [ "inline=__inline" ]
151 } 156 }
152 if (is_android) { 157 if (is_android) {
153 libs = [ "log" ] 158 libs = [ "log" ]
154 } 159 }
155 160
156 deps = [ ":opus" ] 161 deps = [ ":opus" ]
157 } 162 }
OLDNEW
« breakpad/BUILD.gn ('K') | « media/audio/pulse/audio_manager_pulse.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698