Update build files to Premake5.

This commit is contained in:
Joao Matos 2016-08-24 17:27:29 +01:00
Родитель c56b6311ed
Коммит 77c871c794
8 изменённых файлов: 18 добавлений и 17 удалений

Просмотреть файл

@ -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" }