summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-05 18:58:11 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-07 14:46:25 +0300
commit42907ab12ca18c43bf8b75bf733cd9619866d7b3 (patch)
treec83bd18a98a204580d611dbb7c5394e205378a8c
parentd8fb9ca603439c8ee4381e1e47012e2e40385cd4 (diff)
qt5: Fix library names in the .pc files and rename the .pc files too
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/QGlib/QtGLib-2.0.pc.in4
-rw-r--r--src/QGst/QtGStreamer-0.10.pc.in6
-rw-r--r--src/QGst/QtGStreamerUi-0.10.pc.in6
-rw-r--r--src/QGst/QtGStreamerUtils-0.10.pc.in6
5 files changed, 14 insertions, 11 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index faa0d6b..d680cf1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -78,6 +78,9 @@ file(GLOB_RECURSE PC_IN_FILES "*.pc.in")
foreach(pc_in_file ${PC_IN_FILES})
get_filename_component(pc_out_file ${pc_in_file} NAME)
string(REPLACE ".pc.in" ".pc" pc_out_file ${pc_out_file})
+ if (USE_QT5)
+ string(REPLACE "Qt" "Qt5" pc_out_file ${pc_out_file})
+ endif()
configure_file(${pc_in_file} ${CMAKE_CURRENT_BINARY_DIR}/${pc_out_file} @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pc_out_file}
DESTINATION ${QTGSTREAMER_PC_INSTALL_DIR})
diff --git a/src/QGlib/QtGLib-2.0.pc.in b/src/QGlib/QtGLib-2.0.pc.in
index bbf9006..525f0e8 100644
--- a/src/QGlib/QtGLib-2.0.pc.in
+++ b/src/QGlib/QtGLib-2.0.pc.in
@@ -3,10 +3,10 @@ exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@QTGSTREAMER_INCLUDES_INSTALL_DIR@
-Name: QtGLib-2.0
+Name: @QTGLIB_LIBRARY@-2.0
Description: Qt-style C++ bindings library for GLib & GObject
Requires: @PKG_CONFIG_QTCORE_DEP@
Requires.private: gobject-2.0
Version: @QTGSTREAMER_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lQtGLib-2.0
+Libs: -L${libdir} -l@QTGLIB_LIBRARY@-2.0
diff --git a/src/QGst/QtGStreamer-0.10.pc.in b/src/QGst/QtGStreamer-0.10.pc.in
index 784fbdc..2937a15 100644
--- a/src/QGst/QtGStreamer-0.10.pc.in
+++ b/src/QGst/QtGStreamer-0.10.pc.in
@@ -3,10 +3,10 @@ exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@QTGSTREAMER_INCLUDES_INSTALL_DIR@
-Name: QtGStreamer-0.10
+Name: @QTGSTREAMER_LIBRARY@-0.10
Description: Qt-style C++ bindings library for GStreamer
-Requires: QtGLib-2.0
+Requires: @QTGLIB_LIBRARY@-2.0
Requires.private: gstreamer-0.10 gstreamer-interfaces-0.10 gobject-2.0
Version: @QTGSTREAMER_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lQtGStreamer-0.10
+Libs: -L${libdir} -l@QTGSTREAMER_LIBRARY@-0.10
diff --git a/src/QGst/QtGStreamerUi-0.10.pc.in b/src/QGst/QtGStreamerUi-0.10.pc.in
index 017e177..feba52d 100644
--- a/src/QGst/QtGStreamerUi-0.10.pc.in
+++ b/src/QGst/QtGStreamerUi-0.10.pc.in
@@ -3,9 +3,9 @@ exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@QTGSTREAMER_INCLUDES_INSTALL_DIR@
-Name: QtGStreamerUi-0.10
+Name: @QTGSTREAMER_UI_LIBRARY@-0.10
Description: QtGui/QtWidgets GStreamer integration library
-Requires: @PKG_CONFIG_QTGUI_DEP@ QtGStreamer-0.10
+Requires: @PKG_CONFIG_QTGUI_DEP@ @QTGSTREAMER_LIBRARY@-0.10
Version: @QTGSTREAMER_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lQtGStreamerUi-0.10
+Libs: -L${libdir} -l@QTGSTREAMER_UI_LIBRARY@-0.10
diff --git a/src/QGst/QtGStreamerUtils-0.10.pc.in b/src/QGst/QtGStreamerUtils-0.10.pc.in
index 2785da2..7f94182 100644
--- a/src/QGst/QtGStreamerUtils-0.10.pc.in
+++ b/src/QGst/QtGStreamerUtils-0.10.pc.in
@@ -3,10 +3,10 @@ exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@QTGSTREAMER_INCLUDES_INSTALL_DIR@
-Name: QtGStreamerUtils-0.10
+Name: @QTGSTREAMER_UTILS_LIBRARY@-0.10
Description: QtGStreamer's high level utility classes
-Requires: QtGStreamer-0.10
+Requires: @QTGSTREAMER_LIBRARY@-0.10
Requires.private: gstreamer-0.10 gstreamer-app-0.10
Version: @QTGSTREAMER_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lQtGStreamerUtils-0.10
+Libs: -L${libdir} -l@QTGSTREAMER_UTILS_LIBRARY@-0.10