diff --git a/README.md b/README.md index 434d4d71a..3b19a6782 100755 --- a/README.md +++ b/README.md @@ -127,3 +127,12 @@ package("libpng") end) packages/l/libpng/xmake.lua generated! ``` + +### Test a package in local + +```console +$ xmake l scripts/test.lua --shallow -vD zlib +$ xmake l scripts/test.lua --shallow -vD -p iphoneos zlib +$ xmake l scripts/test.lua --shallow -vD -k shared -m debug zlib +$ xmake l scripts/test.lua --shallow -vD --vs_runtime=MD zlib +``` diff --git a/README_zh.md b/README_zh.md index 9113657a9..56c969e00 100755 --- a/README_zh.md +++ b/README_zh.md @@ -122,3 +122,12 @@ package("libpng") end) packages/l/libpng/xmake.lua generated! ``` + +### 在本地测试一个包 + +```console +$ xmake l scripts/test.lua --shallow -vD zlib +$ xmake l scripts/test.lua --shallow -vD -p iphoneos zlib +$ xmake l scripts/test.lua --shallow -vD -k shared -m debug zlib +$ xmake l scripts/test.lua --shallow -vD --vs_runtime=MD zlib +```