mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-01 08:52:45 +00:00
Switched to a sane build system (CMake)
This commit is contained in:
parent
9cfd6d7ee2
commit
228bcfb685
36 changed files with 286 additions and 211 deletions
37
sailfish/CMakeLists.txt
Normal file
37
sailfish/CMakeLists.txt
Normal file
|
@ -0,0 +1,37 @@
|
|||
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)
|
||||
|
||||
add_executable(harbour-sailfin ${harbour-sailfin_SOURCES})
|
||||
target_link_libraries(harbour-sailfin PRIVATE Qt5::Gui Qt5::Qml Qt5::Quick SailfishApp::SailfishApp jellyfin-qt)
|
||||
|
||||
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
|
||||
)
|
|
@ -1,79 +0,0 @@
|
|||
# NOTICE:
|
||||
#
|
||||
# Application name defined in TARGET has a corresponding QML filename.
|
||||
# If name defined in TARGET is changed, the following needs to be done
|
||||
# to match new name:
|
||||
# - corresponding QML filename must be changed
|
||||
# - desktop icon filename must be changed
|
||||
# - desktop filename must be changed
|
||||
# - icon definition filename in desktop file must be changed
|
||||
# - translation filenames have to be changed
|
||||
|
||||
# The name of your application
|
||||
TARGET = harbour-sailfin
|
||||
|
||||
#INCLUDEPATH += ../core/include
|
||||
#DEPENDPATH += ../core
|
||||
#LIBS += -Lcore -lcore
|
||||
include(../core/defines.pri)
|
||||
include(../harbour-sailfin.pri)
|
||||
|
||||
# include our shared library and install it
|
||||
|
||||
LIBS += -L$$OUT_PWD/../core/lib -ljellyfin-qt
|
||||
core.files += ../core/lib
|
||||
core.path = /usr/share/$${TARGET}
|
||||
|
||||
INSTALLS += core
|
||||
|
||||
# Other configuration
|
||||
|
||||
CONFIG += sailfishapp # c++17
|
||||
|
||||
DISTFILES += \
|
||||
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
|
||||
|
||||
SOURCES += \
|
||||
src/harbour-sailfin.cpp
|
||||
|
||||
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
|
||||
|
||||
# to disable building translations every time, comment out the
|
||||
# following CONFIG line
|
||||
CONFIG += sailfishapp_i18n
|
|
@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include <sailfishapp.h>
|
||||
|
||||
#include <jellyfin.h>
|
||||
#include <JellyfinQt/jellyfin.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
// SailfishApp::main() will display "qml/harbour-sailfin.qml", if you need more
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue