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"})