From 80cbf5622598b44355792a618517a8b48f9e5494 Mon Sep 17 00:00:00 2001 From: Chris Josten Date: Tue, 27 Oct 2020 16:31:34 +0100 Subject: [PATCH] Initial attempt to link blurhash library --- rpm/harbour-sailfin.yaml | 2 ++ sailfish/CMakeLists.txt | 9 +++++++++ 2 files changed, 11 insertions(+) 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)