mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-05-16 11:02:42 +00:00
Chris Josten
727e50cae1
- Application could not be launched by the invoker because of some missing compiler flags (-rdynamic -pie) - Private libraries were not found due to incorrect rpath being set - Moved the qml list of files for sailfish from qtquick to sailfish (Stupid mistake I made because my editor doesn't really differentiate between different files with the same name in different folders)
82 lines
2.5 KiB
CMake
82 lines
2.5 KiB
CMake
project(harbour-sailfin-sailfish)
|
|
|
|
# find_library(SAILFISH sailfishapp 1.0 REQUIRED)
|
|
find_package(Qt5 COMPONENTS Gui Qml Quick)
|
|
find_package(SailfishApp 1.0 REQUIRED)
|
|
|
|
set(harbour-sailfin_SOURCES
|
|
src/harbour-sailfin.cpp)
|
|
|
|
set(sailfin_QML_SOURCES
|
|
qml/Constants.qml
|
|
qml/Utils.js
|
|
qml/components/GlassyBackground.qml
|
|
qml/components/IconListItem.qml
|
|
qml/components/LibraryItemDelegate.qml
|
|
qml/components/MoreSection.qml
|
|
qml/components/PlainLabel.qml
|
|
qml/components/PlayToolbar.qml
|
|
qml/components/RemoteImage.qml
|
|
qml/components/Shim.qml
|
|
qml/components/UserGridDelegate.qml
|
|
qml/components/VideoPlayer.qml
|
|
qml/components/VideoTrackSelector.qml
|
|
qml/components/itemdetails/SeasonDetails.qml
|
|
qml/components/videoplayer/VideoError.qml
|
|
qml/components/videoplayer/VideoHud.qml
|
|
qml/cover/CoverPage.qml
|
|
qml/cover/PosterCover.qml
|
|
qml/cover/VideoCover.qml
|
|
qml/pages/LegalPage.qml
|
|
qml/pages/MainPage.qml
|
|
qml/pages/AboutPage.qml
|
|
qml/harbour-sailfin.qml
|
|
qml/pages/SettingsPage.qml
|
|
qml/pages/VideoPage.qml
|
|
qml/pages/itemdetails/BaseDetailPage.qml
|
|
qml/pages/itemdetails/CollectionPage.qml
|
|
qml/pages/itemdetails/EpisodePage.qml
|
|
qml/pages/itemdetails/FilmPage.qml
|
|
qml/pages/itemdetails/MusicAlbumPage.qml
|
|
qml/pages/itemdetails/SeasonPage.qml
|
|
qml/pages/itemdetails/SeriesPage.qml
|
|
qml/pages/itemdetails/UnsupportedPage.qml
|
|
qml/pages/itemdetails/VideoPage.qml
|
|
qml/pages/setup/AddServerConnectingPage.qml
|
|
qml/pages/setup/LoginDialog.qml
|
|
qml/qmldir)
|
|
|
|
add_executable(harbour-sailfin ${harbour-sailfin_SOURCES})
|
|
target_link_libraries(harbour-sailfin PRIVATE Qt5::Gui Qt5::Qml Qt5::Quick SailfishApp::SailfishApp
|
|
# Note: this may break when the compiler changes. -rdynamic and -pie seem to be needed for the
|
|
# invoker/booster to work
|
|
jellyfin-qt "-Wl,-rpath,${CMAKE_INSTALL_LIBDIR} -rdynamic -pie")
|
|
|
|
add_custom_target(harbour-sailfin-qml ${sailfin_QML_SOURCES})
|
|
|
|
install(TARGETS harbour-sailfin
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
install(DIRECTORY qml
|
|
DESTINATION share/harbour-sailfin
|
|
)
|
|
install(DIRECTORY translations
|
|
DESTINATION share/harbour-sailfin
|
|
FILES_MATCHING PATTERN "*.qm"
|
|
)
|
|
install(FILES harbour-sailfin.desktop
|
|
DESTINATION share/applications
|
|
)
|
|
install(FILES icons/86x86/harbour-sailfin.png
|
|
DESTINATION share/icons/hicolor/86x86/apps
|
|
)
|
|
install(FILES icons/108x108/harbour-sailfin.png
|
|
DESTINATION share/icons/hicolor/108x108/apps
|
|
)
|
|
install(FILES icons/128x128/harbour-sailfin.png
|
|
DESTINATION share/icons/hicolor/128x128/apps
|
|
)
|
|
install(FILES icons/172x172/harbour-sailfin.png
|
|
DESTINATION share/icons/hicolor/172x172/apps
|
|
)
|