feat: 添加CM3/4/7的硬件与软件浮点单元构建矩阵,变更api接口为dr_*
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"version": 3,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "default",
|
||||
"displayName": "Host (native) build",
|
||||
"description": "Build with host compiler for development, testing, and examples",
|
||||
"binaryDir": "${sourceDir}/build/default",
|
||||
"cacheVariables": {
|
||||
"BUILD_TESTING": "ON",
|
||||
"BUILD_EXAMPLES": "ON"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm3",
|
||||
"displayName": "Cortex-M3 (soft-float)",
|
||||
"description": "ARM Cortex-M3, no FPU, software float ABI. Requires arm-none-eabi-gcc in PATH.",
|
||||
"binaryDir": "${sourceDir}/build/cm3",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m3 -mthumb -mfloat-abi=soft -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm4-soft",
|
||||
"displayName": "Cortex-M4 (soft-float)",
|
||||
"description": "ARM Cortex-M4, FPU present but soft-float ABI. Requires arm-none-eabi-gcc.",
|
||||
"binaryDir": "${sourceDir}/build/cm4-soft",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m4 -mthumb -mfloat-abi=soft -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm4-hard",
|
||||
"displayName": "Cortex-M4F (hard-float, FPv4-SP-D16)",
|
||||
"description": "ARM Cortex-M4 with single-precision FPU, hard-float ABI. Requires arm-none-eabi-gcc.",
|
||||
"binaryDir": "${sourceDir}/build/cm4-hard",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm7-soft",
|
||||
"displayName": "Cortex-M7 (soft-float)",
|
||||
"description": "ARM Cortex-M7, FPU present but soft-float ABI. Requires arm-none-eabi-gcc.",
|
||||
"binaryDir": "${sourceDir}/build/cm7-soft",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m7 -mthumb -mfloat-abi=soft -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm7-hard-sp",
|
||||
"displayName": "Cortex-M7F (hard-float, FPv5-SP-D16, single)",
|
||||
"description": "ARM Cortex-M7 with single-precision FPU, hard-float ABI. Requires arm-none-eabi-gcc.",
|
||||
"binaryDir": "${sourceDir}/build/cm7-hard-sp",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m7 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cm7-hard-dp",
|
||||
"displayName": "Cortex-M7F (hard-float, FPv5-D16, double)",
|
||||
"description": "ARM Cortex-M7 with double-precision FPU, hard-float ABI. Requires arm-none-eabi-gcc.",
|
||||
"binaryDir": "${sourceDir}/build/cm7-hard-dp",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_FLAGS": "-mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -Wall -Werror",
|
||||
"DR_SOURCE_ONLY": "ON",
|
||||
"BUILD_TESTING": "OFF",
|
||||
"BUILD_EXAMPLES": "OFF"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{ "name": "default", "configurePreset": "default" },
|
||||
{ "name": "cm3", "configurePreset": "cm3" },
|
||||
{ "name": "cm4-soft", "configurePreset": "cm4-soft" },
|
||||
{ "name": "cm4-hard", "configurePreset": "cm4-hard" },
|
||||
{ "name": "cm7-soft", "configurePreset": "cm7-soft" },
|
||||
{ "name": "cm7-hard-sp", "configurePreset": "cm7-hard-sp" },
|
||||
{ "name": "cm7-hard-dp", "configurePreset": "cm7-hard-dp" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user