зеркало из https://github.com/mono/CppSharp.git
Update build files to Premake5.
This commit is contained in:
Родитель
c56b6311ed
Коммит
77c871c794
|
@ -19,7 +19,6 @@ objsdir = path.join(builddir, "obj", "%{cfg.buildcfg}_%{cfg.platform}");
|
|||
libdir = path.join(builddir, "lib", "%{cfg.buildcfg}_%{cfg.platform}");
|
||||
gendir = path.join(builddir, "gen");
|
||||
|
||||
common_flags = { "Unicode", "Symbols" }
|
||||
msvc_buildflags = { "/wd4267" }
|
||||
gcc_buildflags = { "-std=c++11 -fpermissive" }
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@ function SetupTestCLI(name)
|
|||
end
|
||||
|
||||
function SetupManagedTestProject()
|
||||
SetupManagedProject()
|
||||
kind "SharedLib"
|
||||
language "C#"
|
||||
flags { "Unsafe" }
|
||||
SetupManagedProject()
|
||||
clr "Unsafe"
|
||||
end
|
||||
|
||||
function SetupTestGeneratorProject(name, depends)
|
||||
|
@ -87,7 +87,6 @@ function SetupTestNativeProject(name, depends)
|
|||
kind "SharedLib"
|
||||
language "C++"
|
||||
|
||||
flags { common_flags }
|
||||
files { "**.h", "**.cpp" }
|
||||
|
||||
if depends ~= nil then
|
||||
|
|
|
@ -13,7 +13,9 @@ solution "CppSharp"
|
|||
|
||||
configurations { "Debug", "Release" }
|
||||
platforms { "x32", "x64" }
|
||||
flags { common_flags }
|
||||
|
||||
characterset "Unicode"
|
||||
symbols "On"
|
||||
|
||||
location (builddir)
|
||||
objdir (objsdir)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
project "CppSharp"
|
||||
|
||||
SetupManagedProject()
|
||||
|
||||
kind "SharedLib"
|
||||
language "C#"
|
||||
flags { "Unsafe"}
|
||||
|
||||
SetupManagedProject()
|
||||
clr "Unsafe"
|
||||
|
||||
files { "**.cs" }
|
||||
links
|
|
@ -11,13 +11,14 @@ project "CppSharp.Parser.Gen"
|
|||
SetupParser()
|
||||
|
||||
project "CppSharp.Parser.CSharp"
|
||||
|
||||
|
||||
SetupManagedProject()
|
||||
|
||||
kind "SharedLib"
|
||||
language "C#"
|
||||
SetupManagedProject()
|
||||
|
||||
clr "Unsafe"
|
||||
|
||||
dependson { "CppSharp.CppParser" }
|
||||
flags { common_flags, "Unsafe" }
|
||||
|
||||
files
|
||||
{
|
|
@ -13,7 +13,6 @@ project "CppSharp.CppParser"
|
|||
kind "SharedLib"
|
||||
language "C++"
|
||||
SetupNativeProject()
|
||||
flags { common_flags }
|
||||
rtti "Off"
|
||||
|
||||
configuration "vs*"
|
|
@ -1,11 +1,11 @@
|
|||
project "CppSharp.Generator"
|
||||
|
||||
SetupManagedProject()
|
||||
|
||||
kind "SharedLib"
|
||||
language "C#"
|
||||
location "."
|
||||
|
||||
SetupManagedProject()
|
||||
|
||||
files { "**.cs", "**verbs.txt" }
|
||||
excludes { "Filter.cs" }
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
project "CppSharp.Runtime"
|
||||
|
||||
kind "SharedLib"
|
||||
SetupManagedProject()
|
||||
flags { "Unsafe" }
|
||||
|
||||
kind "SharedLib"
|
||||
clr "Unsafe"
|
||||
|
||||
files { "**.cs" }
|
||||
links { "System" }
|
||||
|
|
Загрузка…
Ссылка в новой задаче