Skip to content

Commit

Permalink
new cmake build option tailored for msys2 flavor of rssguard
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Nov 27, 2024
1 parent 8b5f7ec commit 6f160be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Binary file modified resources/scripts/clang-format/clang-format.exe
Binary file not shown.
24 changes: 14 additions & 10 deletions src/rssguard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,20 @@ elseif((MINGW AND BUILD_MSYS2) OR (UNIX AND NOT APPLE AND NOT ANDROID))
install(TARGETS app
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
)
install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
)
install(FILES ${CMAKE_SOURCE_DIR}/resources/graphics/${CMAKE_PROJECT_NAME}.png
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps
RENAME ${APP_REVERSE_NAME}.png
)

if (NOT BUILD_MSYS2)
# MSYS2 ecosystem does not need/want these files.
install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
)
install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
)
install(FILES ${CMAKE_SOURCE_DIR}/resources/graphics/${CMAKE_PROJECT_NAME}.png
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps
RENAME ${APP_REVERSE_NAME}.png
)
endif()
elseif(APPLE)
install(TARGETS app
DESTINATION Contents/MacOS
Expand Down

0 comments on commit 6f160be

Please sign in to comment.