Browse Source

opus: Move public headers to match system install

Rémi Verschelde 8 years ago
parent
commit
611a94e3a6

+ 1 - 0
modules/opus/SCsub

@@ -201,6 +201,7 @@ if (env['builtin_opus'] != 'no'):
     thirdparty_include_paths = [
     thirdparty_include_paths = [
         "",
         "",
         "celt",
         "celt",
+        "opus",
         "silk",
         "silk",
         "silk/fixed",
         "silk/fixed",
         "silk/float",
         "silk/float",

+ 1 - 1
modules/opus/audio_stream_opus.h

@@ -36,7 +36,7 @@
 #include "os/file_access.h"
 #include "os/file_access.h"
 #include "scene/resources/audio_stream.h"
 #include "scene/resources/audio_stream.h"
 
 
-#include <opusfile.h>
+#include <opus/opusfile.h>
 
 
 class AudioStreamPlaybackOpus : public AudioStreamPlayback {
 class AudioStreamPlaybackOpus : public AudioStreamPlayback {
 
 

+ 1 - 1
modules/webm/SCsub

@@ -24,7 +24,7 @@ if (env['builtin_libogg'] != 'no'):
 if (env['builtin_libvorbis'] != 'no'):
 if (env['builtin_libvorbis'] != 'no'):
     env_webm.Append(CPPPATH=["#thirdparty/libvorbis"])
     env_webm.Append(CPPPATH=["#thirdparty/libvorbis"])
 if (env['builtin_opus'] != 'no'):
 if (env['builtin_opus'] != 'no'):
-    env_webm.Append(CPPPATH=["#thirdparty"])
+    env_webm.Append(CPPPATH=["#thirdparty/opus"])
 
 
 if (env['builtin_libvpx'] != 'no'):
 if (env['builtin_libvpx'] != 'no'):
     Export('env_webm')
     Export('env_webm')

+ 1 - 1
thirdparty/README.md

@@ -158,7 +158,7 @@ Files extracted from upstream source:
 
 
 - all .c and .h files in src/ (both opus and opusfile),
 - all .c and .h files in src/ (both opus and opusfile),
   except `opus_demo.c`
   except `opus_demo.c`
-- all .h files in include/ (both opus and opusfile)
+- all .h files in include/ (both opus and opusfile) as opus/
 - COPYING
 - COPYING
 
 
 
 

+ 0 - 0
thirdparty/opus/opus.h → thirdparty/opus/opus/opus.h


+ 0 - 0
thirdparty/opus/opus_custom.h → thirdparty/opus/opus/opus_custom.h


+ 0 - 0
thirdparty/opus/opus_defines.h → thirdparty/opus/opus/opus_defines.h


+ 0 - 0
thirdparty/opus/opus_multistream.h → thirdparty/opus/opus/opus_multistream.h


+ 0 - 0
thirdparty/opus/opus_types.h → thirdparty/opus/opus/opus_types.h


+ 0 - 0
thirdparty/opus/opusfile.h → thirdparty/opus/opus/opusfile.h