• Jocelyn Turcotte's avatar
    Remove the need for application to set an RPATH. · 175cc28b
    Jocelyn Turcotte authored
    
    The WebEngineWidgets module and the WebEngine QtQuick plugin libraries
    already have the RPATH set properly in their headers and the application
    won't need to link any symbol directly to the Core library.
    
    Remove the RPATH directive for examples and tests and fix the build issue
    by making sure that the link directive isn't passed to dependencies
    through the prl or pkgconfig file.
    
    Change-Id: Id1f5efb8c9823613e804e8e6356d711d561d72ec
    Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
    175cc28b
widgets.pro 980 bytes
# Use Qt5 module system
load(qt_build_config)
TEMPLATE = lib
TARGET = QtWebEngineWidgets
MODULE = webenginewidgets
# For our export macros
DEFINES += QT_BUILD_WEBENGINEWIDGETS_LIB
CONFIG += c++11
QT += widgets
QT_PRIVATE += widgets-private gui-private core-private
# FIXME: all this should eventually be turned into QT += webenginecore
macx:LIBPATH = $$getOutDir()/$$getConfigDir()
else:LIBPATH = $$getOutDir()/$$getConfigDir()/lib
LIBS_PRIVATE += -lQt5WebEngineCore -L$$LIBPATH
QMAKE_RPATHDIR += $$LIBPATH
DESTDIR = $$LIBPATH
INCLUDEPATH += Api ../
SOURCES = \
        Api/qwebenginehistory.cpp \
        Api/qwebenginepage.cpp \
        Api/qwebengineview.cpp\
        render_widget_host_view_qt_delegate_widget.cpp
HEADERS = \
        Api/qtwebenginewidgetsglobal.h \
        Api/qwebenginehistory.h \
        Api/qwebenginepage.h \
        Api/qwebengineview.h \
        Api/qwebengineview_p.h \
        render_widget_host_view_qt_delegate_widget.h
load(qt_module)