|
2201 | 2201 | if #includes > 0 then
|
2202 | 2202 | m.element("ForcedIncludeFiles", condition, table.concat(includes, ';'))
|
2203 | 2203 | end
|
2204 |
| - end |
| 2204 | + end |
2205 | 2205 | end
|
2206 | 2206 |
|
2207 | 2207 | function m.forceUsings(cfg, condition)
|
|
2793 | 2793 | if llvmdir and _ACTION >= "vs2019" then
|
2794 | 2794 | m.element("LLVMInstallDir", nil, vstudio.path(cfg, llvmdir))
|
2795 | 2795 | end
|
2796 |
| - |
| 2796 | + |
2797 | 2797 | if llvmversion and _ACTION >= "vs2019" then
|
2798 | 2798 | m.element("LLVMToolsVersion", nil, llvmversion)
|
2799 | 2799 | end
|
|
3128 | 3128 |
|
3129 | 3129 |
|
3130 | 3130 | function m.additionalProps(prj, cfg)
|
3131 |
| - for i = 1, #cfg.vsprops do |
3132 |
| - for key, value in spairs(cfg.vsprops[i]) do |
3133 |
| - m.element(key, nil, vs2010.esc(value)) |
| 3131 | + local function recurseTableIfNeeded(tbl) |
| 3132 | + for key, value in spairs(tbl) do |
| 3133 | + if (type(value) == "table") then |
| 3134 | + p.push("<" .. key .. ">") |
| 3135 | + recurseTableIfNeeded(value) |
| 3136 | + p.pop("</" .. key .. ">") |
| 3137 | + else |
| 3138 | + m.element(key, nil, vs2010.esc(value)) |
| 3139 | + end |
3134 | 3140 | end
|
3135 | 3141 | end
|
| 3142 | + for i = 1, #cfg.vsprops do |
| 3143 | + recurseTableIfNeeded(cfg.vsprops[i]) |
| 3144 | + end |
3136 | 3145 | end
|
3137 | 3146 |
|
3138 | 3147 |
|
|
3481 | 3490 |
|
3482 | 3491 | function m.linuxDebugInformationFormat(cfg)
|
3483 | 3492 | if cfg.symbols then
|
3484 |
| - |
| 3493 | + |
3485 | 3494 | if cfg.symbols == p.OFF then
|
3486 | 3495 | m.element("DebugInformationFormat", nil, "None")
|
3487 | 3496 | elseif cfg.symbols == "Full" then
|
|
3524 | 3533 | ["gnu++17"] = "gnu++17",
|
3525 | 3534 | ["gnu++20"] = "gnu++20",
|
3526 | 3535 | }
|
3527 |
| - |
| 3536 | + |
3528 | 3537 | if cpp_langmap[cfg.cppdialect] ~= nil then
|
3529 | 3538 | m.element("CppLanguageStandard", nil, cpp_langmap[cfg.cppdialect])
|
3530 | 3539 | end
|
|
3587 | 3596 | ["wsl"] = "WSL_1_0",
|
3588 | 3597 | ["wsl2"] = "WSL2_1_0",
|
3589 | 3598 | }
|
3590 |
| - |
| 3599 | + |
3591 | 3600 | local clang_map = {
|
3592 | 3601 | ["remote"] = "Remote_Clang_1_0",
|
3593 | 3602 | ["wsl"] = "WSL_Clang_1_0",
|
|
0 commit comments