]> git.tdb.fi Git - ext/ogg.git/commitdiff
Add MSP build files master
authorMikko Rasa <tdb@tdb.fi>
Thu, 14 Sep 2023 20:12:25 +0000 (23:12 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Sep 2023 11:47:15 +0000 (14:47 +0300)
.gitignore [new file with mode: 0644]
Build [new file with mode: 0644]
include/ogg/config_types.h [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..9966546
--- /dev/null
@@ -0,0 +1,5 @@
+temp/
+/ogg.dll
+/ogg.lib
+/ogg.pdb
+/ogg_static.lib
diff --git a/Build b/Build
new file mode 100644 (file)
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 (file)
index 0000000..01e24f6
--- /dev/null
@@ -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 <inttypes.h>
+#endif
+#if INCLUDE_STDINT_H
+#  include <stdint.h>
+#endif
+#if INCLUDE_SYS_TYPES_H
+#  include <sys/types.h>
+#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