Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Install the .prf to the correct location on Qt5
  • Loading branch information
Vesa Halttunen committed May 13, 2013
1 parent 3ae3aca commit 8be24c1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/lib.pro
Expand Up @@ -38,7 +38,8 @@ HEADERS += \
SOURCES += \
transferengineinterface.cpp

OTHER_FILES += nemotransfernegine.pc nemotransferengine-plugin.prf
equals(QT_MAJOR_VERSION, 4): OTHER_FILES += nemotransfernegine.pc nemotransferengine-plugin.prf
equals(QT_MAJOR_VERSION, 5): OTHER_FILES += nemotransfernegine-qt5.pc nemotransferengine-plugin-qt5.prf

headers.files = $$HEADERS
equals(QT_MAJOR_VERSION, 4): headers.path = /usr/include/TransferEngine
Expand All @@ -51,7 +52,8 @@ equals(QT_MAJOR_VERSION, 4): pkgconfigpc.files = nemotransferengine.pc
equals(QT_MAJOR_VERSION, 5): pkgconfigpc.files = nemotransferengine-qt5.pc

prf.path = $$[QT_INSTALL_DATA]/mkspecs/features
prf.files = nemotransferengine-plugin.prf
equals(QT_MAJOR_VERSION, 4): prf.files = nemotransferengine-plugin.prf
equals(QT_MAJOR_VERSION, 5): prf.files = nemotransferengine-plugin-qt5.prf


INSTALLS += target headers prf pkgconfigpc
26 changes: 26 additions & 0 deletions lib/nemotransferengine-plugin-qt5.prf
@@ -0,0 +1,26 @@
###################################################################
# transferengine plugin feature
###################################################################

!contains(DEFINES, BUILD_LIBTRANSFERENGINE) {

CONFIG += qt plugin
QT += network

LIBTRANSFERENGINE_INC_DIR = /usr/include/TransferEngine-qt5

INCLUDEPATH += $${LIBTRANSFERENGINE_INC_DIR}
DEPENDPATH += $${LIBTRANSFERENGINE_INC_DIR}

# We need to include these for MOC.
HEADERS += $${INCLUDEPATH}/transferplugininterface.h
HEADERS += $${INCLUDEPATH}/mediatransferinterface.h

LIBTRANSFERENGINE_LIB_DIR = /usr/lib
unix: QMAKE_FLAGS += $${QMAKE_LFLAGS_RPATH}$${LIBTRANSFERENGINE_LIB_DIR}
LIBS += -L$${LIBTRANSFERENGINE_LIB_DIR}
qtAddLibrary(nemotransferengine-qt5)
}



2 changes: 1 addition & 1 deletion rpm/transfer-engine-qt5.spec
Expand Up @@ -43,7 +43,7 @@ Requires: nemo-transferengine = %{version}
%files devel
%defattr(-,root,root,-)
%{_includedir}/TransferEngine-qt5/*.h
%{_datadir}/qt5/mkspecs/features/nemotransferengine-plugin.prf
%{_datadir}/qt5/mkspecs/features/nemotransferengine-plugin-qt5.prf
%{_libdir}/pkgconfig/nemotransferengine-qt5.pc

%package ts-devel
Expand Down

0 comments on commit 8be24c1

Please sign in to comment.