OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |