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

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

Issue 2152033002: Convert third_party source sets to static libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 4 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
« no previous file with comments | « third_party/modp_b64/BUILD.gn ('k') | third_party/ots/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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 } 57 }
58 58
59 config("opus_warnings") { 59 config("opus_warnings") {
60 if (is_clang && !is_nacl) { 60 if (is_clang && !is_nacl) {
61 # TODO(thakis): Remove once silk/macros.h has been fixed 61 # TODO(thakis): Remove once silk/macros.h has been fixed
62 cflags = [ "-Wno-expansion-to-defined" ] 62 cflags = [ "-Wno-expansion-to-defined" ]
63 } 63 }
64 } 64 }
65 65
66 source_set("opus") { 66 static_library("opus") {
67 gypi_values = exec_script("//build/gypi_to_gn.py", 67 gypi_values = exec_script("//build/gypi_to_gn.py",
68 [ rebase_path("opus_srcs.gypi") ], 68 [ rebase_path("opus_srcs.gypi") ],
69 "scope", 69 "scope",
70 [ "opus_srcs.gypi" ]) 70 [ "opus_srcs.gypi" ])
71 sources = gypi_values.opus_common_sources 71 sources = gypi_values.opus_common_sources
72 72
73 defines = [ 73 defines = [
74 "OPUS_BUILD", 74 "OPUS_BUILD",
75 "OPUS_EXPORT=", 75 "OPUS_EXPORT=",
76 ] 76 ]
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 configs -= [ "//build/config/compiler:chromium_code" ] 290 configs -= [ "//build/config/compiler:chromium_code" ]
291 configs += [ 291 configs += [
292 "//build/config/compiler:no_chromium_code", 292 "//build/config/compiler:no_chromium_code",
293 ":opus_test_config", 293 ":opus_test_config",
294 ] 294 ]
295 295
296 deps = [ 296 deps = [
297 ":opus", 297 ":opus",
298 ] 298 ]
299 } 299 }
OLDNEW
« no previous file with comments | « third_party/modp_b64/BUILD.gn ('k') | third_party/ots/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698