OSDN Git Service

clean up for vs2010
[meshio/meshio.git] / src / premake4.lua
index 437da6c..5d2691f 100644 (file)
@@ -1,13 +1,31 @@
 solution "meshio"
 configurations { "Debug", "Release" }
 
+configuration { "vs*" }
+do
+    buildoptions {
+        "/wd4996",
+    }
+end
+
+configuration { "gmake" }
+do
+    buildoptions {
+        "-std=c++0x",
+    }
+end
+
+configuration "Debug gmake"
+do
+    buildoptions { "-g", "-Wall" }
+    linkoptions { "-g" }
+end
+
 configuration "Debug"
 do
     targetdir "../debug"
     flags { "Symbols" }
-    buildoptions { "-g", "-Wall" }
     defines { "DEBUG" }
-    linkoptions { "-g" }
 end
 
 configuration "Release"
@@ -17,7 +35,6 @@ do
     defines { "NDEBUG" }
 end
 
-
 -- A project defines one build target
 project "meshio"
 --kind "WindowedApp"
@@ -37,18 +54,3 @@ linkoptions {}
 libdirs {}
 links {}
 
-configuration { "windows", "not gmake" }
-do
-    -- VC
-    buildoptions {
-        "/wd4996",
-    }
-end
-
-configuration { "gmake" }
-do
-    buildoptions {
-        "-std=c++0x",
-    }
-end
-