aboutsummaryrefslogtreecommitdiff
path: root/examples/obj_sticher/premake4.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/obj_sticher/premake4.lua')
-rw-r--r--examples/obj_sticher/premake4.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/obj_sticher/premake4.lua b/examples/obj_sticher/premake4.lua
new file mode 100644
index 0000000..9c2deb6
--- /dev/null
+++ b/examples/obj_sticher/premake4.lua
@@ -0,0 +1,38 @@
+lib_sources = {
+ "../../tiny_obj_loader.cc"
+}
+
+sources = {
+ "obj_sticher.cc",
+ "obj_writer.cc",
+ }
+
+-- premake4.lua
+solution "ObjStickerSolution"
+ configurations { "Release", "Debug" }
+
+ if (os.is("windows")) then
+ platforms { "x32", "x64" }
+ else
+ platforms { "native", "x32", "x64" }
+ end
+
+ includedirs {
+ "../../"
+ }
+
+ -- A project defines one build target
+ project "obj_sticher"
+ kind "ConsoleApp"
+ language "C++"
+ files { lib_sources, sources }
+
+ configuration "Debug"
+ defines { "DEBUG" } -- -DDEBUG
+ flags { "Symbols" }
+ targetname "obj_sticher_debug"
+
+ configuration "Release"
+ -- defines { "NDEBUG" } -- -NDEBUG
+ flags { "Symbols", "Optimize" }
+ targetname "obj_sticher"