-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.kmake
More file actions
48 lines (41 loc) · 1.17 KB
/
project.kmake
File metadata and controls
48 lines (41 loc) · 1.17 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
45
46
47
48
//Build script for use with kalamake. Read more at https://github.com/kalakit/kalamake
#version 1.0
#references
name_bin: kalalua
dir_release: build/release-
dir_debug: build/debug-
name_lua: lua
dir_lua_rel: ../external-shared/lua/release
dir_lua_deb: ../external-shared/lua/debug
#global
compilerlauncher: ccache
standard: c++20
binarytype: static
sources: "src"
headers: "include", "../external-shared/KalaHeaders", "../external-shared/lua/include"
defines: LIB_STATIC
warninglevel: normal
customflags: export-compile-commands, export-vscode-sln
#profile debug-windows
binaryname: ${name_bin}d
compiler: clang-cl
buildtype: debug
buildpath: "${dir_debug}windows"
#profile release-windows
binaryname: ${name_bin}
compiler: clang-cl
buildtype: minsizerel
buildpath: "${dir_release}windows"
#profile debug-linux
binaryname: lib${name_bin}d
compiler: clang++
buildtype: debug
buildpath: "${dir_debug}linux"
links: "${dir_lua_deb}/lib${name_lua}d.a"
#profile release-linux
binaryname: lib${name_bin}
compiler: clang++
buildtype: minsizerel
buildpath: "${dir_release}linux"
links: "${dir_lua_rel}/lib${name_lua}.a"
postbuildaction: strip --strip-unneeded ${dir_release}linux/lib${name_bin}.a