浏览代码

update readme

ruki 3 年之前
父节点
当前提交
a1e39ff035
共有 2 个文件被更改,包括 18 次插入0 次删除
  1. 9 0
      README.md
  2. 9 0
      README_zh.md

+ 9 - 0
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
+```

+ 9 - 0
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
+```