From 5b24d7496b5f80bbf71d969d37dc5404844b6723 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 14 Sep 2023 23:12:25 +0300 Subject: [PATCH] Add MSP build files --- .gitignore | 5 +++++ Build | 25 +++++++++++++++++++++++++ include/ogg/config_types.h | 27 +++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .gitignore create mode 100644 Build create mode 100644 include/ogg/config_types.h 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 -- 2.43.0