summaryrefslogtreecommitdiff
path: root/tests/projects/c/linker_scripts/xmake.lua
blob: 036c4b4864e8dd02903c13041b6bc846965c0ba3 (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") then
        add_files("src/foo.def")
    else
        add_files("src/foo.map")
    end