blob: 862ddf676766a0c17082def1ef15ec19b7086282 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- the addons which this project needs, they are installed automatically
add_addons("custom-include", "custom-rule", "custom-toolchain")
-- the option comes from the includes file of an addon
includes("@addon/custom-include/check")
target("hello")
set_kind("binary")
add_files("src/main.c")
add_rules("@addon/custom-rule/hello")
set_toolchains("@addon/custom-toolchain/my-c6000")
if has_config("myoption") then
add_defines("MYOPTION")
end
|