Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-external-graphviz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- Static
config:
- qt_version: 6.6.2
qt_modules: qtscxml
qt_modules: qtscxml qtremoteobjects

steps:
- name: Install Dependencies on Linux
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- Static
config:
- qt_version: 6.6.2
qt_modules: qtscxml
qt_modules: qtscxml qtremoteobjects
qt_arch: win64_msvc2019_64
macos_architectures: "x86_64;arm64"
- qt_version: 6.9.0 # Bump to latest freely
qt_modules: qtscxml
qt_modules: qtscxml qtremoteobjects
qt_arch: win64_msvc2022_64
macos_architectures: "x86_64;arm64"
steps:
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindGraphviz.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ if(GRAPHVIZ_FOUND)
message(FATAL_ERROR "Unable to compile or run the graphviz version detection program.")
endif()
endif()
elseif()
else()
find_program(DOT_TOOL dot PATHS ${_GRAPHVIZ_ROOT}/bin)
execute_process(
COMMAND ${DOT_TOOL} -V
Expand Down
16 changes: 3 additions & 13 deletions examples/qscxmldebugger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,11 @@
#

add_executable(qscxmldebugger trafficlight.cpp main.cpp trafficlight-widgets-static.qrc)

# Copy the .rep file to your project
if(NOT KDSME_QT6)
qt_generate_repc(REPC_SRCS ../../src/debuginterface/debuginterface.rep REPLICA)
qt_add_repc_replicas(qscxmldebugger ../../src/debuginterface/debuginterface.rep)
qt_add_statecharts(qscxmldebugger statemachine.scxml)

qt_add_statecharts(STATECHART_SRCS statemachine.scxml)
# Work-around QTBUG-84387
# Needed in Qt5, otherwise we'll run into duplicate symbol issues like this:
# ld: error: duplicate symbol: TrafficLightStateMachine::qt_metacall(QMetaObject::Call, int, void**)
set_source_files_properties(${STATECHART_SRCS} PROPERTIES GENERATED TRUE SKIP_AUTOGEN ON)
target_sources(qscxmldebugger PRIVATE ${REPC_SRCS} ${STATECHART_SRCS})
endif()
if(KDSME_QT6)
qt_add_repc_replicas(qscxmldebugger ../../src/debuginterface/debuginterface.rep)
qt_add_statecharts(qscxmldebugger statemachine.scxml)
endif()
target_link_libraries(
qscxmldebugger
KDSME::Core
Expand Down
13 changes: 5 additions & 8 deletions examples/qsmdebugger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@
#

set(SRCS trafficlight.cpp main.cpp)
# Copy the .rep file to your project
if(NOT KDSME_QT6)
qt5_generate_repc(SRCS ../../src/debuginterface/debuginterface.rep REPLICA)
endif()

add_executable(qsmdebugger ${SRCS})
if(KDSME_QT6)
qt6_add_repc_replicas(qsmdebugger ../../src/debuginterface/debuginterface.rep)
target_link_libraries(qsmdebugger Qt6::StateMachine)
endif()

qt6_add_repc_replicas(qsmdebugger ../../src/debuginterface/debuginterface.rep)
target_link_libraries(qsmdebugger Qt6::StateMachine)

target_link_libraries(
qsmdebugger
KDSME::Core
Expand Down
23 changes: 2 additions & 21 deletions src/debuginterface/debuginterfaceclient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@
#

set(DEBUGINTERFACECLIENT_SRCS debuginterfaceclient.cpp)
if(NOT KDSME_QT6)
qt5_generate_repc(DEBUGINTERFACECLIENT_SRCS ../debuginterface.rep REPLICA)
endif()

add_library(kdstatemachineeditor_debuginterfaceclient ${DEBUGINTERFACECLIENT_SRCS})

if(KDSME_QT6)
qt6_add_repc_replicas(kdstatemachineeditor_debuginterfaceclient ../debuginterface.rep)
endif()
qt6_add_repc_replicas(kdstatemachineeditor_debuginterfaceclient ../debuginterface.rep)

add_library(KDSME::DebugInterfaceClient ALIAS kdstatemachineeditor_debuginterfaceclient)
target_link_libraries(
Expand Down Expand Up @@ -58,21 +53,7 @@ target_include_directories(
kdstatemachineeditor_debuginterfaceclient PUBLIC "$<BUILD_INTERFACE:${build_iface_dirs}>"
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_ROOT}>
)
if(NOT KDSME_QT6)
ecm_generate_pri_file(
BASE_NAME
KDSMEDebugInterfaceClient
LIB_NAME
kdstatemachineeditor_debuginterfaceclient
DEPS
""
FILENAME_VAR
PRI_FILENAME
INCLUDE_INSTALL_DIR
${INCLUDE_INSTALL_DIR}/debuginterfaceclient
)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
endif()

set_target_properties(
kdstatemachineeditor_debuginterfaceclient
PROPERTIES OUTPUT_NAME "kdstatemachineeditor_debuginterfaceclient${KDSME_LIBRARY_QTID}"
Expand Down
26 changes: 3 additions & 23 deletions src/debuginterface/debuginterfacesource/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ if(Qt${QT_VERSION_MAJOR}Scxml_FOUND)
list(APPEND QSMDEBUGINTERFACESOURCE_SRCS qscxmldebuginterfacesource.cpp)
endif()

if(NOT KDSME_QT6)
qt5_generate_repc(QSMDEBUGINTERFACESOURCE_SRCS ../debuginterface.rep SOURCE)
endif()

add_library(kdstatemachineeditor_debuginterfacesource STATIC ${QSMDEBUGINTERFACESOURCE_SRCS})

if(KDSME_QT6)
qt6_add_repc_sources(kdstatemachineeditor_debuginterfacesource ../debuginterface.rep)
target_link_libraries(kdstatemachineeditor_debuginterfacesource LINK_PRIVATE Qt6::StateMachine)
endif()
qt6_add_repc_sources(kdstatemachineeditor_debuginterfacesource ../debuginterface.rep)
target_link_libraries(kdstatemachineeditor_debuginterfacesource LINK_PRIVATE Qt6::StateMachine)

add_library(KDSME::DebugInterfaceSource ALIAS kdstatemachineeditor_debuginterfacesource)
target_link_libraries(
Expand Down Expand Up @@ -71,21 +65,7 @@ target_include_directories(
PUBLIC $<INSTALL_INTERFACE:${INCLUDE_INSTALL_ROOT}>
PRIVATE ../
)
if(NOT KDSME_QT6)
ecm_generate_pri_file(
BASE_NAME
KDSMEDebugInterfaceSource
LIB_NAME
kdstatemachineeditor_debuginterfacesource
DEPS
""
FILENAME_VAR
PRI_FILENAME
INCLUDE_INSTALL_DIR
${INCLUDE_INSTALL_DIR}/debuginterfacesource
)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
endif()

set_target_properties(
kdstatemachineeditor_debuginterfacesource
PROPERTIES OUTPUT_NAME "kdstatemachineeditor_debuginterfacesource${KDSME_LIBRARY_QTID}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void QScxmlDebugInterfaceSource::Private::handleStateConfigurationChanged()

StateMachineConfiguration config;
config.reserve(newConfig.size());
for (auto state : qAsConst(newConfig)) {
for (auto state : std::as_const(newConfig)) {
config << makeStateId(state);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void QsmDebugInterfaceSource::Private::handleStateConfigurationChanged()

StateMachineConfiguration config;
config.reserve(newConfig.size());
for (QAbstractState *state : qAsConst(newConfig)) {
for (QAbstractState *state : std::as_const(newConfig)) {
config << makeStateId(state);
}

Expand Down
Loading