diff options
| author | ruki <[email protected]> | 2017-11-11 21:23:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-11-11 21:23:57 +0800 |
| commit | f50cc8971ad01966cb5bfbcd2bef354fdef42cd8 (patch) | |
| tree | 69c6f0123120175998b581d362a568b3999f9f1b /tests | |
| parent | d8c3db4f8bd8a63eb1748bf1e0fd90001e318668 (diff) | |
improve project plugin
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apis/rules/src/main.c | 1 | ||||
| -rw-r--r-- | tests/apis/rules/xmake.lua | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/apis/rules/src/main.c b/tests/apis/rules/src/main.c index b86c9ad8e..f2e46be48 100644 --- a/tests/apis/rules/src/main.c +++ b/tests/apis/rules/src/main.c @@ -4,5 +4,6 @@ extern int test(int a, int b); int main(int argc, char** argv) { printf("1 + 1 = %d\n", test(1, 1)); + printf("%s\n", TEST); return 0; } diff --git a/tests/apis/rules/xmake.lua b/tests/apis/rules/xmake.lua index af4486428..545e53938 100644 --- a/tests/apis/rules/xmake.lua +++ b/tests/apis/rules/xmake.lua @@ -44,6 +44,8 @@ rule("stub") -- define target target("test") + add_cxflags("-DTEST=\"D:/asdasd/adasd/adsad\"") + -- set kind set_kind("binary") |
