Use the official Ogg repo as a submodule.

Continuing to use version 1.3.2 for now.

`-DNATIVE_TOOLKIT_OGG` seems unused, and has been excluded.
This commit is contained in:
Joseph Cloutier
2022-05-08 23:20:50 -04:00
parent 455aef606d
commit d6ec1c123b
5 changed files with 35 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
<xml>
<files id="native-toolkit-ogg-depends">
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/config_types.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/overrides/ogg/include/ogg/config_types.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/ogg.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/os_types.h"/>
</files>

View File

@@ -0,0 +1,26 @@
#ifndef __CONFIG_TYPES_H__
#define __CONFIG_TYPES_H__
#ifdef BLACKBERRY
/* QNX */
# include <inttypes.h>
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 <inttypes.h>
/* 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

View File

@@ -5,15 +5,15 @@
<depend name="${NATIVE_TOOLKIT_PATH}/vorbis/include/vorbis/vorbisenc.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/vorbis/include/vorbis/vorbisfile.h"/>
</files>
<files id="native-toolkit-vorbis" tags="" >
<cache value="1" />
<tag value="${NATIVE_TOOLKIT_OPTIM_TAG}" if="NATIVE_TOOLKIT_OPTIM_TAG" />
<depend files="native-toolkit-vorbis-depends"/>
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/config_types.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/overrides/ogg/include/ogg/config_types.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/ogg.h"/>
<depend name="${NATIVE_TOOLKIT_PATH}/ogg/include/ogg/os_types.h"/>
@@ -40,7 +40,7 @@
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/vorbis/include/"/>
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/ogg/include/"/>
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/mdct.c"/>
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/smallft.c"/>
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/block.c"/>
@@ -63,7 +63,7 @@
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/bitrate.c"/>
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/vorbisfile.c"/>
<file name="${NATIVE_TOOLKIT_PATH}/vorbis/lib/vorbisenc.c"/>
</files>
</xml>