Skip to content
json
{
    "buildType": {
        "default": "debug",
        "description": "生成类型。",
        "choices": {
            "debug": {
                "short": "Debug",
                "long": "禁用优化 - 包括调试信息。",
                "buildType": "Debug",
                "settings": {  // 
                    "LOG_OUTPUT_CONSOLE_SW": "ON",
                    "EFORTRL_UNIT_TEST": "OFF",
                    "ENABLE_TEST": "OFF"
                }
            },
            "release": {
                "short": "Release",
                "long": "进行优化,提高速度 - 排除调试信息。",
                "buildType": "Release",
                "settings": {
                    "LOG_OUTPUT_CONSOLE_SW": "OFF"
                }
            },
            "unittest": {
                "short": "Test",
                "long": "打开单元测试与覆盖率测试报告。",
                "buildType": "Release",
                "settings": {
                    "LOG_OUTPUT_CONSOLE_SW": "ON",
                    "EFORTRL_UNIT_TEST": "ON",
                    "ENABLE_TEST": "ON",
                    "ENABLE_COVERAGE_REPORT": "ON"
                }
            },
            "minsize": {
                "short": "MinSizeRel",
                "long": "优化最小二进制大小 - 排除调试信息。",
                "buildType": "MinSizeRel"
            },
            "reldeb": {
                "short": "RelWithDebInfo",
                "long": "进行优化,提高速度 - 包括调试信息。",
                "buildType": "RelWithDebInfo"
            },
            "unspecified": {
                "short": "Unspecified",
                "long": "让 CMake 选择默认生成类型。",
                "buildType": "Unspecified"
            }
        }
    }
}

基于 VitePress 构建