Source

glLoadGen / test / premake4.lua

Jason McKesson b9cc4ee 


Jason McKesson 7748c22 
Jason McKesson b9cc4ee 


Jason McKesson fa18131 


mcke...@Gimp f73902c 
Jason McKesson 9ea82ea 

Jason McKesson fa18131 
Jason McKesson e3900dc 
Jason McKesson 9501306 
Jason McKesson fa18131 
Jason McKesson 7748c22 

Jason McKesson fa18131 

Jason McKesson b9cc4ee 
Jason McKesson fa18131 
Jason McKesson 7748c22 







Jason McKesson fa18131 



Jason McKesson 7748c22 















Jason McKesson 2153ed0 
Jason McKesson fa18131 
Jason McKesson 7748c22 
dofile "glsdk/links.lua"

solution "test"
	configurations {"Debug", "Release"}
	defines {"_CRT_SECURE_NO_WARNINGS", "_SCL_SECURE_NO_WARNINGS"}

local tests =
{
	{name = "ptr_cpp"},
	{name = "ptr_c"},
	{name = "ptr_cpp_comp"},
	{name = "ptr_c_comp"},
	{name = "glload_c", include = "include"},
	{name = "glload_cpp", include = "include"},
	{name = "noload_cpp"},
}

local oldDir = os.getcwd()
for _, test in ipairs(tests) do
	os.chdir(path.getabsolute(test.name))
	
	project(test.name .. "_test")
		kind "ConsoleApp"
		language "c++"
		objdir("obj")
		files {"**.cpp"}
		files {"**.c"}
		files {"**.hpp"}
		files {"**.h"}
		
		if(test.include) then
			includedirs(test.include)
		end
		
		UseLibs {"freeglut"}
		
		configuration "windows"
			links {"glu32", "opengl32", "gdi32", "winmm", "user32"}
			
		configuration "linux"
			links {"GL", "GLU", "Xrandr", "X11"}
			
		configuration "Debug"
			targetsuffix "D"
			defines "_DEBUG"
			flags "Symbols"

		configuration "Release"
			defines "NDEBUG"
			flags {"OptimizeSpeed", "NoFramePointer", "ExtraWarnings", "NoEditAndContinue"};
	
	os.chdir(oldDir)
end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.