diff options
Diffstat (limited to 'premake4.lua')
-rw-r--r-- | premake4.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/premake4.lua b/premake4.lua new file mode 100644 index 0000000..cd5b295 --- /dev/null +++ b/premake4.lua @@ -0,0 +1,29 @@ +sources = { + "loader_example.cc", + } + +-- premake4.lua +solution "TinyObjLoaderSolution" + configurations { "Release", "Debug" } + + if (os.is("windows")) then + platforms { "x32", "x64" } + else + platforms { "native", "x32", "x64" } + end + + -- A project defines one build target + project "tinyobjloader" + kind "ConsoleApp" + language "C++" + files { sources } + + configuration "Debug" + defines { "DEBUG" } -- -DDEBUG + flags { "Symbols" } + targetname "loader_example_debug" + + configuration "Release" + -- defines { "NDEBUG" } -- -NDEBUG + flags { "Symbols", "Optimize" } + targetname "loader_example" |