[education/rkward] rkward: Fix Windows app icon
Thomas Friedrichsmeier
null at kde.org
Sat May 18 21:49:18 BST 2024
Git commit cf053d4ea4d839611fd33083ce1b64c8fefef87a by Thomas Friedrichsmeier.
Committed on 18/05/2024 at 20:49.
Pushed by tfry into branch 'master'.
Fix Windows app icon
M +11 -6 rkward/CMakeLists.txt
M +2 -1 rkward/autotests/core_test.cpp
https://invent.kde.org/education/rkward/-/commit/cf053d4ea4d839611fd33083ce1b64c8fefef87a
diff --git a/rkward/CMakeLists.txt b/rkward/CMakeLists.txt
index f7dcfcac6..efe44cbff 100644
--- a/rkward/CMakeLists.txt
+++ b/rkward/CMakeLists.txt
@@ -35,24 +35,29 @@ ENDIF(BUILD_TESTING)
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
-SET(RKWard_Sources
+# For auto-tests: pack everything except main in a dummy library
+SET(RKWard_Lib_Sources
rkward.cpp
robjectviewer.cpp
rkconsole.cpp
)
-QT_ADD_RESOURCES(RKWard_Sources resources.qrc icons/icons.qrc)
+QT_ADD_RESOURCES(RKWard_Lib_Sources resources.qrc icons/icons.qrc)
# somehow the detected R paths from FindR.cmake do not get passed down automatically
GET_DIRECTORY_PROPERTY(R_EXECUTABLE DIRECTORY rbackend DEFINITION R_EXECUTABLE)
GET_DIRECTORY_PROPERTY(R_SHAREDLIBDIR DIRECTORY rbackend LINK_DIRECTORIES)
LINK_DIRECTORIES(${R_SHAREDLIBDIR})
+ADD_LIBRARY(rkward_lib STATIC ${RKWard_Lib_Sources})
+TARGET_COMPILE_DEFINITIONS(rkward_lib PUBLIC -DR_EXECUTABLE="${R_EXECUTABLE}")
+
+SET(RKWard_App_Sources
+ main.cpp
+)
FILE(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/app-icon/*-apps-rkward.png")
# recent ECM versions will prefer the scalable version: prepend it to the icon source list (older versions generate a warning on the SVG, but so what):
-ECM_ADD_APP_ICON(RKWard_Sources ICONS ${CMAKE_CURRENT_SOURCE_DIR}/icons/app-icon/sc-apps-rkward.svgz ${ICON_SRCS})
-ADD_LIBRARY(rkward_lib STATIC ${RKWard_Sources}) # For auto-tests: pack everything except main in a dummy library
-TARGET_COMPILE_DEFINITIONS(rkward_lib PUBLIC -DR_EXECUTABLE="${R_EXECUTABLE}")
-ADD_EXECUTABLE(rkward main.cpp)
+ECM_ADD_APP_ICON(RKWard_App_Sources ICONS ${CMAKE_CURRENT_SOURCE_DIR}/icons/app-icon/sc-apps-rkward.svgz ${ICON_SRCS})
+ADD_EXECUTABLE(rkward ${RKWard_App_Sources})
# NOTE: These definitions are needed for the startup procedure (main.cpp), only.
# We should switch with to target_compile_definitions once we require CMAKE 2.6+
diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 8a1f959a6..e9502ea6f 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -372,7 +372,8 @@ private Q_SLOTS:
priority_command_done = true;
RInterface::instance()->cancelAll();
});
- waitForAllFinished(5000); // priority_command_done must remain in scope until done (even if interrupting fails for some reason)
+ waitForAllFinished();
+ waitForAllFinished(4000); // priority_command_done must remain in scope until done (even if interrupting fails for some reason)
}
void RKConsoleHistoryTest() {
More information about the rkward-tracker
mailing list