Index: third_party/opus/opus.gyp |
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp |
index 5fdeea6e230ea7176fcf06f392a8bf27107c2d58..bb3df418e699d04b8f59f1862eb9204b659a0bb5 100644 |
--- a/third_party/opus/opus.gyp |
+++ b/third_party/opus/opus.gyp |
@@ -207,5 +207,129 @@ |
'src/silk', |
], |
}, # target opus_demo |
+ { |
+ 'target_name': 'test_opus_api', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'opus' |
+ ], |
+ 'conditions': [ |
+ ['OS == "win"', { |
+ 'defines': [ |
Sergey Ulanov
2015/01/29 18:12:20
maybe put this in target_defaults?
Same for androi
wtc
2015/01/29 21:11:33
Done. Thanks a lot for the suggestion.
|
+ 'inline=__inline', |
+ ], |
+ }], |
+ ['OS=="android"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-llog', |
+ ], |
+ }, |
+ }], |
+ ['clang==1', { |
+ 'cflags': [ '-Wno-absolute-value' ], |
+ }] |
+ ], |
+ 'sources': [ |
+ 'src/tests/test_opus_api.c', |
+ ], |
+ 'include_dirs': [ |
+ 'src/celt', |
+ 'src/silk', |
+ ], |
+ }, # target test_opus_api |
+ { |
+ 'target_name': 'test_opus_encode', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'opus' |
+ ], |
+ 'conditions': [ |
+ ['OS == "win"', { |
+ 'defines': [ |
+ 'inline=__inline', |
+ ], |
+ }], |
+ ['OS=="android"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-llog', |
+ ], |
+ }, |
+ }], |
+ ['clang==1', { |
+ 'cflags': [ '-Wno-absolute-value' ], |
+ }] |
+ ], |
+ 'sources': [ |
+ 'src/tests/test_opus_encode.c', |
+ ], |
+ 'include_dirs': [ |
+ 'src/celt', |
+ 'src/silk', |
+ ], |
+ }, # target test_opus_encode |
+ { |
+ 'target_name': 'test_opus_decode', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'opus' |
+ ], |
+ 'conditions': [ |
+ ['OS == "win"', { |
+ 'defines': [ |
+ 'inline=__inline', |
+ ], |
+ }], |
+ ['OS=="android"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-llog', |
+ ], |
+ }, |
+ }], |
+ ['clang==1', { |
+ 'cflags': [ '-Wno-absolute-value' ], |
+ }] |
+ ], |
+ 'sources': [ |
+ 'src/tests/test_opus_decode.c', |
+ ], |
+ 'include_dirs': [ |
+ 'src/celt', |
+ 'src/silk', |
+ ], |
+ }, # target test_opus_decode |
+ { |
+ 'target_name': 'test_opus_padding', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'opus' |
+ ], |
+ 'conditions': [ |
+ ['OS == "win"', { |
+ 'defines': [ |
+ 'inline=__inline', |
+ ], |
+ }], |
+ ['OS=="android"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-llog', |
+ ], |
+ }, |
+ }], |
+ ['clang==1', { |
+ 'cflags': [ '-Wno-absolute-value' ], |
+ }] |
+ ], |
+ 'sources': [ |
+ 'src/tests/test_opus_padding.c', |
+ ], |
+ 'include_dirs': [ |
+ 'src/celt', |
+ 'src/silk', |
+ ], |
+ }, # target test_opus_padding |
] |
} |