Skip to content

Commit

Permalink
Re-enable PySideModules.cmake patch
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r committed May 20, 2019
1 parent 3b40958 commit 1d58cfb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ ${PYSIDE_SRC_DIR}:
@echo "#########################"
@echo ""

@echo "LD_LIBRARY_PATH = $${LD_LIBRARY_PATH}"
@echo "PYTHON_PREFIX = ${PYTHON_PREFIX}"

$(call download_extract,${PYSIDE_SRC_URL},${PYSIDE_SRC_FILE},${PYSIDE_SRC_MD5})
#git clone "${PYSIDE_SRC_GIT}" "${PYSIDE_SRC_DIR}"
#cd "${PYSIDE_SRC_DIR}" && git checkout "${PYSIDE_SRC_GIT_COMMIT}"
Expand All @@ -271,7 +268,7 @@ ${PYSIDE_SRC_DIR}:
echo "" > "${PYSIDE_SRC_DIR}/sources/pyside2/cmake/Macros/FindQt5Extra.cmake"

# Patch to prevent complete overriding of LD_LIBRARY_PATH
#patch "${PYSIDE_SRC_DIR}/sources/pyside2/cmake/Macros/PySideModules.cmake" patch/pyside2-PySideModules.cmake.patch
patch "${PYSIDE_SRC_DIR}/sources/pyside2/cmake/Macros/PySideModules.cmake" patch/pyside-5.12.3/PySideModules.cmake.patch

ifneq (${QT_OPENGL_ENABLED},1)
# Patches to remove OpenGL-related source files.
Expand Down
20 changes: 20 additions & 0 deletions patch/pyside-5.12.3/PySideModules.cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- pyside-src/sources/pyside2/cmake/Macros/PySideModules.cmake 2019-02-23 22:34:05.751151414 +0100
+++ patch/PySideModules.cmake 2019-02-23 23:22:56.324976710 +0100
@@ -162,13 +162,13 @@
# Need to set the LD_ env vars before invoking the script, because it might use build-time
# libraries instead of install time libraries.
if (WIN32)
- set(ld_prefix "PATH=")
+ set(ld_prefix "PATH")
elseif(APPLE)
- set(ld_prefix "DYLD_LIBRARY_PATH=")
+ set(ld_prefix "DYLD_LIBRARY_PATH")
else()
- set(ld_prefix "LD_LIBRARY_PATH=")
+ set(ld_prefix "LD_LIBRARY_PATH")
endif()
- set(ld_prefix "${ld_prefix}${pysidebindings_BINARY_DIR}/libpyside${PATH_SEP}${SHIBOKEN_SHARED_LIBRARY_DIR}")
+ set(ld_prefix "${ld_prefix}=${pysidebindings_BINARY_DIR}/libpyside${PATH_SEP}${SHIBOKEN_SHARED_LIBRARY_DIR}${PATH_SEP}$ENV{${ld_prefix}}")
set(generate_pyi_options run --skip --sys-path
"${pysidebindings_BINARY_DIR}"
"${SHIBOKEN_PYTHON_MODULE_DIR}")

0 comments on commit 1d58cfb

Please sign in to comment.