summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-03 22:34:50 +0800
committerruki <[email protected]>2023-02-03 22:34:50 +0800
commitabbe8b14602fbb90320a8c5b9578ed9447a49825 (patch)
treea922112a3c8f57f2488a311f78dc6ef40037efae
parentd81daf1e42dcdbce27f5e833c1d8a749369295ee (diff)
add sourceinfo for package and option
-rw-r--r--xmake/core/package/package.lua5
-rw-r--r--xmake/core/project/option.lua5
2 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index a3723661f..99eec0764 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -109,6 +109,11 @@ function _instance:extraconf_set(name, item, key, value)
return self._INFO:extraconf_set(name, item, key, value)
end
+-- get configuration source information of the given api item
+function _instance:sourceinfo(name, item)
+ return self._INFO:sourceinfo(name, item)
+end
+
-- get the package license
function _instance:license()
return self:get("license")
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index f5df5ce45..dcb94aa55 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -439,6 +439,11 @@ function _instance:extraconf(name, item, key)
return self._INFO:extraconf(name, item, key)
end
+-- get configuration source information of the given api item
+function _instance:sourceinfo(name, item)
+ return self._INFO:sourceinfo(name, item)
+end
+
-- get the given dependent option
function _instance:dep(name)
local deps = self:deps()