From cc62a7a27887e0d3392d0974baf10cff351c33bb Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Mon, 3 Jun 2024 21:25:29 +0800 Subject: [PATCH] Add ogg and vorbis to NME_LOCAL_TOOLKIT --- .gitmodules | 6 +++ project/ToolkitBuild.xml | 18 +++++--- project/toolkit/ogg/config_types.h | 26 +++++++++++ project/toolkit/ogg/files.xml | 26 +++++++++++ project/toolkit/ogg/ogg | 1 + project/toolkit/vorbis/files.xml | 72 ++++++++++++++++++++++++++++++ project/toolkit/vorbis/vorbis | 1 + project/toolkit/zlib/files.xml | 2 + 8 files changed, 146 insertions(+), 6 deletions(-) create mode 100644 project/toolkit/ogg/config_types.h create mode 100644 project/toolkit/ogg/files.xml create mode 160000 project/toolkit/ogg/ogg create mode 100644 project/toolkit/vorbis/files.xml create mode 160000 project/toolkit/vorbis/vorbis diff --git a/.gitmodules b/.gitmodules index 801a695fc..9524e4fcf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,9 @@ [submodule "project/toolkit/jpeg/libjpeg-turbo"] path = project/toolkit/jpeg/libjpeg-turbo url = https://github.com/libjpeg-turbo/libjpeg-turbo +[submodule "project/toolkit/vorbis/vorbis"] + path = project/toolkit/vorbis/vorbis + url = https://github.com/xiph/vorbis.git +[submodule "project/toolkit/ogg/ogg"] + path = project/toolkit/ogg/ogg + url = https://github.com/xiph/ogg.git diff --git a/project/ToolkitBuild.xml b/project/ToolkitBuild.xml index 34aa8da86..55cb22f2d 100644 --- a/project/ToolkitBuild.xml +++ b/project/ToolkitBuild.xml @@ -137,7 +137,10 @@ + + +
@@ -145,11 +148,13 @@ + + + +
- - @@ -332,16 +337,17 @@ - + - + + + + - - diff --git a/project/toolkit/ogg/config_types.h b/project/toolkit/ogg/config_types.h new file mode 100644 index 000000000..73ef56246 --- /dev/null +++ b/project/toolkit/ogg/config_types.h @@ -0,0 +1,26 @@ +#ifndef __CONFIG_TYPES_H__ +#define __CONFIG_TYPES_H__ + + +#ifdef BLACKBERRY + + /* QNX */ +# include + typedef int16_t ogg_int16_t; + typedef uint16_t ogg_uint16_t; + typedef int32_t ogg_int32_t; + typedef uint32_t ogg_uint32_t; + typedef int64_t ogg_int64_t; + +#else +# include + +/* these are filled in by configure */ +typedef int16_t ogg_int16_t; +typedef unsigned short ogg_uint16_t; +typedef int32_t ogg_int32_t; +typedef unsigned int ogg_uint32_t; +typedef int64_t ogg_int64_t; + +#endif +#endif diff --git a/project/toolkit/ogg/files.xml b/project/toolkit/ogg/files.xml new file mode 100644 index 000000000..ab5b12770 --- /dev/null +++ b/project/toolkit/ogg/files.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/toolkit/ogg/ogg b/project/toolkit/ogg/ogg new file mode 160000 index 000000000..db5c7a49c --- /dev/null +++ b/project/toolkit/ogg/ogg @@ -0,0 +1 @@ +Subproject commit db5c7a49ce7ebda47b15b78471e78fb7f2483e22 diff --git a/project/toolkit/vorbis/files.xml b/project/toolkit/vorbis/files.xml new file mode 100644 index 000000000..06243ae4e --- /dev/null +++ b/project/toolkit/vorbis/files.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/project/toolkit/vorbis/vorbis b/project/toolkit/vorbis/vorbis new file mode 160000 index 000000000..84c023699 --- /dev/null +++ b/project/toolkit/vorbis/vorbis @@ -0,0 +1 @@ +Subproject commit 84c023699cdf023a32fa4ded32019f194afcdad0 diff --git a/project/toolkit/zlib/files.xml b/project/toolkit/zlib/files.xml index 6e2d20487..6a4977658 100644 --- a/project/toolkit/zlib/files.xml +++ b/project/toolkit/zlib/files.xml @@ -10,6 +10,8 @@ + +