diff options
| author | ruki <[email protected]> | 2017-03-01 17:17:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-01 17:17:57 +0800 |
| commit | 1ab4daf4fbdd148dc5b3ee879d36e9829e4753d7 (patch) | |
| tree | cd0dcbc257d2fbc342dbf0dc0d3f468ab76f2d50 /tests/console_c/xmake.lua | |
| parent | 020da826110c507d6547c935b84858422635122f (diff) | |
add scriptdir vars
Diffstat (limited to 'tests/console_c/xmake.lua')
| -rwxr-xr-x | tests/console_c/xmake.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/console_c/xmake.lua b/tests/console_c/xmake.lua index 5bb1a2510..4156f32fc 100755 --- a/tests/console_c/xmake.lua +++ b/tests/console_c/xmake.lua @@ -30,3 +30,12 @@ target("console_c") -- add files add_files("src/*.c") + after_build(function(target) + import("core.project.config") + os.cd("src") + print(config.buildir()) + print(vformat("$(scriptdir)")) + print(path.absolute(vformat("$(buildir)"))) + os.cp("main.c", "$(buildir)/aaa") + end) + |
