summaryrefslogtreecommitdiff
path: root/xmake/rules/csharp/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-14 23:17:32 +0800
committerruki <[email protected]>2026-03-14 23:17:32 +0800
commit7fa59f32b5c88c655d83a83bb05e3eb9680e5004 (patch)
tree3d606e54e6d581bb8025e08c32fdecd523ada791 /xmake/rules/csharp/modules
parent22976f06349a3af4b520ae5796ab20edc95bfe0c (diff)
improve csharp rules
Diffstat (limited to 'xmake/rules/csharp/modules')
-rw-r--r--xmake/rules/csharp/modules/csharp_common.lua61
1 files changed, 0 insertions, 61 deletions
diff --git a/xmake/rules/csharp/modules/csharp_common.lua b/xmake/rules/csharp/modules/csharp_common.lua
index dce35021a..516297a45 100644
--- a/xmake/rules/csharp/modules/csharp_common.lua
+++ b/xmake/rules/csharp/modules/csharp_common.lua
@@ -169,64 +169,3 @@ function get_runtime_identifier(target)
return nil
end
-function append_target_flags(target, argv)
- local flags = {}
- table.join2(flags, table.wrap(target:get("csflags")))
- table.join2(flags, table.wrap(target:get("ldflags")))
- table.join2(flags, table.wrap(target:get("arflags")))
- table.join2(flags, table.wrap(target:get("shflags")))
- for _, flag in ipairs(flags) do
- if flag and #flag > 0 then
- table.insert(argv, flag)
- end
- end
-end
-
-function get_dotnet_runopt(csprojfile)
- return {
- curdir = path.directory(csprojfile),
- envs = {
- DOTNET_NOLOGO = "1",
- DOTNET_CLI_TELEMETRY_OPTOUT = "1",
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "1",
- DOTNET_GENERATE_ASPNET_CERTIFICATE = "0",
- DOTNET_ADD_GLOBAL_TOOLS_TO_PATH = "0"
- }
- }
-end
-
-function get_dotnet_verbosity()
- if option.get("diagnosis") then
- return "diagnostic"
- end
- return "quiet"
-end
-
-function get_dotnet_program(target)
- local function _get_configured_program(toolkind)
- if target:get("toolset." .. toolkind) then
- local program = target:tool(toolkind)
- if program and #program > 0 then
- return program
- end
- end
- end
-
- local program = nil
- if target:is_binary() then
- program = _get_configured_program("ld")
- elseif target:is_shared() then
- program = _get_configured_program("sh")
- else
- program = _get_configured_program("cs")
- end
- if program then
- return program
- end
-
- program = target:tool("cs")
- if program and #program > 0 then
- return program
- end
- return "dotnet"
-end