diff options
| author | Arthur LAURENT <[email protected]> | 2024-07-22 18:25:16 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-07-22 18:25:16 +0200 |
| commit | af19722ebd25a7c96b3e3b042e4e48cb690b5e63 (patch) | |
| tree | 173db741391f4934df06b6c0449e04e63105261b /xmake/core/package/package.lua | |
| parent | bbe7745ad8ccde3f39f1c1e468fd2d96ca7cb3f5 (diff) | |
improve moduleonly support
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index b4249c6a0..174e4eb88 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -572,6 +572,11 @@ function _instance:is_headeronly() return self:is_library() and self:extraconf("kind", "library", "headeronly") end +-- is module only? +function _instance:is_moduleonly() + return self:is_library() and self:extraconf("kind", "library", "moduleonly") +end + -- is top level? user top requires in xmake.lua function _instance:is_toplevel() local requireinfo = self:requireinfo() @@ -2399,7 +2404,7 @@ function _instance:_generate_build_configs(configs, opt) end -- check links for library - if self:is_library() and not self:is_headeronly() then + if self:is_library() and not self:is_headeronly() and not self:is_moduleonly() then local links = table.wrap(configs.links) local ldflags = table.wrap(configs.ldflags) local frameworks = table.wrap(configs.frameworks) |
