-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
59 lines (42 loc) · 1.62 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
-- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.
dofile "CppSharp/build/Helpers.lua"
dofile "CppSharp/build/LLVM.lua"
solution "CppSharp.CLI"
configurations { "Debug", "Release" }
architecture "x86_64"
filter "system:windows"
architecture "x86"
filter "system:macosx"
architecture "x86"
filter "configurations:Release"
flags { "Optimize" }
filter {}
characterset "Unicode"
symbols "On"
local action = _ACTION or ""
location ("build/" .. action)
objdir (path.join("./build/", action, "obj"))
targetdir (path.join("./build/", action, "lib", "%{cfg.buildcfg}"))
startproject "CppSharp.CLI"
group "CppSharp"
include("CppSharp/src/Core")
include("CppSharp/src/AST")
include("CppSharp/src/CppParser")
include("CppSharp/src/CppParser/Bindings")
include("CppSharp/src/CppParser/ParserGen")
include("CppSharp/src/Parser")
include("CppSharp/src/Generator")
include("CppSharp/src/Runtime")
group ""
project "CppSharp.CLI"
kind "ConsoleApp"
language "C#"
dotnetframework "4.6"
location ("build/" .. action)
objdir (path.join("./build/", action, "obj"))
targetdir (path.join("./build/", action, "lib", "%{cfg.buildcfg}"))
files { "src/*.cs" }
links { "CppSharp", "CppSharp.AST", "CppSharp.Generator", "CppSharp.Parser", "CppSharp.Parser.CLI", "CppSharp.Runtime" }
dependson { "CppSharp", "CppSharp.AST", "CppSharp.Generator", "CppSharp.Parser", "CppSharp.Parser.CLI", "CppSharp.Runtime" }