init
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
cmake_minimum_required(VERSION 3.27)
|
||||
|
||||
# Roots
|
||||
include("../roots.cmake")
|
||||
|
||||
set(CONTEXT Robot_V2.Release+GD32C103CB)
|
||||
set(TARGET ${CONTEXT})
|
||||
set(OUT_DIR "${SOLUTION_ROOT}/out/Robot_V2/GD32C103CB/Release")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(HEX_FILE "Robot_V2.hex")
|
||||
set(LD_MAP_FILE "Robot_V2.axf.map")
|
||||
set(LD_SCRIPT "${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/ac6_linker_script.sct.src")
|
||||
set(LD_REGIONS "${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/regions_GD32C103CB.h")
|
||||
set(LD_SCRIPT_PP "${CMAKE_CURRENT_BINARY_DIR}/ac6_linker_script.sct")
|
||||
|
||||
# Processor Options
|
||||
set(CPU Cortex-M4)
|
||||
set(FPU SP_FPU)
|
||||
set(BYTE_ORDER Little-endian)
|
||||
|
||||
# Toolchain config map
|
||||
include("toolchain.cmake")
|
||||
|
||||
# Setup project
|
||||
project(${CONTEXT} LANGUAGES CXX C ASM)
|
||||
|
||||
# Compilation database
|
||||
add_custom_target(database
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${OUT_DIR}"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json" "${OUT_DIR}"
|
||||
)
|
||||
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
|
||||
# Setup context
|
||||
add_executable(${CONTEXT})
|
||||
set_target_properties(${CONTEXT} PROPERTIES PREFIX "" SUFFIX ".axf" OUTPUT_NAME "Robot_V2")
|
||||
set_target_properties(${CONTEXT} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUT_DIR})
|
||||
add_library(${CONTEXT}_GLOBAL INTERFACE)
|
||||
|
||||
# Includes
|
||||
target_include_directories(${CONTEXT} PUBLIC
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/_Release_GD32C103CB"
|
||||
"${CMSIS_PACK_ROOT}/ARM/CMSIS/4.5.0/CMSIS/Include"
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Include"
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Utilities"
|
||||
"${SOLUTION_ROOT}/Robot_V2"
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys"
|
||||
"${SOLUTION_ROOT}/Robot_V2/device"
|
||||
)
|
||||
|
||||
# Defines
|
||||
target_compile_definitions(${CONTEXT} PUBLIC
|
||||
$<$<COMPILE_LANGUAGE:C,CXX>:
|
||||
GD32C10x
|
||||
_RTE_
|
||||
>
|
||||
)
|
||||
|
||||
# Compile options
|
||||
target_compile_options(${CONTEXT} PUBLIC
|
||||
$<$<COMPILE_LANGUAGE:ASM>:
|
||||
"SHELL:${ASM_CPU}"
|
||||
"SHELL:${ASM_FLAGS}"
|
||||
"SHELL:${ASM_BYTE_ORDER}"
|
||||
"SHELL:-D__packed=packed"
|
||||
"SHELL:-D__MICROLIB"
|
||||
"SHELL:-gdwarf-5"
|
||||
"SHELL:-masm=auto"
|
||||
>
|
||||
$<$<COMPILE_LANGUAGE:C>:
|
||||
"SHELL:${CC_CPU}"
|
||||
"SHELL:${CC_FLAGS}"
|
||||
"SHELL:${CC_BYTE_ORDER}"
|
||||
"SHELL:-D__packed=packed"
|
||||
"SHELL:-fshort-enums"
|
||||
"SHELL:-fshort-wchar"
|
||||
"SHELL:-D__MICROLIB"
|
||||
"SHELL:-Wno-register"
|
||||
"SHELL:-gdwarf-5"
|
||||
"SHELL:-std=gnu11"
|
||||
"SHELL:-Wno-macro-redefined"
|
||||
"SHELL:-Wno-pragma-pack"
|
||||
"SHELL:-Wno-parentheses-equality"
|
||||
"SHELL:-Wno-license-management"
|
||||
>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:
|
||||
"SHELL:${CXX_CPU}"
|
||||
"SHELL:${CXX_FLAGS}"
|
||||
"SHELL:${CXX_BYTE_ORDER}"
|
||||
"SHELL:-fshort-enums"
|
||||
"SHELL:-fshort-wchar"
|
||||
"SHELL:-D__MICROLIB"
|
||||
"SHELL:-Wno-register"
|
||||
"SHELL:-gdwarf-5"
|
||||
"SHELL:-Wno-macro-redefined"
|
||||
"SHELL:-Wno-pragma-pack"
|
||||
"SHELL:-Wno-parentheses-equality"
|
||||
"SHELL:-Wno-license-management"
|
||||
>
|
||||
)
|
||||
|
||||
# Compile Options Abstractions
|
||||
add_library(${CONTEXT}_ABSTRACTIONS INTERFACE)
|
||||
cbuild_set_options_flags(CXX "balanced" "off" "" "" CXX_OPTIONS_FLAGS_${CONTEXT})
|
||||
cbuild_set_options_flags(CC "balanced" "off" "" "" CC_OPTIONS_FLAGS_${CONTEXT})
|
||||
cbuild_set_options_flags(ASM "balanced" "off" "" "" ASM_OPTIONS_FLAGS_${CONTEXT})
|
||||
target_compile_options(${CONTEXT}_ABSTRACTIONS INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:
|
||||
"SHELL:${CXX_OPTIONS_FLAGS_${CONTEXT}}"
|
||||
>
|
||||
$<$<COMPILE_LANGUAGE:C>:
|
||||
"SHELL:${CC_OPTIONS_FLAGS_${CONTEXT}}"
|
||||
>
|
||||
$<$<COMPILE_LANGUAGE:ASM>:
|
||||
"SHELL:${ASM_OPTIONS_FLAGS_${CONTEXT}}"
|
||||
>
|
||||
)
|
||||
|
||||
# Add groups and components
|
||||
include("groups.cmake")
|
||||
include("components.cmake")
|
||||
|
||||
target_link_libraries(${CONTEXT} PUBLIC
|
||||
Group_Source_Files
|
||||
Group_sys
|
||||
Group_device
|
||||
ARM_CMSIS_CORE_4_3_0
|
||||
GigaDevice_Device_EVAL_GD32C10x_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0
|
||||
GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0
|
||||
GigaDevice_Device_GD32C10x_libopt_1_0_0
|
||||
GigaDevice_Device_Startup_1_0_0
|
||||
)
|
||||
|
||||
# Linker options
|
||||
target_link_options(${CONTEXT} PUBLIC
|
||||
"SHELL:${LD_CPU}"
|
||||
"SHELL:${_LS}\"${LD_SCRIPT_PP}\""
|
||||
"SHELL:${LD_MAP}"
|
||||
"SHELL:--library_type=microlib"
|
||||
"SHELL:--entry=Reset_Handler"
|
||||
"SHELL:--info=summarysizes"
|
||||
"SHELL:--summary_stderr"
|
||||
"SHELL:--diag_suppress=L6314W"
|
||||
)
|
||||
set(LD_DEPS ${LD_SCRIPT} ${LD_REGIONS})
|
||||
set_target_properties(${CONTEXT} PROPERTIES LINK_DEPENDS "${LD_DEPS}")
|
||||
|
||||
# Linker script pre-processing
|
||||
add_custom_command(TARGET ${CONTEXT} PRE_LINK COMMAND ${CPP} ARGS ${CPP_ARGS_LD_SCRIPT} BYPRODUCTS ${LD_SCRIPT_PP})
|
||||
|
||||
# Hex Conversion
|
||||
add_custom_command(TARGET ${CONTEXT} POST_BUILD COMMAND ${CMAKE_OBJCOPY} ${ELF2HEX})
|
||||
@@ -0,0 +1,306 @@
|
||||
# components.cmake
|
||||
|
||||
# component ARM::CMSIS:CORE@4.3.0
|
||||
add_library(ARM_CMSIS_CORE_4_3_0 INTERFACE)
|
||||
target_include_directories(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/ARM/CMSIS/4.5.0/CMSIS/Include"
|
||||
)
|
||||
target_compile_definitions(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_link_libraries(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:EVAL:GD32C10x@1.0.0
|
||||
add_library(GigaDevice_Device_EVAL_GD32C10x_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_eval.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Utilities"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:BKP@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_bkp.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_BKP_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:CAN@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_can.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:CRC@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_crc.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:DBG@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dbg.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:DMA@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dma.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:EXTI@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_exti.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:FMC@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fmc.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:FWDGT@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fwdgt.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:GPIO@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_gpio.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:MISC@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_misc.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:PMU@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_pmu.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:RCU@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_rcu.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_StdPeripherals:USART@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_usart.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:GD32C10x_libopt@1.0.0
|
||||
add_library(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE)
|
||||
target_include_directories(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Include"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# component GigaDevice::Device:Startup@1.0.0
|
||||
add_library(GigaDevice_Device_Startup_1_0_0 OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/startup_gd32c10x.s"
|
||||
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/system_gd32c10x.c"
|
||||
)
|
||||
target_include_directories(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Include"
|
||||
)
|
||||
target_compile_definitions(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
target_compile_options(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
set(COMPILE_DEFINITIONS
|
||||
GD32C10x
|
||||
_RTE_
|
||||
)
|
||||
cbuild_set_defines(AS_ARM COMPILE_DEFINITIONS)
|
||||
set_source_files_properties("${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/startup_gd32c10x.s" PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_DEFINITIONS}"
|
||||
)
|
||||
@@ -0,0 +1,70 @@
|
||||
# groups.cmake
|
||||
|
||||
# group Source Files
|
||||
add_library(Group_Source_Files OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/main.cpp"
|
||||
)
|
||||
target_include_directories(Group_Source_Files PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${SOLUTION_ROOT}/Robot_V2"
|
||||
)
|
||||
target_compile_definitions(Group_Source_Files PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
add_library(Group_Source_Files_ABSTRACTIONS INTERFACE)
|
||||
target_link_libraries(Group_Source_Files_ABSTRACTIONS INTERFACE
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
target_compile_options(Group_Source_Files PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(Group_Source_Files PUBLIC
|
||||
Group_Source_Files_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# group sys
|
||||
add_library(Group_sys OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys/systick.cpp"
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys/initial.cpp"
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys/flash.cpp"
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys/OTA.cpp"
|
||||
)
|
||||
target_include_directories(Group_sys PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${SOLUTION_ROOT}/Robot_V2/sys"
|
||||
)
|
||||
target_compile_definitions(Group_sys PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
add_library(Group_sys_ABSTRACTIONS INTERFACE)
|
||||
target_link_libraries(Group_sys_ABSTRACTIONS INTERFACE
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
target_compile_options(Group_sys PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(Group_sys PUBLIC
|
||||
Group_sys_ABSTRACTIONS
|
||||
)
|
||||
|
||||
# group device
|
||||
add_library(Group_device OBJECT
|
||||
"${SOLUTION_ROOT}/Robot_V2/device/Can.cpp"
|
||||
)
|
||||
target_include_directories(Group_device PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
||||
"${SOLUTION_ROOT}/Robot_V2/device"
|
||||
)
|
||||
target_compile_definitions(Group_device PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
add_library(Group_device_ABSTRACTIONS INTERFACE)
|
||||
target_link_libraries(Group_device_ABSTRACTIONS INTERFACE
|
||||
${CONTEXT}_ABSTRACTIONS
|
||||
)
|
||||
target_compile_options(Group_device PUBLIC
|
||||
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
||||
)
|
||||
target_link_libraries(Group_device PUBLIC
|
||||
Group_device_ABSTRACTIONS
|
||||
)
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake
|
||||
|
||||
set(command "C:/Users/cbb/.vcpkg/artifacts/2139c4c6/tools.kitware.cmake/3.31.5/bin/cmake.exe;-G;Ninja;-S;G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB;-B;G:/Robot_v2/BOOT/tmp/1;-DSOLUTION_ROOT=G:/Robot_v2/BOOT;-DCMSIS_PACK_ROOT=C:/Users/cbb/AppData/Local/arm/packs;-DCMSIS_COMPILER_ROOT=C:/Users/cbb/.vscode/extensions/arm.cmsis-csolution-1.64.1-win32-x64/tools/cmsis-toolbox/etc")
|
||||
set(log_merged "")
|
||||
set(log_output_on_failure "ON")
|
||||
set(stdout_log "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-configure-out.log")
|
||||
set(stderr_log "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-configure-err.log")
|
||||
execute_process(
|
||||
COMMAND ${command}
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_FILE "${stdout_log}"
|
||||
ERROR_FILE "${stderr_log}"
|
||||
)
|
||||
macro(read_up_to_max_size log_file output_var)
|
||||
file(SIZE ${log_file} determined_size)
|
||||
set(max_size 10240)
|
||||
if (determined_size GREATER max_size)
|
||||
math(EXPR seek_position "${determined_size} - ${max_size}")
|
||||
file(READ ${log_file} ${output_var} OFFSET ${seek_position})
|
||||
set(${output_var} "...skipping to end...\n${${output_var}}")
|
||||
else()
|
||||
file(READ ${log_file} ${output_var})
|
||||
endif()
|
||||
endmacro()
|
||||
if(result)
|
||||
set(msg "Command failed: ${result}\n")
|
||||
foreach(arg IN LISTS command)
|
||||
set(msg "${msg} '${arg}'")
|
||||
endforeach()
|
||||
if (${log_merged})
|
||||
set(msg "${msg}\nSee also\n ${stderr_log}")
|
||||
else()
|
||||
set(msg "${msg}\nSee also\n G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-configure-*.log")
|
||||
endif()
|
||||
if (${log_output_on_failure})
|
||||
message(SEND_ERROR "${msg}")
|
||||
if (${log_merged})
|
||||
read_up_to_max_size("${stderr_log}" error_log_contents)
|
||||
message(STATUS "Log output is:\n${error_log_contents}")
|
||||
else()
|
||||
read_up_to_max_size("${stdout_log}" out_log_contents)
|
||||
read_up_to_max_size("${stderr_log}" err_log_contents)
|
||||
message(STATUS "stdout output is:\n${out_log_contents}")
|
||||
message(STATUS "stderr output is:\n${err_log_contents}")
|
||||
endif()
|
||||
message(FATAL_ERROR "Stopping after outputting logs.")
|
||||
else()
|
||||
message(FATAL_ERROR "${msg}")
|
||||
endif()
|
||||
else()
|
||||
if(NOT "Ninja" MATCHES "Ninja")
|
||||
set(msg "Robot_V2.Release+GD32C103CB configure command succeeded. See also G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-configure-*.log")
|
||||
message(STATUS "${msg}")
|
||||
endif()
|
||||
endif()
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
-- The CXX compiler identification is ARMClang 6.24.0
|
||||
-- The C compiler identification is ARMClang 6.24.0
|
||||
-- The ASM compiler identification is ARMClang
|
||||
-- Found assembler: c:/Users/cbb/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.24.0/bin/armclang.exe
|
||||
-- Detecting CXX compiler ABI info
|
||||
-- Detecting CXX compiler ABI info - done
|
||||
-- Check for working CXX compiler: c:/Users/cbb/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.24.0/bin/armclang.exe - skipped
|
||||
-- Detecting CXX compile features
|
||||
-- Detecting CXX compile features - done
|
||||
-- Detecting C compiler ABI info
|
||||
-- Detecting C compiler ABI info - done
|
||||
-- Check for working C compiler: c:/Users/cbb/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.24.0/bin/armclang.exe - skipped
|
||||
-- Detecting C compile features
|
||||
-- Detecting C compile features - done
|
||||
-- Configuring done (7.8s)
|
||||
-- Generating done (0.1s)
|
||||
-- Build files have been written to: G:/Robot_v2/BOOT/tmp/1
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake
|
||||
|
||||
set(command "C:/Users/cbb/.vcpkg/artifacts/2139c4c6/tools.kitware.cmake/3.31.5/bin/cmake.exe;--build;G:/Robot_v2/BOOT/tmp/1;--target;database")
|
||||
set(log_merged "")
|
||||
set(log_output_on_failure "ON")
|
||||
set(stdout_log "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-database-out.log")
|
||||
set(stderr_log "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-database-err.log")
|
||||
execute_process(
|
||||
COMMAND ${command}
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_FILE "${stdout_log}"
|
||||
ERROR_FILE "${stderr_log}"
|
||||
)
|
||||
macro(read_up_to_max_size log_file output_var)
|
||||
file(SIZE ${log_file} determined_size)
|
||||
set(max_size 10240)
|
||||
if (determined_size GREATER max_size)
|
||||
math(EXPR seek_position "${determined_size} - ${max_size}")
|
||||
file(READ ${log_file} ${output_var} OFFSET ${seek_position})
|
||||
set(${output_var} "...skipping to end...\n${${output_var}}")
|
||||
else()
|
||||
file(READ ${log_file} ${output_var})
|
||||
endif()
|
||||
endmacro()
|
||||
if(result)
|
||||
set(msg "Command failed: ${result}\n")
|
||||
foreach(arg IN LISTS command)
|
||||
set(msg "${msg} '${arg}'")
|
||||
endforeach()
|
||||
if (${log_merged})
|
||||
set(msg "${msg}\nSee also\n ${stderr_log}")
|
||||
else()
|
||||
set(msg "${msg}\nSee also\n G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-database-*.log")
|
||||
endif()
|
||||
if (${log_output_on_failure})
|
||||
message(SEND_ERROR "${msg}")
|
||||
if (${log_merged})
|
||||
read_up_to_max_size("${stderr_log}" error_log_contents)
|
||||
message(STATUS "Log output is:\n${error_log_contents}")
|
||||
else()
|
||||
read_up_to_max_size("${stdout_log}" out_log_contents)
|
||||
read_up_to_max_size("${stderr_log}" err_log_contents)
|
||||
message(STATUS "stdout output is:\n${out_log_contents}")
|
||||
message(STATUS "stderr output is:\n${err_log_contents}")
|
||||
endif()
|
||||
message(FATAL_ERROR "Stopping after outputting logs.")
|
||||
else()
|
||||
message(FATAL_ERROR "${msg}")
|
||||
endif()
|
||||
else()
|
||||
if(NOT "Ninja" MATCHES "Ninja")
|
||||
set(msg "Robot_V2.Release+GD32C103CB database command succeeded. See also G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/Robot_V2.Release+GD32C103CB-database-*.log")
|
||||
message(STATUS "${msg}")
|
||||
endif()
|
||||
endif()
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1/1] C:\WINDOWS\system32\cmd.exe /C "cd /D G:\Robot_v2\BOOT\tmp\1 && C:\Users\cbb\.vcpkg\artifacts\2139c4c6\tools.kitware.cmake\3.31.5\bin\cmake.exe -E make_directory G:/Robot_v2/BOOT/out/Robot_V2/GD32C103CB/Release && C:\Users\cbb\.vcpkg\artifacts\2139c4c6\tools.kitware.cmake\3.31.5\bin\cmake.exe -E copy_if_different G:/Robot_v2/BOOT/tmp/1/compile_commands.json G:/Robot_v2/BOOT/out/Robot_V2/GD32C103CB/Release"
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# This is a generated file and its contents are an internal implementation detail.
|
||||
# The update step will be re-executed if anything in this file changes.
|
||||
# No other meaning or use of this file is supported.
|
||||
|
||||
command=
|
||||
work_dir=
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
# This is a generated file and its contents are an internal implementation detail.
|
||||
# The download step will be re-executed if anything in this file changes.
|
||||
# No other meaning or use of this file is supported.
|
||||
|
||||
method=source_dir
|
||||
command=
|
||||
source_dir=G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB
|
||||
work_dir=
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# This is a generated file and its contents are an internal implementation detail.
|
||||
# The patch step will be re-executed if anything in this file changes.
|
||||
# No other meaning or use of this file is supported.
|
||||
|
||||
command (connected)=
|
||||
command (disconnected)=
|
||||
work_dir=
|
||||
@@ -0,0 +1 @@
|
||||
cmd='C:/Users/cbb/.vcpkg/artifacts/2139c4c6/tools.kitware.cmake/3.31.5/bin/cmake.exe;-G;Ninja;-S;<SOURCE_DIR>;-B;<BINARY_DIR>;-DSOLUTION_ROOT=G:/Robot_v2/BOOT;-DCMSIS_PACK_ROOT=C:/Users/cbb/AppData/Local/arm/packs;-DCMSIS_COMPILER_ROOT=C:/Users/cbb/.vscode/extensions/arm.cmsis-csolution-1.64.1-win32-x64/tools/cmsis-toolbox/etc'
|
||||
@@ -0,0 +1,27 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake
|
||||
|
||||
# If CMAKE_DISABLE_SOURCE_CHANGES is set to true and the source directory is an
|
||||
# existing directory in our source tree, calling file(MAKE_DIRECTORY) on it
|
||||
# would cause a fatal error, even though it would be a no-op.
|
||||
if(NOT EXISTS "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB")
|
||||
file(MAKE_DIRECTORY "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB")
|
||||
endif()
|
||||
file(MAKE_DIRECTORY
|
||||
"G:/Robot_v2/BOOT/tmp/1"
|
||||
"G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB"
|
||||
"G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/tmp"
|
||||
"G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp"
|
||||
"G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src"
|
||||
"G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp"
|
||||
)
|
||||
|
||||
set(configSubDirs )
|
||||
foreach(subDir IN LISTS configSubDirs)
|
||||
file(MAKE_DIRECTORY "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp/${subDir}")
|
||||
endforeach()
|
||||
if(cfgdir)
|
||||
file(MAKE_DIRECTORY "G:/Robot_v2/BOOT/tmp/Robot_V2.Release+GD32C103CB/src/Robot_V2.Release+GD32C103CB-stamp${cfgdir}") # cfgdir has leading slash
|
||||
endif()
|
||||
@@ -0,0 +1,6 @@
|
||||
# toolchain.cmake
|
||||
|
||||
set(REGISTERED_TOOLCHAIN_ROOT "c:/Users/cbb/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.24.0/bin/")
|
||||
set(REGISTERED_TOOLCHAIN_VERSION "6.24.0")
|
||||
include("${CMSIS_COMPILER_ROOT}/AC6.6.16.2.cmake")
|
||||
|
||||
Reference in New Issue
Block a user