From 8f741ef2a4cda18367e75e2d4fde0584cfd0de3f Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 9 Feb 2017 10:44:51 +0800 Subject: add add_cfunc and add_cfuns docs --- tests/console_c/xmake.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/console_c/xmake.lua') 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") -- cgit v1.3.1