Moves the main headers from src/ to include/
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Oct 2011 01:36:57 +0000 (21:36 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Oct 2011 01:36:57 +0000 (21:36 -0400)
16 files changed:
Makefile.am
Makefile.draft
celt/tests/Makefile.am
celt_headers.txt
doc/Doxyfile.in
doc/Makefile.am
doc/build_draft.sh
include/opus.h [moved from src/opus.h with 100% similarity]
include/opus_custom.h [moved from celt/opus_custom.h with 100% similarity]
include/opus_defines.h [moved from celt/opus_defines.h with 100% similarity]
include/opus_multistream.h [moved from src/opus_multistream.h with 100% similarity]
include/opus_types.h [moved from celt/opus_types.h with 100% similarity]
opus_headers.txt
tests/test_opus_api.c
tests/test_opus_decode.c
tests/test_opus_encode.c

index 2309232..056d447 100644 (file)
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libopus.la
 
 SUBDIRS = . celt/tests doc
 
-INCLUDES = -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
 
 include celt_sources.mk
 include silk_sources.mk
@@ -22,7 +22,7 @@ include opus_headers.txt
 
 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
 
-pkginclude_HEADERS = src/opus.h src/opus_multistream.h celt/opus_types.h celt/opus_defines.h
+pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
 
 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
 
@@ -41,17 +41,17 @@ repacketizer_demo_LDADD = libopus.la -lm
 opus_compare_SOURCES = src/opus_compare.c
 opus_compare_LDADD = -lm
 
-test_opus_api_SOURCES = tests/test_opus_api.c
+test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
 test_opus_api_LDADD = libopus.la -lm
 
-test_opus_encode_SOURCES = tests/test_opus_encode.c
+test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
 test_opus_encode_LDADD = libopus.la -lm
 
-test_opus_decode_SOURCES = tests/test_opus_decode.c
+test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
 test_opus_decode_LDADD = libopus.la -lm
 
 if CUSTOM_MODES
-pkginclude_HEADERS += celt/opus_custom.h
+pkginclude_HEADERS += include/opus_custom.h
 noinst_PROGRAMS += opus_custom_demo
 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
 opus_custom_demo_LDADD = libopus.la -lm
index afd026e..4fb6d0e 100644 (file)
@@ -53,7 +53,8 @@ ifdef FIXED_POINT
 CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API
 endif
 
-CINCLUDES += silk/ \
+CINCLUDES += include/ \
+        silk/ \
         silk/float/ \
         silk/fixed/ \
        celt/ \
index 9c4d899..0dfdfd9 100644 (file)
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)/celt
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt
 METASOURCES = AUTO
 
 TESTS = type-test ectest cwrs32-test dft-test laplace-test mdct-test mathops-test rotation-test
index dd9d335..492e87a 100644 (file)
@@ -2,8 +2,8 @@ CELT_HEAD = \
 celt/arch.h \
 celt/bands.h \
 celt/celt.h \
-celt/opus_types.h \
-celt/opus_defines.h \
+include/opus_types.h \
+include/opus_defines.h \
 celt/cwrs.h \
 celt/ecintrin.h \
 celt/entcode.h \
index ff80852..5bf1f87 100644 (file)
@@ -610,10 +610,10 @@ WARN_LOGFILE           =
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT                  = @top_srcdir@/src/opus.h \
-                        @top_srcdir@/celt/opus_types.h   \
-                         @top_srcdir@/celt/opus_defines.h \
-                         @top_srcdir@/src/opus_multistream.h
+INPUT                  = @top_srcdir@/include/opus.h \
+                        @top_srcdir@/include/opus_types.h   \
+                         @top_srcdir@/include/opus_defines.h \
+                         @top_srcdir@/include/opus_multistream.h
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
index bd7eba3..b36b064 100644 (file)
@@ -1,9 +1,9 @@
 ## Process this file with automake to produce Makefile.in
 
-DOCINPUTS = $(top_srcdir)/src/opus.h \
-            $(top_srcdir)/src/opus_multistream.h \
-            $(top_srcdir)/celt/opus_defines.h \
-            $(top_srcdir)/celt/opus_types.h
+DOCINPUTS = $(top_srcdir)/include/opus.h \
+            $(top_srcdir)/include/opus_multistream.h \
+            $(top_srcdir)/include/opus_defines.h \
+            $(top_srcdir)/include/opus_types.h
 
 doc_DATA = doxygen-build.stamp
 
index 703399b..1c12847 100755 (executable)
@@ -16,6 +16,7 @@ mkdir "${destdir}/silk"
 mkdir "${destdir}/silk/float"
 mkdir "${destdir}/silk/fixed"
 mkdir "${destdir}/celt"
+mkdir "${destdir}/include"
 for f in `cat "${toplevel}"/opus_sources.mk "${toplevel}"/celt_sources.mk \
  "${toplevel}"/silk_sources.mk "${toplevel}"/opus_headers.txt \
  "${toplevel}"/celt_headers.txt "${toplevel}"/silk_headers.txt \
@@ -25,7 +26,7 @@ done
 cp -a "${toplevel}"/src/opus_demo.c "${destdir}"/src/
 cp -a "${toplevel}"/src/opus_compare.c "${destdir}"/src/
 cp -a "${toplevel}"/celt/opus_custom_demo.c "${destdir}"/celt/
-cp -a "${toplevel}"/celt/opus_custom.h "${destdir}"/celt/
+cp -a "${toplevel}"/include/opus_custom.h "${destdir}"/celt/
 cp -a "${toplevel}"/Makefile.draft "${destdir}"/Makefile
 cp -a "${toplevel}"/opus_sources.mk "${destdir}"/
 cp -a "${toplevel}"/celt_sources.mk "${destdir}"/
similarity index 100%
rename from src/opus.h
rename to include/opus.h
similarity index 100%
rename from celt/opus_custom.h
rename to include/opus_custom.h
similarity index 100%
rename from celt/opus_defines.h
rename to include/opus_defines.h
similarity index 100%
rename from celt/opus_types.h
rename to include/opus_types.h
index 4fc5b65..f160710 100644 (file)
@@ -1,4 +1,4 @@
 OPUS_HEAD = \
-src/opus.h \
-src/opus_multistream.h \
+include/opus.h \
+include/opus_multistream.h \
 src/opus_private.h
index 60ae296..e4afd58 100644 (file)
@@ -49,7 +49,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "test_opus_common.h"
 
 #ifdef VALGRIND
index ac521a2..605e4f9 100644 (file)
@@ -37,7 +37,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "test_opus_common.h"
 
 #define MAX_PACKET (1500)
index 4ec536f..7bdb89d 100644 (file)
@@ -37,7 +37,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "../src/opus_private.h"
 #include "test_opus_common.h"