blob: bdee93d8cd07066af0dc970cb4949cdd2be38b92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
add_rules("mode.debug", "mode.release")
target("test")
add_deps("foo")
set_kind("binary")
add_files("src/main.c")
if is_plat("linux") and is_arch("x86_64") then
add_files("src/main.lds")
end
target("foo")
set_kind("shared")
add_files("src/foo.c")
if is_plat("windows", "mingw") then
add_files("src/foo.def")
else
add_files("src/foo.map")
end
|