summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-26 23:36:52 +0800
committerruki <[email protected]>2022-07-26 23:36:52 +0800
commitce7ea0db01c9ec430c98dd37e27c956043ea2c5d (patch)
tree06e25867800cd2adcfc329e24c763504190a6f34 /xmake/modules
parent9caa7031050dfa0b2122f41d54c30fd06e900872 (diff)
improve to install headerfiles #2577
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/target/action/install/unix.lua2
-rw-r--r--xmake/modules/target/action/install/windows.lua2
-rw-r--r--xmake/modules/target/action/uninstall/unix.lua2
-rw-r--r--xmake/modules/target/action/uninstall/windows.lua2
4 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/target/action/install/unix.lua b/xmake/modules/target/action/install/unix.lua
index af641e5bc..126191c0e 100644
--- a/xmake/modules/target/action/install/unix.lua
+++ b/xmake/modules/target/action/install/unix.lua
@@ -22,7 +22,7 @@
function _install_headers(target, opt)
local includedir = path.join(target:installdir(), opt and opt.includedir or "include")
os.mkdir(includedir)
- local srcheaders, dstheaders = target:headerfiles(includedir)
+ local srcheaders, dstheaders = target:headerfiles(includedir, {installonly = true})
if srcheaders and dstheaders then
local i = 1
for _, srcheader in ipairs(srcheaders) do
diff --git a/xmake/modules/target/action/install/windows.lua b/xmake/modules/target/action/install/windows.lua
index dfbcad11f..d508623be 100644
--- a/xmake/modules/target/action/install/windows.lua
+++ b/xmake/modules/target/action/install/windows.lua
@@ -25,7 +25,7 @@ import("lib.detect.find_file")
function _install_headers(target, opt)
local includedir = path.join(target:installdir(), opt and opt.includedir or "include")
os.mkdir(includedir)
- local srcheaders, dstheaders = target:headerfiles(includedir)
+ local srcheaders, dstheaders = target:headerfiles(includedir, {installonly = true})
if srcheaders and dstheaders then
local i = 1
for _, srcheader in ipairs(srcheaders) do
diff --git a/xmake/modules/target/action/uninstall/unix.lua b/xmake/modules/target/action/uninstall/unix.lua
index e11446dd4..128d24977 100644
--- a/xmake/modules/target/action/uninstall/unix.lua
+++ b/xmake/modules/target/action/uninstall/unix.lua
@@ -21,7 +21,7 @@
-- uninstall headers
function _uninstall_headers(target, opt)
local includedir = path.join(target:installdir(), opt and opt.includedir or "include")
- local _, dstheaders = target:headerfiles(includedir)
+ local _, dstheaders = target:headerfiles(includedir, {installonly = true})
for _, dstheader in ipairs(dstheaders) do
os.vrm(dstheader)
end
diff --git a/xmake/modules/target/action/uninstall/windows.lua b/xmake/modules/target/action/uninstall/windows.lua
index ed6923567..93d7df4be 100644
--- a/xmake/modules/target/action/uninstall/windows.lua
+++ b/xmake/modules/target/action/uninstall/windows.lua
@@ -21,7 +21,7 @@
-- uninstall headers
function _uninstall_headers(target, opt)
local includedir = path.join(target:installdir(), opt and opt.includedir or "include")
- local _, dstheaders = target:headerfiles(includedir)
+ local _, dstheaders = target:headerfiles(includedir, {installonly = true})
for _, dstheader in ipairs(dstheaders) do
os.vrm(dstheader)
end