diff options
Diffstat (limited to 'xmake/rules/csharp/modules/csharp_common.lua')
| -rw-r--r-- | xmake/rules/csharp/modules/csharp_common.lua | 61 |
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 |
