diff --git a/rpm/harbour-sailfin.yaml b/rpm/harbour-sailfin.yaml index ce5e129..9b71ade 100644 --- a/rpm/harbour-sailfin.yaml +++ b/rpm/harbour-sailfin.yaml @@ -16,6 +16,8 @@ Builder: cmake # This section specifies build dependencies that are resolved using pkgconfig. # This is the preferred way of specifying build dependencies for your package. +PkgBR: + - git PkgConfigBR: - sailfishapp >= 1.0.2 - Qt5Core diff --git a/sailfish/CMakeLists.txt b/sailfish/CMakeLists.txt index c41f2e0..847755e 100644 --- a/sailfish/CMakeLists.txt +++ b/sailfish/CMakeLists.txt @@ -1,6 +1,15 @@ project(harbour-sailfin-sailfish) # find_library(SAILFISH sailfishapp 1.0 REQUIRED) +include(ExternalProject) +# FIXME: don't hardcode /home/deploy/installroot/ +set(DEPLOY_ROOT /home/deploy/installroot/) +ExternalProject_Add(BlurhashQt + # PREFIX ${CMAKE_CURRENT_BINARY_DIR}/lib/blurhash-qt + GIT_REPOSITORY https://github.com/HenkKalkwater/BlurhashQt.git + GIT_TAG 6a0d05919a798eedeacdbc30507470b774b90f8d + + CMAKE_ARGS -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_EXPORT=OFF -DCMAKE_INSTALL_LIBDIR=${DEPLOY_ROOT}usr/share/harbour-sailfin/plugins) find_package(Qt5 COMPONENTS Gui Qml Quick) find_package(SailfishApp 1.0 REQUIRED)