update readme

pull/1378/head
ruki 2 years ago
parent 135352fb38
commit a1e39ff035
  1. 9
      README.md
  2. 9
      README_zh.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
```

@ -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
```

Loading…
Cancel
Save