summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorSineStriker <[email protected]>2025-04-20 23:24:47 +0800
committerruki <[email protected]>2025-04-23 11:30:30 +0800
commit93dda3ce130c3a71a3d8a7bb4776af6e82bcf1c5 (patch)
tree492dfbb42f2c6d0f11e69624ee416ba7bf6e93ce /xmake/core/project/target.lua
parent42be9d4228849def30a728b3933209a1cd90638e (diff)
Remove implib API
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 6e8b93e7b..e0756f6c5 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1643,6 +1643,13 @@ function _instance:artifactdir(type)
end
-- get the build artifact output file
+--
+-- supported artifact types:
+-- 1. bin: executable(.exe, Unix Executables), windows shared library(.dll)
+-- 2. lib: static library(.lib, .a), windows DLL implib(.lib, .dll.a), non-windows shared library(.so, .dylib)
+--
+-- otherwise returns nil
+--
function _instance:artifactfile(type)
if type == "bin" then
-- executable, windows shared library
@@ -1676,14 +1683,7 @@ function _instance:artifactfile(type)
end
-- to be added...
- return nil
-end
--- get the implib file (windows shared library only)
-function _instance:implibfile()
- if self:has_implib() then
- return self:artifactfile("lib")
- end
return nil
end
@@ -2565,7 +2565,8 @@ end
-- has implib artifact file?
--
--- equivalent to "is_windows_shared_library"
+-- returns true if the target is a windows shared library
+--
function _instance:has_implib()
return self:is_shared() and self:is_plat("windows", "mingw")
end