summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/qmake/mkspecs/features/gyp_generator.prf5
-rw-r--r--lib/lib.pro5
2 files changed, 10 insertions, 0 deletions
diff --git a/build/qmake/mkspecs/features/gyp_generator.prf b/build/qmake/mkspecs/features/gyp_generator.prf
index 5288e7c19..6ad3e476c 100644
--- a/build/qmake/mkspecs/features/gyp_generator.prf
+++ b/build/qmake/mkspecs/features/gyp_generator.prf
@@ -139,6 +139,11 @@ GYP_CONTENTS += " ]," \
" }," \
" },"
}
+!isEmpty(GYP_DYLIB_INSTALL_NAME_BASE) {
+ GYP_CONTENTS += " 'xcode_settings': {" \
+ " 'DYLIB_INSTALL_NAME_BASE': '$$GYP_DYLIB_INSTALL_NAME_BASE'," \
+ " },"
+}
# Source files to compile
GYP_CONTENTS += " 'sources': ["
diff --git a/lib/lib.pro b/lib/lib.pro
index 4eb076467..682388217 100644
--- a/lib/lib.pro
+++ b/lib/lib.pro
@@ -9,6 +9,11 @@ TEMPLATE = lib
TARGET = Qt5WebEngineCore
+# gyp sets the default install name to /usr/local/lib and we need the module libraries to
+# know its install_name so that they can let the dynamic linker load the core library.
+# FIXME: Remove this and put it in qtwebengine.gypi once we can use a relative path to @loader_path.
+macx: GYP_DYLIB_INSTALL_NAME_BASE = $$getOutDir()/$$getConfigDir()
+
QT += qml quick
QT_PRIVATE += qml-private quick-private gui-private core-private
qtHaveModule(v8): QT_PRIVATE += v8-private