diff options
| author | ruki <[email protected]> | 2017-11-11 21:06:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-11-11 21:06:54 +0800 |
| commit | d8c3db4f8bd8a63eb1748bf1e0fd90001e318668 (patch) | |
| tree | 96c1d3c5d7e1070b517661366432d31c29f684f6 /xmake/actions/install/install.lua | |
| parent | bc63208869cc865be6ce6ec60d22c9d128d9d65e (diff) | |
impl other rules
Diffstat (limited to 'xmake/actions/install/install.lua')
| -rw-r--r-- | xmake/actions/install/install.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/actions/install/install.lua b/xmake/actions/install/install.lua index b640be7d2..120b6d17d 100644 --- a/xmake/actions/install/install.lua +++ b/xmake/actions/install/install.lua @@ -24,6 +24,7 @@ -- imports import("core.base.task") +import("core.project.rule") import("core.project.project") -- install binary @@ -103,6 +104,13 @@ function _on_install(target) if script then script(target) end + + -- install files with the custom + for sourcekind, sourcebatch in pairs(target:sourcebatches()) do + if sourcebatch.rulename then + rule.install(sourcebatch.rulename, target, sourcebatch.sourcefiles) + end + end end -- install the given target |
