summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-08 18:09:31 +0800
committerruki <[email protected]>2020-03-08 18:09:31 +0800
commitc0de5b765909ae429173935110702d0bb221bec5 (patch)
tree3079d8a30b3eb30261ccd4872012c72bb6427a95
parent07cb69433cdc6a8d60504ae88cc6251f9c69201a (diff)
remove opt.origin
-rw-r--r--xmake/actions/clean/main.lua4
-rw-r--r--xmake/actions/install/install.lua4
-rw-r--r--xmake/actions/package/main.lua4
-rw-r--r--xmake/actions/run/main.lua4
-rw-r--r--xmake/actions/uninstall/uninstall.lua4
5 files changed, 10 insertions, 10 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua
index 3c4382acc..02f0d804a 100644
--- a/xmake/actions/clean/main.lua
+++ b/xmake/actions/clean/main.lua
@@ -94,7 +94,7 @@ function _on_clean_target(target)
for _, r in ipairs(target:orderules()) do
local on_clean = r:script("clean")
if on_clean then
- on_clean(target, {origin = _do_clean_target})
+ on_clean(target)
done = true
end
end
@@ -156,7 +156,7 @@ function _clean_target(target)
for i = 1, 5 do
local script = scripts[i]
if script ~= nil then
- script(target, {origin = (i == 3 and _do_clean_target or nil)})
+ script(target)
end
end
diff --git a/xmake/actions/install/install.lua b/xmake/actions/install/install.lua
index 3f24a1921..a08364c9a 100644
--- a/xmake/actions/install/install.lua
+++ b/xmake/actions/install/install.lua
@@ -140,7 +140,7 @@ function _on_install_target(target)
for _, r in ipairs(target:orderules()) do
local on_install = r:script("install")
if on_install then
- on_install(target, {origin = _do_install_target})
+ on_install(target)
done = true
end
end
@@ -205,7 +205,7 @@ function _install_target(target)
for i = 1, 5 do
local script = scripts[i]
if script ~= nil then
- script(target, {origin = (i == 3 and _do_install_target or nil)})
+ script(target)
end
end
diff --git a/xmake/actions/package/main.lua b/xmake/actions/package/main.lua
index 30be278e2..541620f63 100644
--- a/xmake/actions/package/main.lua
+++ b/xmake/actions/package/main.lua
@@ -120,7 +120,7 @@ function _on_package_target(target)
for _, r in ipairs(target:orderules()) do
local on_package = r:script("package")
if on_package then
- on_package(target, {origin = _do_package_target})
+ on_package(target)
done = true
end
end
@@ -171,7 +171,7 @@ function _package(target)
for i = 1, 5 do
local script = scripts[i]
if script ~= nil then
- script(target, {origin = (i == 3 and _do_package_target or nil)})
+ script(target)
end
end
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua
index afaa1bea7..86c602fa3 100644
--- a/xmake/actions/run/main.lua
+++ b/xmake/actions/run/main.lua
@@ -79,7 +79,7 @@ function _on_run_target(target)
for _, r in ipairs(target:orderules()) do
local on_run = r:script("run")
if on_run then
- on_run(target, {origin = _do_run_target})
+ on_run(target)
done = true
end
end
@@ -141,7 +141,7 @@ function _run(target)
for i = 1, 5 do
local script = scripts[i]
if script ~= nil then
- script(target, {origin = (i == 3 and _do_run_target or nil)})
+ script(target)
end
end
diff --git a/xmake/actions/uninstall/uninstall.lua b/xmake/actions/uninstall/uninstall.lua
index 3312b5e40..e120b0853 100644
--- a/xmake/actions/uninstall/uninstall.lua
+++ b/xmake/actions/uninstall/uninstall.lua
@@ -114,7 +114,7 @@ function _on_uninstall_target(target)
for _, r in ipairs(target:orderules()) do
local on_uninstall = r:script("uninstall")
if on_uninstall then
- on_uninstall(target, {origin = _do_uninstall_target})
+ on_uninstall(target)
done = true
end
end
@@ -179,7 +179,7 @@ function _uninstall_target(target)
for i = 1, 5 do
local script = scripts[i]
if script ~= nil then
- script(target, {origin = (i == 3 and _do_uninstall_target or nil)})
+ script(target)
end
end