summaryrefslogtreecommitdiffstats
path: root/third_party/opus
diff options
context:
space:
mode:
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-26 07:22:48 +0000
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-26 07:22:48 +0000
commiteb71e02f458da73701713b25e509a9b452b8bb92 (patch)
treeaa35933ac58bbbdebeecc2ab19dca0314940e759 /third_party/opus
parent302b22daf66e7303115647bcad10272412e2dd0b (diff)
downloadchromium_src-eb71e02f458da73701713b25e509a9b452b8bb92.zip
chromium_src-eb71e02f458da73701713b25e509a9b452b8bb92.tar.gz
chromium_src-eb71e02f458da73701713b25e509a9b452b8bb92.tar.bz2
Roll Opus 162558:164159
The only difference in the new version is that opus_define.h doesn't try to redefine OPUS_EXPORT, so now it is possible to define it in opus.gyp, and the overrides hack is no longer needed. Review URL: https://codereview.chromium.org/11274054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/opus')
-rw-r--r--third_party/opus/opus.gyp4
-rw-r--r--third_party/opus/overrides/include/opus_defines.h21
2 files changed, 1 insertions, 24 deletions
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
index ffd84c7..138e55f 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -14,6 +14,7 @@
'type': 'static_library',
'defines': [
'OPUS_BUILD',
+ 'OPUS_EXPORT=',
'WORDS_BIGENDIAN',
],
'conditions': [
@@ -34,8 +35,6 @@
}],
],
'include_dirs': [
- '../..',
- 'overrides/include',
'src/celt',
'src/include',
'src/silk',
@@ -43,7 +42,6 @@
],
'direct_dependent_settings': {
'include_dirs': [
- 'overrides/include',
'src/include',
],
},
diff --git a/third_party/opus/overrides/include/opus_defines.h b/third_party/opus/overrides/include/opus_defines.h
deleted file mode 100644
index 205ede8..0000000
--- a/third_party/opus/overrides/include/opus_defines.h
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// HACK: This is a hack to make sure that we don't export opus symbols.
-// opus_defines.h sets OPUS_EXPORT only when OPUS_BUILD is defined.
-//
-// TODO(sergeyu): Fix opus to define OPUS_EXPORT only when it's not defined, add
-// OPUS_EXPORT='' define in opus.gyp and then remove this file.
-
-#if defined(OPUS_BUILD)
-#undef OPUS_BUILD
-#define OPUS_BUILD_DEFINED
-#endif // defined(OPUS_BUILD)
-
-#include "third_party/opus/src/include/opus_defines.h"
-
-#if defined(OPUS_BUILD_DEFINED)
-#undef OPUS_BUILD_DEFINED
-#define OPUS_BUILD
-#endif // defined(OPUS_BUILD_DEFINED)