use private linkage where possible
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Thu, 31 Oct 2013 12:39:22 +0000 (13:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 31 Oct 2013 22:18:18 +0000 (23:18 +0100)
Task-number: QTBUG-34463
Change-Id: Iffbeed2f1a27fd38b5960afa9715815ac11b722a
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/gsttools/gsttools.pro
src/multimedia/audio/audio.pri
src/multimedia/multimedia.pro
src/multimediawidgets/multimediawidgets.pro

index d24d893..4618496 100644 (file)
@@ -8,13 +8,13 @@ QT = core multimedia-private gui-private
 
 unix:!maemo*:contains(QT_CONFIG, alsa) {
 DEFINES += HAVE_ALSA
-LIBS += \
+LIBS_PRIVATE += \
     -lasound
 }
 
 CONFIG += link_pkgconfig
 
-PKGCONFIG += \
+PKGCONFIG_PRIVATE += \
     gstreamer-0.10 \
     gstreamer-base-0.10 \
     gstreamer-interfaces-0.10 \
@@ -22,11 +22,11 @@ PKGCONFIG += \
     gstreamer-video-0.10 \
     gstreamer-pbutils-0.10
 
-maemo*:PKGCONFIG +=gstreamer-plugins-bad-0.10
+maemo*: PKGCONFIG_PRIVATE +=gstreamer-plugins-bad-0.10
 
 config_resourcepolicy {
     DEFINES += HAVE_RESOURCE_POLICY
-    PKGCONFIG += libresourceqt5
+    PKGCONFIG_PRIVATE += libresourceqt5
 }
 
 # Header files must go inside source directory of a module
@@ -79,24 +79,24 @@ qtHaveModule(widgets) {
 }
 
 maemo6 {
-    PKGCONFIG += qmsystem2
+    PKGCONFIG_PRIVATE += qmsystem2
 
     contains(QT_CONFIG, opengles2):qtHaveModule(widgets) {
         PRIVATE_HEADERS += qgstreamergltexturerenderer_p.h
         SOURCES += qgstreamergltexturerenderer.cpp
         QT += opengl
-        LIBS += -lEGL -lgstmeegointerfaces-0.10
+        LIBS_PRIVATE += -lEGL -lgstmeegointerfaces-0.10
     }
 }
 
 config_gstreamer_appsrc {
-    PKGCONFIG += gstreamer-app-0.10
+    PKGCONFIG_PRIVATE += gstreamer-app-0.10
     PRIVATE_HEADERS += qgstappsrc_p.h
     SOURCES += qgstappsrc.cpp
 
     DEFINES += HAVE_GST_APPSRC
 
-    LIBS += -lgstapp-0.10
+    LIBS_PRIVATE += -lgstapp-0.10
 }
 
 HEADERS += $$PRIVATE_HEADERS
index f76d132..6fad660 100644 (file)
@@ -44,14 +44,14 @@ win32 {
     SOURCES += audio/qaudiodeviceinfo_win32_p.cpp \
                audio/qaudiooutput_win32_p.cpp \
                audio/qaudioinput_win32_p.cpp
-    LIBS += -lwinmm -lstrmiids -lole32 -loleaut32
+    LIBS_PRIVATE += -lwinmm -lstrmiids -lole32 -loleaut32
 }
 
 unix:!mac {
     config_pulseaudio {
         DEFINES += QT_NO_AUDIO_BACKEND
         CONFIG += link_pkgconfig
-        PKGCONFIG += libpulse
+        PKGCONFIG_PRIVATE += libpulse
 
         DEFINES += QT_MULTIMEDIA_PULSEAUDIO
         PRIVATE_HEADERS += audio/qsoundeffect_pulse_p.h
index ef6633b..8bcfd02 100644 (file)
@@ -65,6 +65,6 @@ MODULE_PLUGIN_TYPES = \
     audio \
     video/videonode
 
-win32:LIBS += -luuid
+win32: LIBS_PRIVATE += -luuid
 
 HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
index d477420..1cf3598 100644 (file)
@@ -35,7 +35,7 @@ maemo6 {
 
         SOURCES += qgraphicsvideoitem_maemo6.cpp
 
-        LIBS += -lX11
+        LIBS_PRIVATE += -lX11
     } else {
         SOURCES += qgraphicsvideoitem.cpp
     }