Skip to content

Commit

Permalink
Merge branch 'jb49681' into 'master'
Browse files Browse the repository at this point in the history
Use qmake properties instead of hardcoded paths.

See merge request mer-core/libresourceqt!7
  • Loading branch information
jusa committed May 27, 2020
2 parents cd0ce5a + 28bf20f commit 8228f98
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 32 deletions.
4 changes: 2 additions & 2 deletions libdbus-qeventloop/libdbus-qeventloop.pro
Expand Up @@ -38,8 +38,8 @@ DEFINES += QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT QT_NO_DEBUG_STREAM

# Install directives
headers.files = $$HEADERS
INSTALLBASE = /usr
target.path = $$INSTALLBASE/lib
INSTALLBASE = $$[QT_INSTALL_PREFIX]
target.path = $$[QT_INSTALL_LIBS]
headers.path = $$INSTALLBASE/include

QMAKE_PKGCONFIG_NAME = libdbus-qeventloop5
Expand Down
4 changes: 2 additions & 2 deletions libmediaoverridesqt/libmediaoverridesqt.pro
Expand Up @@ -26,8 +26,8 @@ QMAKE_DISTCLEAN += -r moc build

# Install directives
headers.files = $${PUBLIC_HEADERS}
INSTALLBASE = /usr
target.path = $${INSTALLBASE}/lib
INSTALLBASE = $$[QT_INSTALL_PREFIX]
target.path = $$[QT_INSTALL_LIBS]
headers.path = $${INSTALLBASE}/include/resource/qt5/policy

QMAKE_PKGCONFIG_NAME = libmediaoverridesqt5
Expand Down
4 changes: 2 additions & 2 deletions libresourceqt/libresourceqt.pro
Expand Up @@ -53,8 +53,8 @@ PKGCONFIG += dbus-1 libresource

# Install directives
headers.files = $${PUBLIC_HEADERS}
INSTALLBASE = /usr
target.path = $${INSTALLBASE}/lib
INSTALLBASE = $$[QT_INSTALL_PREFIX]
target.path = $$[QT_INSTALL_LIBS]
headers.path = $${INSTALLBASE}/include/resource/qt5/policy

man.files = docs/man
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark-resource-set/benchmark-resource-set.pro
Expand Up @@ -42,5 +42,5 @@ QT -= gui
QT += testlib
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-acquire/test-acquire.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-always-reply/test-always-reply.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-audio-resource/test-audio-resource.pro
Expand Up @@ -37,5 +37,5 @@ CONFIG += qt debug warn_on
QT += testlib
QT -= gui

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-auto-release/test-auto-release.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-init-and-connect/test-init-and-connect.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-looping/test-looping.pro
Expand Up @@ -42,5 +42,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
3 changes: 1 addition & 2 deletions tests/test-memory-leaks/test-memory-leaks.pro
Expand Up @@ -40,6 +40,5 @@ QT -= gui
PKGCONFIG += dbus-1 libresource

# Install directives
INSTALLBASE = /usr
target.path = $${INSTALLBASE}/lib/libresourceqt-tests/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
6 changes: 2 additions & 4 deletions tests/test-resource-engine/test-resource-engine.pro
Expand Up @@ -52,10 +52,8 @@ QT -= gui
PKGCONFIG += dbus-1

# Install directives
INSTALLBASE = /usr
target.path = $${INSTALLBASE}/lib/libresourceqt-tests/

wrapper.path = $${INSTALLBASE}/lib/libresourceqt-tests/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
wrapper.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
wrapper.files = test-resource-engine-wrapper

INSTALLS = target wrapper
2 changes: 1 addition & 1 deletion tests/test-resource-set/test-resource-set.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-resource/test-resource.pro
Expand Up @@ -36,5 +36,5 @@ CONFIG += qt debug warn_on
QT += testlib
QT -= gui

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
Expand Up @@ -33,7 +33,6 @@ SOURCES += test-security.cpp
LIBS += -L$${LIBDBUSQEVENTLOOP}/build -L$${LIBRESOURCEQT}/build -ldbus-qeventloop -lresourceqt

# Install options
target.path = /usr/lib/libresourceqt-tests/
#target.files = test-security-with-aegis-token
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/

INSTALLS = target
Expand Up @@ -33,9 +33,7 @@ SOURCES += test-security.cpp
LIBS += -L$${LIBDBUSQEVENTLOOP}/build -L$${LIBRESOURCEQT}/build -ldbus-qeventloop -lresourceqt

# Install options
# Install options
target.path = /usr/lib/libresourceqt-tests/
#target.files = test-security-without-aegis-token
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/

INSTALLS = target

2 changes: 1 addition & 1 deletion tests/test-update/test-update.pro
Expand Up @@ -39,5 +39,5 @@ QT += testlib
QT -= gui
PKGCONFIG += dbus-1 libresource

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 1 addition & 1 deletion tests/test-video-resource/test-video-resource.pro
Expand Up @@ -37,5 +37,5 @@ CONFIG += qt debug warn_on
QT += testlib
QT -= gui

target.path = $${INSTALLBASE}/lib/$${TESTSTARGETDIR}/
target.path = $$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}/
INSTALLS = target
2 changes: 0 additions & 2 deletions tests/test_common.pri
Expand Up @@ -6,5 +6,3 @@ LIBS += $$DBUSQEVENTLOOPLIB
INCLUDEPATH += $$PUBLIC_INCLUDE

TESTSTARGETDIR = libresourceqt-qt5-tests

INSTALLBASE = /usr
2 changes: 1 addition & 1 deletion tests/tests.pro
Expand Up @@ -41,7 +41,7 @@ unix{
testsxml.files = tests.xml
testsxml.target = tests.xml
testsxml.CONFIG = no_check_exist
testsxml.commands = sed \'s%@PATH@%/usr/lib/$${TESTSTARGETDIR}%\' $$PWD/tests.xml.in > $$PWD/tests.xml
testsxml.commands = sed \'s%@PATH@%$$[QT_INSTALL_LIBS]/$${TESTSTARGETDIR}%\' $$PWD/tests.xml.in > $$PWD/tests.xml
QMAKE_DISTCLEAN += tests.xml
}
Expand Down

0 comments on commit 8228f98

Please sign in to comment.