diff options
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 62cf2061c..e19ea07c5 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2036,7 +2036,7 @@ end -- get the header files function _instance:headerfiles(outputdir, opt) opt = opt or {} - local headerfiles = self:get("headerfiles") + local headerfiles = self:get("headerfiles", opt) or {} -- add_headerfiles("src/*.h", {install = false}) -- @see https://github.com/xmake-io/xmake/issues/2577 if opt.installonly then @@ -2071,8 +2071,9 @@ function _instance:configfiles(outputdir) end -- get the install files -function _instance:installfiles(outputdir) - return match_copyfiles(self, "installfiles", outputdir or self:installdir()) +function _instance:installfiles(outputdir, opt) + local installfiles = self:get("installfiles", opt) or {} + return match_copyfiles(self, "installfiles", outputdir or self:installdir(), {copyfiles = installfiles}) end -- get the extra files |
