From 3d37b0521a73aa40abd9ef55a57faa2c9e2df6d2 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Fri, 2 Mar 2018 22:12:17 +0100 Subject: [PATCH 1/2] Make sure to create plugins and not generic libs --- youtube/youtube.pro | 1 + youtubeui/youtubeui.pro | 1 + 2 files changed, 2 insertions(+) diff --git a/youtube/youtube.pro b/youtube/youtube.pro index e8145e4..06eb4cf 100644 --- a/youtube/youtube.pro +++ b/youtube/youtube.pro @@ -10,6 +10,7 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets TARGET = youtube TEMPLATE = lib +CONFIG += plugin INCLUDEPATH += /usr/include/python3.6m unix:LIBS += -lqmmp -lqmmpui -lqjson -lPythonQt -lcurl diff --git a/youtubeui/youtubeui.pro b/youtubeui/youtubeui.pro index 3b638fd..77e8909 100644 --- a/youtubeui/youtubeui.pro +++ b/youtubeui/youtubeui.pro @@ -10,6 +10,7 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets TARGET = youtubeui TEMPLATE = lib +CONFIG += plugin unix:LIBS += -lqmmp -lqmmpui -lqjson From 26ee50661c5603fadfc4844fe24e66df32379aac Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Fri, 2 Mar 2018 22:16:30 +0100 Subject: [PATCH 2/2] Install plugin files in suitable destinations --- youtube/youtube.pro | 8 ++++++++ youtubeui/youtubeui.pro | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/youtube/youtube.pro b/youtube/youtube.pro index 06eb4cf..47fca74 100644 --- a/youtube/youtube.pro +++ b/youtube/youtube.pro @@ -12,6 +12,12 @@ TARGET = youtube TEMPLATE = lib CONFIG += plugin +isEmpty(LIBDIR) { + LIBDIR=/usr/lib +} + +target.path = $${LIBDIR}/qmmp/Transports + INCLUDEPATH += /usr/include/python3.6m unix:LIBS += -lqmmp -lqmmpui -lqjson -lPythonQt -lcurl @@ -30,3 +36,5 @@ HEADERS += \ youtubestreamreader.h \ youtubedl.h \ youtubeapi.h + +INSTALLS += target diff --git a/youtubeui/youtubeui.pro b/youtubeui/youtubeui.pro index 77e8909..6b98abe 100644 --- a/youtubeui/youtubeui.pro +++ b/youtubeui/youtubeui.pro @@ -12,6 +12,12 @@ TARGET = youtubeui TEMPLATE = lib CONFIG += plugin +isEmpty(LIBDIR) { + LIBDIR=/usr/lib +} + +target.path = $${LIBDIR}/qmmp/General + unix:LIBS += -lqmmp -lqmmpui -lqjson CONFIG += hide_symbols @@ -33,3 +39,4 @@ HEADERS += youtubewindow.h \ FORMS += youtubewindow.ui \ youtubepreferences.ui +INSTALLS += target