Ver código fonte

Renamed premake gcc target.

bkaradzic 12 anos atrás
pai
commit
71ca447a09
2 arquivos alterados com 8 adições e 8 exclusões
  1. 1 1
      makefile
  2. 7 7
      premake/toolchain.lua

+ 1 - 1
makefile

@@ -7,7 +7,7 @@ all:
 	premake4 --file=premake/premake4.lua vs2008
 	premake4 --file=premake/premake4.lua vs2008
 	premake4 --file=premake/premake4.lua vs2010
 	premake4 --file=premake/premake4.lua vs2010
 	premake4 --file=premake/premake4.lua --gcc=mingw gmake
 	premake4 --file=premake/premake4.lua --gcc=mingw gmake
-	premake4 --file=premake/premake4.lua --gcc=linux gmake
+	premake4 --file=premake/premake4.lua --gcc=linux-gcc gmake
 	premake4 --file=premake/premake4.lua --gcc=osx gmake
 	premake4 --file=premake/premake4.lua --gcc=osx gmake
 	premake4 --file=premake/premake4.lua xcode4
 	premake4 --file=premake/premake4.lua xcode4
 
 

+ 7 - 7
premake/toolchain.lua

@@ -17,7 +17,7 @@ function toolchain(_buildDir, _libDir)
 			{ "android-mips", "Android - MIPS" },
 			{ "android-mips", "Android - MIPS" },
 			{ "android-x86", "Android - x86" },
 			{ "android-x86", "Android - x86" },
 --			{ "emscripten-experimental", "Emscripten" },
 --			{ "emscripten-experimental", "Emscripten" },
-			{ "linux", "Linux" },
+			{ "linux-gcc", "Linux (GCC compiler)" },
 			{ "linux-clang", "Linux (Clang compiler)" },
 			{ "linux-clang", "Linux (Clang compiler)" },
 			{ "mingw", "MinGW" },
 			{ "mingw", "MinGW" },
 			{ "nacl", "Native Client" },
 			{ "nacl", "Native Client" },
@@ -98,7 +98,7 @@ function toolchain(_buildDir, _libDir)
 			location (_buildDir .. "projects/" .. _ACTION .. "-emscripten")
 			location (_buildDir .. "projects/" .. _ACTION .. "-emscripten")
 		end
 		end
 
 
-		if "linux" == _OPTIONS["gcc"] then
+		if "linux-gcc" == _OPTIONS["gcc"] then
 			location (_buildDir .. "projects/" .. _ACTION .. "-linux")
 			location (_buildDir .. "projects/" .. _ACTION .. "-linux")
 		end
 		end
 
 
@@ -308,7 +308,7 @@ function toolchain(_buildDir, _libDir)
 		}
 		}
 		buildoptions { "-m64" }
 		buildoptions { "-m64" }
 
 
-	configuration { "linux and not linux-clang" }
+	configuration { "linux-gcc and not linux-clang" }
 		buildoptions {
 		buildoptions {
 			"-mfpmath=sse", -- force SSE to get 32-bit and 64-bit builds deterministic.
 			"-mfpmath=sse", -- force SSE to get 32-bit and 64-bit builds deterministic.
 		}
 		}
@@ -318,7 +318,7 @@ function toolchain(_buildDir, _libDir)
 			"--analyze",
 			"--analyze",
 		}
 		}
 
 
-	configuration { "linux or linux-clang" }
+	configuration { "linux-*" }
 		buildoptions {
 		buildoptions {
 			"-std=c++0x",
 			"-std=c++0x",
 			"-U__STRICT_ANSI__",
 			"-U__STRICT_ANSI__",
@@ -332,7 +332,7 @@ function toolchain(_buildDir, _libDir)
 			"-Wl,--gc-sections",
 			"-Wl,--gc-sections",
 		}
 		}
 
 
-	configuration { "linux", "x32" }
+	configuration { "linux-gcc", "x32" }
 		targetdir (_buildDir .. "linux32_gcc" .. "/bin")
 		targetdir (_buildDir .. "linux32_gcc" .. "/bin")
 		objdir (_buildDir .. "linux32_gcc" .. "/obj")
 		objdir (_buildDir .. "linux32_gcc" .. "/obj")
 		libdirs { _libDir .. "lib/linux32_gcc" }
 		libdirs { _libDir .. "lib/linux32_gcc" }
@@ -340,7 +340,7 @@ function toolchain(_buildDir, _libDir)
 			"-m32",
 			"-m32",
 		}
 		}
 
 
-	configuration { "linux", "x64" }
+	configuration { "linux-gcc", "x64" }
 		targetdir (_buildDir .. "linux64_gcc" .. "/bin")
 		targetdir (_buildDir .. "linux64_gcc" .. "/bin")
 		objdir (_buildDir .. "linux64_gcc" .. "/obj")
 		objdir (_buildDir .. "linux64_gcc" .. "/obj")
 		libdirs { _libDir .. "lib/linux64_gcc" }
 		libdirs { _libDir .. "lib/linux64_gcc" }
@@ -648,7 +648,7 @@ function strip()
 			"@$(ANDROID_NDK_X86)/bin/i686-linux-android-strip -s \"$(TARGET)\""
 			"@$(ANDROID_NDK_X86)/bin/i686-linux-android-strip -s \"$(TARGET)\""
 		}
 		}
 
 
-	configuration { "linux", "Release" }
+	configuration { "linux-*", "Release" }
 		postbuildcommands {
 		postbuildcommands {
 			"@echo Stripping symbols.",
 			"@echo Stripping symbols.",
 			"@strip -s \"$(TARGET)\""
 			"@strip -s \"$(TARGET)\""