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

Unified Diff: third_party/opus/BUILD.gn

Issue 888963002: Revert of Add build targets for Opus tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/opus/opus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/BUILD.gn
diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn
index e202a0345407ff321c493b650a6809fb7b6a0721..8f51d09ffd4bd6f8808bf4054fbcb919465b4795 100644
--- a/third_party/opus/BUILD.gn
+++ b/third_party/opus/BUILD.gn
@@ -4,7 +4,6 @@
import("//build/config/arm.gni")
import("//build/config/mips.gni")
-import("//testing/test.gni")
# If fixed point implementation shall be used (otherwise float).
# TODO(wtc): change "mipselx" to "mipsel" in this file when the compilation
@@ -25,23 +24,6 @@
config("opus_config") {
include_dirs = [ "src/include" ]
-}
-
-config("opus_test_config") {
- include_dirs = [
- "src/celt",
- "src/silk",
- ]
-
- if (is_win) {
- defines = [ "inline=__inline" ]
- }
- if (is_android) {
- libs = [ "log" ]
- }
- if (is_clang) {
- cflags = [ "-Wno-absolute-value" ]
- }
}
if (use_opus_rtcd) {
@@ -191,10 +173,22 @@
]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ include_dirs = [
+ "src/celt",
+ "src/silk",
+ ]
+
+ if (is_win) {
+ defines = [ "inline=__inline" ]
+ }
+ if (is_android) {
+ libs = [ "log" ]
+ }
+ if (is_clang) {
+ cflags = [ "-Wno-absolute-value" ]
+ }
deps = [
":opus",
@@ -207,76 +201,24 @@
]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ include_dirs = [
+ "src/celt",
+ "src/silk",
+ ]
+
+ if (is_win) {
+ defines = [ "inline=__inline" ]
+ }
+ if (is_android) {
+ libs = [ "log" ]
+ }
+ if (is_clang) {
+ cflags = [ "-Wno-absolute-value" ]
+ }
deps = [
":opus",
]
}
-
-test("test_opus_api") {
- sources = [
- "src/tests/test_opus_api.c",
- ]
-
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
-
- deps = [
- ":opus",
- ]
-}
-
-test("test_opus_encode") {
- sources = [
- "src/tests/test_opus_encode.c",
- ]
-
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
-
- deps = [
- ":opus",
- ]
-}
-
-test("test_opus_decode") {
- sources = [
- "src/tests/test_opus_decode.c",
- ]
-
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
-
- deps = [
- ":opus",
- ]
-}
-
-test("test_opus_padding") {
- sources = [
- "src/tests/test_opus_padding.c",
- ]
-
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- "//build/config/compiler:no_chromium_code",
- ":opus_test_config",
- ]
-
- deps = [
- ":opus",
- ]
-}
« no previous file with comments | « no previous file | third_party/opus/opus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698