-- Configuration générale
configurations 
{
--	"DebugStatic",
--	"ReleaseStatic",
	"DebugDLL",
	"ReleaseDLL"
}

defines "NAZARA_BUILD"
language "C++"
location(_ACTION)

includedirs
{
	"../include",
	"../src/",
	"../extlibs/include"
}

libdirs "../lib"

if (_OPTIONS["x64"]) then
	defines "NAZARA_PLATFORM_x64"
	libdirs "../extlibs/lib/x64"
else
	libdirs "../extlibs/lib/x86"
end

targetdir "../lib"

configuration "Debug*"
	defines "NAZARA_DEBUG"
	flags "Symbols"

configuration "Release*"
	flags { "EnableSSE", "EnableSSE2", "Optimize", "OptimizeSpeed", "NoFramePointer", "NoRTTI" }

configuration { "Release*", "codeblocks or codelite or gmake or xcode3*" }
	buildoptions "-mfpmath=sse" -- Utilisation du SSE pour les calculs flottants
	buildoptions "-ftree-vectorize" -- Activation de la vectorisation du code

configuration "*Static"
	defines "NAZARA_STATIC"
	kind "StaticLib"

configuration "*DLL"
	kind "SharedLib"

configuration "DebugStatic"
	targetsuffix "-s-d"

configuration "ReleaseStatic"
	targetsuffix "-s"

configuration "DebugDLL"
	targetsuffix "-d"

configuration "codeblocks or codelite or gmake or xcode3*"
	buildoptions "-std=c++11" -- On compile en C++11
if (_OPTIONS["x64"]) then
	buildoptions "-m64"
end

configuration { "linux or bsd or macosx", "gmake" }
	buildoptions "-fvisibility=hidden"

configuration "vs*"
	defines "_CRT_SECURE_NO_WARNINGS"
