-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog-project.lua
More file actions
35 lines (28 loc) · 939 Bytes
/
Copy pathlog-project.lua
File metadata and controls
35 lines (28 loc) · 939 Bytes
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
-- Reusable Log project definition
-- Can be included by parent projects via: include("path/to/log-lib/log-project.lua")
-- Guard to prevent multiple inclusions
if LOG_LIB_INCLUDED then
return
end
LOG_LIB_INCLUDED = true
local log_lib_dir = path.getdirectory(_SCRIPT)
local log_lib_src = log_lib_dir .. "/log-lib"
-- Export include path for dependent projects
LOG_LIB_INCLUDE_DIR = log_lib_src .. "/include"
project("Log")
kind("StaticLib")
language("C++")
cppdialect("C++23")
objdir("obj/%{prj.name}/%{cfg.buildcfg}")
targetdir("bin/%{prj.name}/%{cfg.buildcfg}")
files({
log_lib_src .. "/src/**.cpp",
log_lib_src .. "/src/**.h",
log_lib_src .. "/include/**.h"
})
includedirs({
log_lib_src .. "/include",
log_lib_src .. "/src"
})
pchheader(path.getabsolute(log_lib_src .. "/src/general/pch.h"))
pchsource(log_lib_src .. "/src/general/pch.cpp")