Browse Source

[build] Update some deprecated Premake build code.

pull/925/head
Joao Matos 8 years ago
parent
commit
b7d5b2568f
  1. 4
      build/Tests.lua
  2. 3
      src/CppParser/Bindings/CLI/premake5.lua
  3. 2
      src/CppParser/Bindings/premake5.lua
  4. 2
      src/CppParser/premake5.lua

4
build/Tests.lua

@ -94,7 +94,7 @@ function SetupTestGeneratorBuildEvent(name) @@ -94,7 +94,7 @@ function SetupTestGeneratorBuildEvent(name)
end
function SetupTestNativeProject(name, depends)
if string.starts(action, "vs") and not os.is("windows") then
if string.starts(action, "vs") and not os.ishost("windows") then
return
end
@ -179,7 +179,7 @@ function SetupTestProjectsCLI(name, extraFiles, suffix) @@ -179,7 +179,7 @@ function SetupTestProjectsCLI(name, extraFiles, suffix)
kind "SharedLib"
language "C++"
flags { "Managed" }
clr "On"
dependson { name .. ".Gen", name .. ".Native" }
SetupTestGeneratorBuildEvent(name)

3
src/CppParser/Bindings/CLI/premake5.lua

@ -8,7 +8,8 @@ project "CppSharp.Parser.CLI" @@ -8,7 +8,8 @@ project "CppSharp.Parser.CLI"
SetupLLVMIncludes()
dependson { "CppSharp.CppParser" }
flags { common_flags, "Managed" }
flags { common_flags }
clr "On"
filter "action:vs*"
buildoptions { clang_msvc_flags }

2
src/CppParser/Bindings/premake5.lua

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
include ("CSharp")
if string.starts(action, "vs") and os.is("windows") then
if string.starts(action, "vs") and os.ishost("windows") then
include ("CLI")

2
src/CppParser/premake5.lua

@ -6,7 +6,7 @@ clang_msvc_flags = @@ -6,7 +6,7 @@ clang_msvc_flags =
"/wd4141", -- 'inline' : used more than once
}
if not (string.starts(action, "vs") and not os.is("windows")) then
if not (string.starts(action, "vs") and not os.ishost("windows")) then
project "CppSharp.CppParser"

Loading…
Cancel
Save