Eiyeron Fulmincendii лет назад: 5
Родитель
Сommit
15ccefbf70
2 измененных файлов с 34 добавлено и 1 удалено
  1. 3 1
      README.md
  2. 31 0
      prelude/libraries/libxmp-lite.lua

+ 3 - 1
README.md

@@ -52,7 +52,7 @@ workspace "yourproject"
     -- ...
     portaduio:use "SharedLib"
     -- ...
-    
+
     project "Main project"
         -- ...
         prelude.link_against_modules {portaudio}
@@ -72,6 +72,8 @@ that'd be an excellent candidate for magic-based refactoring.
   - Unzip the tarball into `external/physfs`
 - GLM : I don't trust myself enough to rebuild a math lib from scratch.
   - Clone its git repo into `external/glm`
+- LibXMP-lite : I would like to prototype some stuff out of module playback.
+  - Download the tarball into `external/libxmp-lite`
 
 Obviously, more are going to come.
 

+ 31 - 0
prelude/libraries/libxmp-lite.lua

@@ -0,0 +1,31 @@
+local prelude = require "prelude"
+
+local libxmp = prelude.library_module("LibXMP-Lite", "libxmp-lite")
+
+-- TODO : was that really intended?
+:use_public_includes {
+    "include"
+}
+
+:use_private_includes {
+    "src/",
+    "include/libxmp-lite"
+}
+
+:use_files {
+    "src/**.c",
+    "src/**.h",
+}
+
+:use_win_defines {
+    "WIN32",
+    "_USE_MATH_DEFINES",
+    "LIBXMP_CORE_PLAYER",
+    "BUILDING_DLL"}
+
+
+libxmp._VERSION = "0.0.1"
+libxmp._LIBRARY_VERSION = "4.4.1"
+libxmp._NAME = "XMP-Lite"
+
+return libxmp