Feature: Desktop Builds x64 Linux - #3
Conversation
423c2dc to
99e2e22
Compare
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
…y boost missing Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
168e397 to
7124a57
Compare
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
|
|
||
| # 10. Translations | ||
| file(GLOB TS_FILES "langs/*.ts") | ||
| qt5_create_translation(DesktopEditors TS_FILES ${TS_FILES}) |
There was a problem hiding this comment.
| qt5_create_translation(DesktopEditors TS_FILES ${TS_FILES}) | |
| qt_create_translation(DesktopEditors TS_FILES ${TS_FILES}) |
| Qt${QT_VERSION_MAJOR}::Widgets | ||
| Qt${QT_VERSION_MAJOR}::Svg | ||
| Qt${QT_VERSION_MAJOR}::PrintSupport | ||
| Qt${QT_VERSION_MAJOR}::Multimedia | ||
| Qt${QT_VERSION_MAJOR}::MultimediaWidgets |
There was a problem hiding this comment.
| Qt${QT_VERSION_MAJOR}::Widgets | |
| Qt${QT_VERSION_MAJOR}::Svg | |
| Qt${QT_VERSION_MAJOR}::PrintSupport | |
| Qt${QT_VERSION_MAJOR}::Multimedia | |
| Qt${QT_VERSION_MAJOR}::MultimediaWidgets | |
| Qt::Widgets | |
| Qt::Svg | |
| Qt::PrintSupport | |
| Qt::Multimedia | |
| Qt::MultimediaWidgets |
Use qt versionless targets
| Qt${QT_VERSION_MAJOR}::DBus | ||
| Qt${QT_VERSION_MAJOR}::X11Extras |
There was a problem hiding this comment.
| Qt${QT_VERSION_MAJOR}::DBus | |
| Qt${QT_VERSION_MAJOR}::X11Extras | |
| Qt::DBus | |
| Qt::X11Extras |
| ${ICU_INSTALL_DIR_ABS}/lib/libicuuc.so.${ICU_MAJOR_VER} | ||
| ${ICU_INSTALL_DIR_ABS}/lib/libicudata.so.${ICU_MAJOR_VER} | ||
| ${ICU_INSTALL_DIR_ABS}/lib/libicui18n.so.${ICU_MAJOR_VER} |
There was a problem hiding this comment.
Ideally, this should use https://cmake.org/cmake/help/latest/module/FindICU.html because adding directly .so files to target_link_libraries is quite ugly
| set(QT_DIR "${QT_ROOT}/lib/cmake/Qt5") | ||
| set(Qt5_DIR "${QT_ROOT}/lib/cmake/Qt5") |
There was a problem hiding this comment.
| set(QT_DIR "${QT_ROOT}/lib/cmake/Qt5") | |
| set(Qt5_DIR "${QT_ROOT}/lib/cmake/Qt5") |
Not used
| qt5_add_resources(RESOURCES resources.qrc) | ||
| if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/extras.qrc") | ||
| qt5_add_resources(RESOURCES extras.qrc) |
There was a problem hiding this comment.
| qt5_add_resources(RESOURCES resources.qrc) | |
| if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/extras.qrc") | |
| qt5_add_resources(RESOURCES extras.qrc) | |
| qt_add_resources(RESOURCES resources.qrc) | |
| if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/extras.qrc") | |
| qt_add_resources(RESOURCES extras.qrc) |
| qt5_add_resources(RESOURCES extras.qrc) | ||
| endif() | ||
|
|
||
| add_executable(DesktopEditors ${COMMON_SOURCES} ${COMMON_HEADERS} ${RESOURCES}) |
There was a problem hiding this comment.
modern cmake would define the target on top and then use target_sources instead
| set_default_options(DesktopEditors) | ||
|
|
||
| find_package(PkgConfig REQUIRED) | ||
| pkg_check_modules(DBUS REQUIRED dbus-1) |
There was a problem hiding this comment.
| pkg_check_modules(DBUS REQUIRED dbus-1) | |
| pkg_check_modules(DBUS REQUIRED IMPORTED_TARGET dbus-1) |
| src/prop | ||
| src | ||
| ${GTK3_INCLUDE_DIRS} | ||
| ${DBUS_INCLUDE_DIRS} |
There was a problem hiding this comment.
| ${DBUS_INCLUDE_DIRS} |
| Qt${QT_VERSION_MAJOR}::Multimedia | ||
| Qt${QT_VERSION_MAJOR}::MultimediaWidgets | ||
| ${PLATFORM_LIBS} | ||
| ${DBUS_LIBRARIES} |
There was a problem hiding this comment.
| ${DBUS_LIBRARIES} | |
| PkgConfig::DBUS |
|
Thanks for the comments. We currently need qt5.9.9 for DesktopEditors to work, so we need to explicitly point to our own compiled version. I'll merge this now to have something working, but feel free to open a PR with improvements :) |
This PR introduces CMake as build routine for desktop-apps.
Depends on: Euro-Office/core#13, Euro-Office/desktop-sdk#1