Index: third_party/opus/BUILD.gn |
diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn |
index 5ef411f741dfbeb90e85e91a71e43553b4b2534d..2905a4922b30a1a882f4a379c2794ebb642b5932 100644 |
--- a/third_party/opus/BUILD.gn |
+++ b/third_party/opus/BUILD.gn |
@@ -137,6 +137,34 @@ source_set("opus") { |
} |
} |
+executable("opus_compare") { |
wtc
2014/12/10 20:27:35
I copied the opus_demo code and changed "demo" to
|
+ sources = [ |
+ "src/src/opus_compare.c", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ 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", |
+ ] |
+} |
+ |
executable("opus_demo") { |
sources = [ |
"src/src/opus_demo.c", |