summaryrefslogtreecommitdiff
path: root/tests/projects/c/protobuf/xmake.lua
blob: 151acf5b4ea6c5dd0c216a6167f75461f8a41ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

-- add rules: debug and release
add_rules("mode.debug", "mode.release")

-- add protobuf
add_requires("protobuf-c")

-- add target
target("console_c")

    -- set kind
    set_kind("binary")

    -- add packages
    add_packages("protobuf-c")

    -- add files
    add_files("src/*.c")
    add_files("src/*.proto", {rules = "protobuf.c"})