diff options
| author | Redbeanw44602 <[email protected]> | 2025-07-28 13:41:45 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-07-28 13:41:45 +0800 |
| commit | 64718da24b520c4825ea419813c47c313d469e1d (patch) | |
| tree | 799411ba6d34b8b3ea363fe03abc892450788697 /xmake/modules | |
| parent | a9122ba01c57852961b5620770e7e9866de3ade3 (diff) | |
update.
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/gn.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index 5558860c6..5d6815c8e 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -127,7 +127,7 @@ function build(package, configs, opt) -- do build local builddir = _get_builddir(opt) - local targets = table.wrap(opt.target) + local targets = table.wrap(opt.target or opt.targets) ninja.build(package, targets, {builddir = builddir, envs = opt.envs or buildenvs(package, opt)}) end @@ -140,6 +140,6 @@ function install(package, configs, opt) -- do build and install local builddir = _get_builddir(opt) - local targets = table.wrap(opt.target) + local targets = table.wrap(opt.target or opt.targets) ninja.install(package, targets, {builddir = builddir, envs = opt.envs or buildenvs(package, opt)}) end diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 54f766f71..604e82a37 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -527,7 +527,7 @@ function install(package, configs, opt) if njob then table.insert(argv, "--jobs=" .. njob) end - local target = table.wrap(opt.target) + local target = table.wrap(opt.target or opt.targets) if #target ~= 0 then table.join2(argv, target) end @@ -536,7 +536,7 @@ function install(package, configs, opt) -- do install argv = {"install", "-y", "--nopkgs", "-o", package:installdir()} _set_builtin_argv(package, argv) - local targets = table.wrap(opt.target) + local targets = table.wrap(opt.target or opt.targets) if #targets ~= 0 then table.join2(argv, targets) end |
