From: Mikko Rasa Date: Thu, 14 Sep 2023 20:12:25 +0000 (+0300) Subject: Add MSP build files X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ext%2Fogg.git Add MSP build files --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9966546 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +temp/ +/ogg.dll +/ogg.lib +/ogg.pdb +/ogg_static.lib diff --git a/Build b/Build new file mode 100644 index 0000000..7e9cfb2 --- /dev/null +++ b/Build @@ -0,0 +1,25 @@ +package "ogg" +{ + library "ogg" + { + source "include/ogg/config_types.h"; + source "include/ogg/ogg.h"; + source "include/ogg/os_types.h"; + source "src/bitwise.c"; + source "src/framing.c"; + source "src/crctable.h"; + if_arch "windows" + { + source "win32/ogg.def"; + }; + install true; + install_headers false; + }; + + install "include/ogg" + { + source "include/ogg/config_types.h"; + source "include/ogg/ogg.h"; + source "include/ogg/os_types.h"; + }; +}; diff --git a/include/ogg/config_types.h b/include/ogg/config_types.h new file mode 100644 index 0000000..01e24f6 --- /dev/null +++ b/include/ogg/config_types.h @@ -0,0 +1,27 @@ + +#ifndef __CONFIG_TYPES_H__ +#define __CONFIG_TYPES_H__ + +/* manually configured for MSP build system */ +#undef INCLUDE_INTTYPES_H +#define INCLUDE_STDINT_H 1 +#undef INCLUDE_SYS_TYPES_H + +#if INCLUDE_INTTYPES_H +# include +#endif +#if INCLUDE_STDINT_H +# include +#endif +#if INCLUDE_SYS_TYPES_H +# include +#endif + +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; +typedef uint64_t ogg_uint64_t; + +#endif