diff options
| author | ruki <[email protected]> | 2019-07-19 00:24:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-18 20:29:02 +0800 |
| commit | 669ddeb473b15a738e1d94c28eb570580cd433d9 (patch) | |
| tree | 154d30f2453e28e8d552af3c6f3b7499e3970fb4 | |
| parent | 81eaccd5f330ddb36ae8587eb4b75465eed78328 (diff) | |
add -f/--files option for build action
| -rw-r--r-- | xmake/actions/build/xmake.lua | 6 | ||||
| -rw-r--r-- | xmake/actions/config/xmake.lua | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/xmake/actions/build/xmake.lua b/xmake/actions/build/xmake.lua index 4bce122e4..cd0ea0f8b 100644 --- a/xmake/actions/build/xmake.lua +++ b/xmake/actions/build/xmake.lua @@ -46,6 +46,12 @@ task("build") , {'j', "jobs", "kv", "4", "Specifies the number of jobs to build simultaneously." } , {'w', "warning", "k", false, "Enable the warnings output." } , {'t', "try", "k", false, "Try building project using third-party buildsystem." } + , {'f', "files", "kv", nil, "Build the given source files.", + "e.g. ", + " - xmake --files=src/main.c", + " - xmake --files='src/*.c' [target]", + " - xmake --files='src/**c|excluded_file.c'", + " - xmake -f 'src/main.c" .. path.envsep() .. "src/test.c'" } , {} , {nil, "target", "v", nil, "Build the given target." } diff --git a/xmake/actions/config/xmake.lua b/xmake/actions/config/xmake.lua index d5cdae31e..35933daf8 100644 --- a/xmake/actions/config/xmake.lua +++ b/xmake/actions/config/xmake.lua @@ -97,14 +97,14 @@ task("config") , {category = "Cross Complation Configuration"} , {nil, "cross", "kv", nil, "The Cross Toolchains Prefix" - , ".e.g" + , "e.g." , " - i386-mingw32-" , " - arm-linux-androideabi-" } , {nil, "bin", "kv", nil, "The Cross Toolchains Bin Directory" - , ".e.g" + , "e.g." , " - sdk/bin (/arm-linux-gcc ..)" } , {nil, "sdk", "kv", nil, "The Cross SDK Directory" - , ".e.g" + , "e.g." , " - sdk/bin" , " - sdk/lib" , " - sdk/include" } |
