Fix compilation for CodeBlocks 16.01 ! (Fixes #65)

Former-commit-id: f49f9b662c6e105d1249f7f7839f8a711be87640 [formerly ab9e2158aebc0583790b52d6397015fe470c0a31]
Former-commit-id: d68b86c1319bdfd956b226865831e7c2d0a5ea42
This commit is contained in:
Lynix
2016-06-09 13:02:02 +02:00
parent dce978aa51
commit f74f180044
2 changed files with 24 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ function NazaraBuild:Execute()
targetsuffix("-s")
configuration("codeblocks or codelite or gmake or xcode3 or xcode4")
buildoptions({"-fPIC", "-std=c++14"})
buildoptions({"-fPIC", "-std=c++14", "-U__STRICT_ANSI__"})
for k, libTable in ipairs(self.OrderedExtLibs) do
project(libTable.Name)
@@ -900,6 +900,10 @@ function NazaraBuild:Resolve(infoTable)
end
function NazaraBuild:MakeCopyAfterBuild(infoTable)
if (PremakeVersion < 50) then
return
end
if (os.is("windows")) then
configuration({})
postbuildcommands({[[xcopy "%{path.translate(cfg.linktarget.relpath):sub(1, -5) .. ".dll"}" "..\..\..\examples\bin\" /E /Y]]})