summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-12-26 18:19:28 +0100
committerArthur LAURENT <[email protected]>2023-01-06 12:01:43 +0100
commit4b83826396c3bef99e138e2c6b13e2a6f818f017 (patch)
tree80695958a832300b725f793d68faa5b9ec6a6034 /xmake/rules/c++/modules/xmake.lua
parentcd41fd1b0a40da26d14ea9d3512436b7571f07dc (diff)
generate module meta data file on install
this should allow a support of importing modules from a XMake library with other buildsys like CMake or Meson
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua15
1 files changed, 1 insertions, 14 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 3a7c7129d..2ccf27c5d 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -147,19 +147,6 @@ rule("c++.build.modules.install")
-- we cannot use target:data("cxx.has_modules"),
-- because on_config will be not called when installing targets
if common.contains_modules(target) then
- local sourcebatch = target:sourcebatches()["c++.build.modules.install"]
- if sourcebatch then
- for _, sourcefile in sourcebatch.sourcefiles do
- local prefixdir = "modules"
- local fileconfig = target:fileconfig(sourcefile)
- if fileconfig and fileconfig.prefixdir then
- prefixdir = fileconfig.prefixdir
- end
- local install = (fileconfig and not fileconfig.install) and false or true
- if install then
- target:add("installfiles", sourcefile, {prefixdir = prefixdir})
- end
- end
- end
+ common.install_module_target(target)
end
end)