-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
72 lines (51 loc) · 1.52 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
local CPPSHARP_DIR = "G:\\Dev\\CppSharp\\build\\vs2015\\lib\\Release_x32\\"
local NEWTONSOFT_DIR = "Newtonsoft.Json.6.0.8/lib/net45/"
action = _ACTION or ""
builddir = path.getabsolute("./" .. action);
libdir = path.join(builddir, "lib", "%{cfg.buildcfg}_%{cfg.platform}");
solution "LLDBSharp"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
flags { "Symbols" }
location (builddir)
objdir (path.join(builddir, "obj"))
targetdir (libdir)
if os.isdir(CPPSHARP_DIR) then
project "LLDBSharp.Gen"
kind "ConsoleApp"
language "C#"
dotnetframework "4.6"
files { "LLDBSharpGen.cs" }
links
{
"System.Core",
path.join(CPPSHARP_DIR, "CppSharp"),
path.join(CPPSHARP_DIR, "CppSharp.AST"),
path.join(CPPSHARP_DIR, "CppSharp.Parser.CSharp"),
path.join(CPPSHARP_DIR, "CppSharp.Generator")
}
end
project "LLDBSharp"
kind "SharedLib"
language "C#"
flags { "Unsafe" }
filter "system:macosx"
files { "LLDBSharp/i686-apple-darwin/*.cs" }
filter "system:windows"
files { "LLDBSharp/i686-pc-windows-msvc/*.cs" }
project "LLDBSharp.Example"
kind "ConsoleApp"
language "C#"
flags { "Unsafe" }
files { "Example.cs", "XcodeToolchain.cs" }
links { "System.Core", "LLDBSharp" }
project "NativeLib"
kind "SharedLib"
language "C++"
files { "tests/Native.cpp" }
links { "c" }
project "Managed"
kind "ConsoleApp"
language "C#"
files { "tests/Managed.cs" }
links { "System" }