diff options
| author | ruki <waruqi@gmail.com> | 2019-05-31 00:15:57 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2019-05-30 19:35:46 +0800 |
| commit | 57095aa985ac1526240563ae1845e360c81db708 (patch) | |
| tree | 56652067e4b048b1205cebfc8704428c5a166b9a /manual.md | |
| parent | b01a82c79b2a568813e8757b0ca104d826ef441a (diff) | |
| download | xmake-docs-57095aa985ac1526240563ae1845e360c81db708.tar.gz xmake-docs-57095aa985ac1526240563ae1845e360c81db708.zip | |
update docs
Diffstat (limited to 'manual.md')
| -rw-r--r-- | manual.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -752,6 +752,22 @@ please input: y (y/n) We can see https://github.com/xmake-io/xmake/issues/339 to know more details. +Add a clib dependency package: + +Clib is a source-based dependency package manager. The dependent package is downloaded directly to the corresponding library source code, integrated into the project to compile, rather than binary library dependencies. + +It is also very convenient to integrate in xmake. The only thing to note is that you need to add the source code of the corresponding library to xmake.lua, for example: + +```lua +add_requires("clib::clibs/bytes@0.0.4", {alias = "bytes"}) + +target("xmake-test") + set_kind("binary") + add_files("clib/bytes/*.c") + add_files("src/*.c") + add_packages("bytes") +``` + ##### add_repositories ###### Add 3rd package repositories |
