Bläddra i källkod

Added glm library

Eiyeron Fulmincendii 5 år sedan
förälder
incheckning
10003f1bd8
3 ändrade filer med 27 tillägg och 2 borttagningar
  1. 3 1
      README.md
  2. 21 0
      prelude/libraries/glm.lua
  3. 3 1
      premake5.lua

+ 3 - 1
README.md

@@ -70,7 +70,9 @@ that'd be an excellent candidate for magic-based refactoring.
   - Clone the git repo into `external/portaudio`
 - PhysicsFS : the ready-toè-use library to easily abstract filesystems
   - 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`
 
-Obviously, more are going to come
+Obviously, more are going to come.
 
 [premake]:https://github.com/premake/premake-core

+ 21 - 0
prelude/libraries/glm.lua

@@ -0,0 +1,21 @@
+local prelude = require "prelude"
+
+local glm = prelude.library_module("GLM", "glm")
+
+:use_public_includes {
+    ""
+}
+
+:use_files {
+    "glm/**.hpp"
+}
+
+:use_win_files {
+    "util/glm.natvis"
+}
+
+glm._VERSION = "0.0.1"
+glm._LIBRARY_VERSION = "git"
+glm._NAME = "GLM"
+
+return glm

+ 3 - 1
premake5.lua

@@ -1,12 +1,14 @@
 local prelude = require "prelude"
 local portaudio = require "prelude.libraries.portaudio"
 local physfs = require "prelude.libraries.physfs"
+local glm = require "prelude.libraries.glm"
 
 
 workspace "Your Project here"
     configurations {"Debug", "DebugOpt", "Release"}
     location "build"
 
+    glm:use "None"
     portaudio:use "SharedLib"
     physfs:use "SharedLib"
 
@@ -26,7 +28,7 @@ workspace "Your Project here"
 		
 		-- TODO : issues at link on VS2015. Does it happen at home?
 		-- Need to manually check "Link Library Dependencies" every time.
-		prelude.link_against_modules {portaudio, physfs}
+		prelude.link_against_modules {portaudio, physfs, glm}
 
         prelude.base_project_settings()