summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-12 22:49:32 +0800
committerruki <[email protected]>2024-07-15 12:21:42 +0800
commit98950182b26e2a52b3eb8d6aea318d26f04d7e79 (patch)
treee128eec58538a76d2caf03e3455d15a1b6195349 /xmake/core
parent7f93559f094dbb4eea62d1ea30c4728b9f2b24af (diff)
improve to install files
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/project/target.lua7
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