Source

GL Profile Suite / tests / premake4.lua

Full commit
alfonse 8484a73 

alfonse d862a85 
alfonse 8484a73 
Jason McKesson df613ff 





alfonse 8484a73 




















alfonse 02f09dd 
alfonse 8484a73 



















alfonse d862a85 






Jason McKesson df613ff 
alfonse d862a85 

dofile "../glsdk/links.lua"
local codegen = require "codegen"

newaction {
   trigger     = "gen",
   description = "Run codegeneration only",
   execute = function () end --Codegen always run. This just prevents project creation.
}

solution "perftests"
	configurations { "Debug", "Release" }

	defines {"_CRT_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_DEPRECATE", "_SCL_SECURE_NO_WARNINGS", "TIXML_USE_STL"}

	defines {"FREEGLUT_STATIC"}
	
	configuration "windows"
		defines {"WIN32"}
		
	configuration "linux"
		defines {"LOAD_X11"}

	
project "manual"
	kind "ConsoleApp"
	language "c++"
	
	files {"util/*.h", "util/*.cpp"}
	files {"manual/*.h", "manual/*.cpp"}

	includedirs "../boost_1_51_0"
		
	--Must be after including framwork... because GCC is stupid.
	UseLibs("glload", "glutil", "glm", "freeglut")
	
	configuration "Debug"
		defines {"DEBUG", "_DEBUG"}
		flags "Symbols"
		targetname("manualD")
	
	configuration "Release"
		defines {"RELEASE", "NDEBUG"};
		flags {"OptimizeSpeed", "NoFramePointer", "ExtraWarnings", "NoEditAndContinue"};
		targetname("manual")

	configuration {"windows"}
		links {"glu32", "opengl32", "gdi32", "winmm", "user32"}

	configuration "linux"
		links {"GL", "GLU"}

local matches = os.matchfiles("**suite.lua")

for _,v in ipairs(matches) do
	codegen.dofile(v)
end

codegen.gencode()
codegen.genproj()