| Index: third_party/opus/opus.gyp
|
| diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
|
| index c11c9e13a81ee329048a06c508a7a5990e88e050..d1df5e27c16e90bae0b5fe704f3960d6be3b4c70 100644
|
| --- a/third_party/opus/opus.gyp
|
| +++ b/third_party/opus/opus.gyp
|
| @@ -12,17 +12,41 @@
|
| {
|
| 'target_name': 'opus',
|
| 'type': 'static_library',
|
| + 'defines': [
|
| + 'OPUS_BUILD',
|
| + 'WORDS_BIGENDIAN',
|
| + ],
|
| + 'conditions': [
|
| + ['OS!="win"', {
|
| + 'defines': [
|
| + 'HAVE_LRINT',
|
| + 'HAVE_LRINTF',
|
| + 'VAR_ARRAYS',
|
| + ],
|
| + }, {
|
| + 'defines': [
|
| + 'USE_ALLOCA',
|
| + 'inline=__inline',
|
| + ],
|
| + 'msvs_disabled_warnings': [
|
| + 4305, # Disable truncation warning in celt/pitch.c .
|
| + ],
|
| + }],
|
| + ],
|
| 'include_dirs': [
|
| + '../..',
|
| + 'overrides/include',
|
| 'src/celt',
|
| 'src/include',
|
| 'src/silk',
|
| 'src/silk/float',
|
| ],
|
| - 'defines': [
|
| - 'OPUS_BUILD',
|
| - 'VAR_ARRAYS',
|
| - 'WORDS_BIGENDIAN',
|
| - ],
|
| + 'direct_dependent_settings': {
|
| + 'include_dirs': [
|
| + 'overrides/include',
|
| + 'src/include',
|
| + ],
|
| + },
|
| 'sources': [
|
| 'src/celt/_kiss_fft_guts.h',
|
| 'src/celt/arch.h',
|
| @@ -210,14 +234,6 @@
|
| 'src/src/opus_multistream.c',
|
| 'src/src/repacketizer.c',
|
| ],
|
| - 'conditions': [
|
| - ['os_posix == 1', {
|
| - 'defines': [
|
| - 'HAVE_LRINT',
|
| - 'HAVE_LRINTF',
|
| - ],
|
| - }],
|
| - ],
|
| }, # target opus
|
| ]
|
| }, { # use_system_opus != 0
|
|
|