diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 20:10:51 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 20:10:51 +0000 |
commit | f88b25c2c86cb159bc24bc910d8ba0a87762416f (patch) | |
tree | ba9076c9f85367d2e6593f5449f069debb9d8ae4 | |
parent | eb79979c87ed35be19baad1ca0e8103e1c3de0a3 (diff) | |
download | chromium_src-f88b25c2c86cb159bc24bc910d8ba0a87762416f.zip chromium_src-f88b25c2c86cb159bc24bc910d8ba0a87762416f.tar.gz chromium_src-f88b25c2c86cb159bc24bc910d8ba0a87762416f.tar.bz2 |
Linux: use generated shim headers for opus.
BUG=165264
Review URL: https://codereview.chromium.org/11635009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173978 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | remoting/codec/audio_decoder_opus.cc | 2 | ||||
-rw-r--r-- | remoting/codec/audio_encoder_opus.cc | 2 | ||||
-rw-r--r-- | third_party/opus/opus.gyp | 14 | ||||
-rw-r--r-- | third_party/opus/opus.h | 12 |
4 files changed, 14 insertions, 16 deletions
diff --git a/remoting/codec/audio_decoder_opus.cc b/remoting/codec/audio_decoder_opus.cc index 888e4bc..abd3456 100644 --- a/remoting/codec/audio_decoder_opus.cc +++ b/remoting/codec/audio_decoder_opus.cc @@ -8,7 +8,7 @@ #include "base/stl_util.h" #include "base/time.h" #include "remoting/proto/audio.pb.h" -#include "third_party/opus/opus.h" +#include "third_party/opus/src/include/opus.h" namespace remoting { diff --git a/remoting/codec/audio_encoder_opus.cc b/remoting/codec/audio_encoder_opus.cc index ab19c94..15160df 100644 --- a/remoting/codec/audio_encoder_opus.cc +++ b/remoting/codec/audio_encoder_opus.cc @@ -9,7 +9,7 @@ #include "base/time.h" #include "media/base/audio_bus.h" #include "media/base/multi_channel_resampler.h" -#include "third_party/opus/opus.h" +#include "third_party/opus/src/include/opus.h" namespace remoting { diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp index 9e2bcf8..d273aab 100644 --- a/third_party/opus/opus.gyp +++ b/third_party/opus/opus.gyp @@ -321,10 +321,20 @@ 'cflags': [ '<!@(pkg-config --cflags opus)', ], - 'defines': [ - 'USE_SYSTEM_OPUS', + }, + 'variables': { + 'headers_root_path': 'src/include', + 'header_filenames': [ + 'opus_custom.h', + 'opus_defines.h', + 'opus_multistream.h', + 'opus_types.h', + 'opus.h', ], }, + 'includes': [ + '../../build/shim_headers.gypi', + ], 'link_settings': { 'ldflags': [ '<!@(pkg-config --libs-only-L --libs-only-other opus)', diff --git a/third_party/opus/opus.h b/third_party/opus/opus.h deleted file mode 100644 index 8e7b483..0000000 --- a/third_party/opus/opus.h +++ /dev/null @@ -1,12 +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. - -// This is a shim header to include the right opus header. -// Use this instead of referencing the opus header directly. - -#if defined(USE_SYSTEM_OPUS) -#include <opus/opus.h> -#else -#include "third_party/opus/src/include/opus.h" -#endif |