-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake_parser_project.lua
More file actions
44 lines (38 loc) · 1.14 KB
/
Copy pathpremake_parser_project.lua
File metadata and controls
44 lines (38 loc) · 1.14 KB
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
local prj_name = "parser"
function genParserProject()
project(prj_name)
location (GLOBAL.BUILD_DIR.."/%{prj.name}")
kind "ConsoleApp"
language "C++"
targetname("MetaDataParser")
targetdir (GLOBAL.BIN_OUT_DIR.."/%{prj.name}")
libdirs
{
path.join(os.getenv("LLVM_ROOT"), "lib"),
path.join(os.getenv("BOOST_ROOT"), "lib");
}
includedirs
{
path.join(os.getenv("LLVM_ROOT"), "include");
path.join(os.getenv("BOOST_ROOT"), "include");
}
files
{
path.join(GLOBAL.SRC_DIR, "core/compile/common_macros.h"),
path.join(GLOBAL.SRC_DIR, "parser", "**.h"),
path.join(GLOBAL.SRC_DIR, "parser", "**.hpp"),
path.join(GLOBAL.SRC_DIR, "parser", "**.cpp")
}
links
{
"clang",
"boost_filesystem",
"boost_system"
}
postbuildcommands
{
"{MKDIR} "..GLOBAL.GENERATORS_DIR,
"{COPY} %{cfg.linktarget.abspath} "..GLOBAL.GENERATORS_DIR
}
return prj_name
end