diff options
| author | ruki <[email protected]> | 2026-03-16 23:42:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-16 23:42:00 +0800 |
| commit | 738d63ec3a02a86e93011f2b3b41267be30e7484 (patch) | |
| tree | 6f610aaed13c277bbce4ac3359a7fe39ce24cf54 | |
| parent | 443918d7e489ce7023e95184cc1e7ef537fa08f6 (diff) | |
format codes
| -rw-r--r-- | xmake/rules/csharp/build/target.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/csharp/clean.lua | 3 | ||||
| -rw-r--r-- | xmake/rules/csharp/install.lua | 4 | ||||
| -rw-r--r-- | xmake/rules/csharp/modules/csharp_common.lua | 3 | ||||
| -rw-r--r-- | xmake/rules/csharp/modules/csproj_generator.lua | 5 |
5 files changed, 10 insertions, 7 deletions
diff --git a/xmake/rules/csharp/build/target.lua b/xmake/rules/csharp/build/target.lua index a193b2f8b..259ccf5d4 100644 --- a/xmake/rules/csharp/build/target.lua +++ b/xmake/rules/csharp/build/target.lua @@ -23,7 +23,7 @@ import("core.base.option") import("core.tool.compiler") import("core.project.depend") import("utils.progress") -import("modules.csharp_common", {rootdir = path.directory(os.scriptdir()), alias = "csharp_common"}) +import("rules.modules.csharp_common", {rootdir = os.scriptdir(), alias = "csharp_common"}) -- find or generate .csproj file function _get_csprojfile(target) diff --git a/xmake/rules/csharp/clean.lua b/xmake/rules/csharp/clean.lua index ce683268c..78631738a 100644 --- a/xmake/rules/csharp/clean.lua +++ b/xmake/rules/csharp/clean.lua @@ -18,8 +18,9 @@ -- @file clean.lua -- +-- imports import("target.action.clean", {alias = "_do_clean_target"}) -import("modules.csharp_common", {rootdir = os.scriptdir(), alias = "csharp_common"}) +import("rules.modules.csharp_common", {rootdir = os.scriptdir(), alias = "csharp_common"}) function main(target, opt) _do_clean_target(target) diff --git a/xmake/rules/csharp/install.lua b/xmake/rules/csharp/install.lua index 4d871e291..a43006dd6 100644 --- a/xmake/rules/csharp/install.lua +++ b/xmake/rules/csharp/install.lua @@ -18,10 +18,11 @@ -- @file install.lua -- +-- imports import("core.base.option") import("core.project.config") import("core.tool.compiler") -import("modules.csharp_common", {rootdir = os.scriptdir(), alias = "csharp_common"}) +import("rules.modules.csharp_common", {rootdir = os.scriptdir(), alias = "csharp_common"}) function main(target, opt) local csprojfile = assert(csharp_common.find_or_generate_csproj(target), "target(%s): missing csharp .csproj file!", target:name()) @@ -62,5 +63,4 @@ function main(target, opt) os.mkdir(install_abs) os.cp(path.join(tmpdir, "**"), install_abs, {rootdir = tmpdir}) end - end diff --git a/xmake/rules/csharp/modules/csharp_common.lua b/xmake/rules/csharp/modules/csharp_common.lua index 516297a45..c223bdce8 100644 --- a/xmake/rules/csharp/modules/csharp_common.lua +++ b/xmake/rules/csharp/modules/csharp_common.lua @@ -18,9 +18,10 @@ -- @file csharp_common.lua -- +-- imports import("core.base.option") import("core.project.config") -import("csproj_generator", {rootdir = os.scriptdir(), alias = "generate_csproj"}) +import("csproj_generator") function _is_csharp_target(target) if target:rule("csharp") then diff --git a/xmake/rules/csharp/modules/csproj_generator.lua b/xmake/rules/csharp/modules/csproj_generator.lua index 0f94ed806..8972b5550 100644 --- a/xmake/rules/csharp/modules/csproj_generator.lua +++ b/xmake/rules/csharp/modules/csproj_generator.lua @@ -18,8 +18,9 @@ -- @file csproj_generator.lua -- -import("properties", {rootdir = os.scriptdir(), alias = "csharp_properties"}) -import("itemgroups", {rootdir = os.scriptdir(), alias = "csharp_itemgroups"}) +-- imports +import("properties", {alias = "csharp_properties"}) +import("itemgroups", {alias = "csharp_itemgroups"}) function _xml_escape(value) value = tostring(value or "") |
