diff options
| author | ruki <[email protected]> | 2017-02-09 10:44:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-09 10:44:51 +0800 |
| commit | 8f741ef2a4cda18367e75e2d4fde0584cfd0de3f (patch) | |
| tree | dbb78fb364340f75eafb30f29cf1bcfbcf431aec /tests/console_c | |
| parent | fd16730ec4846ea1acf8cb03d91f0a059d98fddf (diff) | |
add add_cfunc and add_cfuns docs
Diffstat (limited to 'tests/console_c')
| -rwxr-xr-x | tests/console_c/xmake.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/console_c/xmake.lua b/tests/console_c/xmake.lua index fbb3ce8ad..bc2b7d0d9 100755 --- a/tests/console_c/xmake.lua +++ b/tests/console_c/xmake.lua @@ -30,4 +30,10 @@ target("console_c") -- add files add_files("src/*.c") + set_config_h("$(buildir)/config.h") + set_config_h_prefix("TEST") + + add_cfunc(nil, "POLL", nil, {"sys/poll.h"}, "poll") + add_cfunc("libc", nil, nil, {"sys/select.h"}, "select") + add_cfunc("pthread", nil, "pthread", "pthread.h", "pthread_create") |
