diff options
| author | ruki <[email protected]> | 2025-03-12 00:50:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:53 +0800 |
| commit | a1d0e9c838a21d14ff7e17f0cad3d6f3c3531ae3 (patch) | |
| tree | 1597dc9b371f0609c1894213ef5a6a98e114d16a | |
| parent | 3d00c9106b461dae5866dcfb6ddbeed2276c4f31 (diff) | |
add missing target config
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/project/project.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua index 61b538bb1..c696b79b7 100644 --- a/xmake/core/sandbox/modules/import/core/project/project.lua +++ b/xmake/core/sandbox/modules/import/core/project/project.lua @@ -128,6 +128,10 @@ end -- config target function sandbox_core_project._config_target(target, opt) + local before_config = target:script("config_before") + if before_config then + before_config(target, opt) + end for _, rule in ipairs(table.wrap(target:orderules())) do local before_config = rule:script("config_before") if before_config then @@ -152,9 +156,13 @@ function sandbox_core_project._config_target(target, opt) after_config(target, opt) end end + local config_after = target:script("config_after") + if config_after then + config_after(target, opt) + end end --- config targets +-- config targets, TODO: We should support parallel configuration -- -- @param opt the extra option, e.g. {recheck = false} -- |
