diff options
| author | ruki <[email protected]> | 2018-09-15 22:47:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-15 22:47:04 +0800 |
| commit | bd1725e5ca685df706f96ad82ae1b26615be726a (patch) | |
| tree | d08f7f5d3f88bb621e95816b0e2873421d56e797 /xmake/actions/require/package.lua | |
| parent | f767439ed8d9509e98cb0b7f0c6b75d62729e153 (diff) | |
improve to build package with xmake
Diffstat (limited to 'xmake/actions/require/package.lua')
| -rw-r--r-- | xmake/actions/require/package.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/actions/require/package.lua b/xmake/actions/require/package.lua index 27aabda82..de3bfb29a 100644 --- a/xmake/actions/require/package.lua +++ b/xmake/actions/require/package.lua @@ -42,6 +42,7 @@ import("repository") -- add_requires("zlib master") -- add_requires("xmake-repo@tbox >=1.5.1") -- add_requires("aaa_bbb_ccc >=1.5.1 <1.6.0", {optional = true, alias = "mypkg"}) +-- add_requires("tbox", {config = {coroutine = true, mode = "debug"}}) -- function _parse_require(require_str, requires_extra, parentinfo) @@ -111,6 +112,7 @@ function _parse_require(require_str, requires_extra, parentinfo) alias = require_extra.alias, -- set package alias name system = require_extra.system, -- default: true, we can set it to disable system package manually option = require_extra.option, -- set and attach option + config = require_extra.config, -- the build configuration of package default = require_extra.default, -- default: true, we can set it to disable package manually optional = parentinfo.optional or require_extra.optional -- default: false, inherit parentinfo.optional } |
