Skip to content

Commit

Permalink
7.3.4
Browse files Browse the repository at this point in the history
updated QV, QK for MSP430
removed the unsupported esp-idf port
Cmake support
  • Loading branch information
quantum-leaps committed Mar 21, 2024
1 parent fcea994 commit 340b6bb
Show file tree
Hide file tree
Showing 29 changed files with 137 additions and 1,325 deletions.
33 changes: 11 additions & 22 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,36 +132,25 @@ add_subdirectory(src)
add_subdirectory(ports)

# set general defines
target_compile_definitions(qpc
PRIVATE
$<$<BOOL:${ADD_DEBUG_CODE}>:${ADD_DEBUG_CODE}>
$<$<BOOL:${QPC_CFG_GUI}>:QWIN_GUI>
$<$<CONFIG:Spy>:Q_SPY>
$<$<AND:$<CONFIG:Spy>,$<BOOL:${QPC_CFG_UNIT_TEST}>>:Q_UTEST>
target_compile_definitions(qpc PRIVATE
$<$<BOOL:${ADD_DEBUG_CODE}>:${ADD_DEBUG_CODE}>
$<$<BOOL:${QPC_CFG_GUI}>:QWIN_GUI>
# $<$<CONFIG:Spy>:Q_SPY> # set via toolchain file
$<$<AND:$<CONFIG:Spy>,$<BOOL:${QPC_CFG_UNIT_TEST}>>:Q_UTEST>
)

target_compile_options(qpc
PRIVATE
$<$<BOOL:${QPC_CFG_VERBOSE}>:-v>
target_compile_options(qpc PRIVATE
$<$<BOOL:${QPC_CFG_VERBOSE}>:-v>
)

target_link_options(qpc
PRIVATE
$<$<BOOL:${QPC_CFG_VERBOSE}>:-v>
target_link_options(qpc PRIVATE
$<$<BOOL:${QPC_CFG_VERBOSE}>:-v>
)

target_link_libraries(qpc
PUBLIC
$<$<AND:$<CONFIG:Spy>,$<STREQUAL:win32,${PORT}>>:ws2_32>
target_link_libraries(qpc PUBLIC
$<$<AND:$<CONFIG:Spy>,$<STREQUAL:win32,${PORT}>>:ws2_32>
)

# set position independent code compile/link parameters
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
include(CheckPIESupported)
check_pie_supported()
endif()
set_property(TARGET qpc PROPERTY POSITION_INDEPENDENT_CODE FALSE)

# print configuration
message(STATUS
"========================================================
Expand Down
1 change: 0 additions & 1 deletion ports/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# CMake the qpc libraries for different targets
# target may be "Windows", "Posix", "TLE984x"
set(PORT_DIR ${PORT})
if((PORT STREQUAL win32) OR (PORT STREQUAL posix))
if(QPC_CFG_UNIT_TEST)
Expand Down
3 changes: 0 additions & 3 deletions ports/arm-cm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ else()
target_include_directories(qpc PUBLIC ${KERNEL}/${_compiler_})
endif()

if(EXISTS ${KERNEL}/config)
target_include_directories(qpc PRIVATE ${KERNEL}/config)
endif()
target_sources(qpc PRIVATE ${KERNEL}/${_compiler_}/${qx_port_c})

3 changes: 1 addition & 2 deletions ports/arm-cr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ if(NOT KERNEL MATCHES "q[vk]")
message(WARNING "Kernel ${KERNEL} is not supported! Falling back to QV kernel")
set(KERNEL qv)
endif()
target_include_directories(qpc PUBLIC ${KERNEL}/${_compiler_} ${KERNEL}/config)

target_include_directories(qpc PUBLIC ${KERNEL}/${_compiler_})
3 changes: 0 additions & 3 deletions ports/esp-idf/CMakeLists.txt

This file was deleted.

29 changes: 0 additions & 29 deletions ports/esp-idf/README.md

This file was deleted.

Loading

0 comments on commit 340b6bb

Please sign in to comment.