#!lua
 
solution "utils"
configurations { "debug", "release" }
 
configuration "debug"
 
	defines { "DEBUG" }
	symbols "on"
	postbuildcommands { "cp tests\\ex_test.lua bin\\debug\\ex_test.lua" }
    postbuildcommands { "cp tests\\test_timer.lua bin\\debug\\test_timer.lua" }
 
configuration "release"
 
	defines { "NDEBUG" }
	optimize "on"
	postbuildcommands { "cp tests\\ex_test.lua bin\\release\\ex_test.lua" }
    postbuildcommands { "cp tests\\test_timer.lua bin\\release\\test_timer.lua" }
 
project "json"
 
	language "C"
	kind "SharedLib"
	includedirs { "." }
	libdirs { "." }
	links { "lua" }
 
	files { "json/*.h", "json/*.c" }
 
project "timer"
 
	language "C"
	kind "SharedLib"
	includedirs { "." }
	libdirs { "." }
	links { "lua" }
 
	filter "system:windows"
		files { "timer/windows/**.h", "timer/windows/**.c" }
	filter "system:not windows"
		files { "timer/posix/**.h", "timer/posix/**.c" }
 
project "ex"
 
	language "C"
	kind "SharedLib"
	includedirs { "." }
	libdirs { "." }
	links { "lua" }
 
	filter "system:windows"
		files { "ex/windows/**.h", "ex/windows/**.c" }
	filter "system:not windows"
		files { "ex/posix/**.h", "ex/posix/**.c" }