Skip to content

Commit

Permalink
Switch to qt 5.14.2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
karliss authored Apr 7, 2020
1 parent a292e59 commit c90b7ab
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 38 deletions.
6 changes: 4 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ build_script:
wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip &&
7z x ninja-win.zip &&
cd \"%APPVEYOR_BUILD_FOLDER%\" &&
export PATH=\"$PWD/ninja:/c/Qt/5.12/msvc2017_64/bin:$PATH\" &&
export PATH=\"$PWD/ninja:$PWD/qt/bin:$PATH\" &&
export LLVM_INSTALL_DIR=\"C:\Program Files\LLVM\" &&
make PYTHON_WINDOWS=\"C:\Python36-x64\" QT_PREFIX=\"C:\Qt\5.12\msvc2017_64\""
make PYTHON_WINDOWS=\"C:\Python36-x64\""
# make PYTHON_WINDOWS=\"C:\Python36-x64\" QT_PREFIX=\"C:\Qt\5.12\msvc2017_64\""
# export PATH=\"$PWD/ninja:/c/Qt/5.12/msvc2017_64/bin:$PATH\" &&

artifacts:
- path: "%ARTIFACT_PATH%"
Expand Down
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: c
dist: xenial
osx_image: xcode10.1

cache: ccache
Expand All @@ -8,6 +7,7 @@ matrix:
include:
- os: linux
env: DEPLOY_FILE=cutter-deps-linux.tar.gz
dist: xenial
- os: osx
env: DEPLOY_FILE=cutter-deps-macos.tar.gz

Expand All @@ -16,6 +16,7 @@ addons:
packages:
- llvm
- ccache
update: true

apt:
update: true
Expand All @@ -24,7 +25,10 @@ addons:
- libglu1-mesa-dev
- libegl1-mesa-dev

install: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/opt/llvm/bin:$PATH; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH=/usr/local/opt/llvm/bin:$PATH;
fi

script: make

Expand Down
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ ${PATCHELF_SRC_DIR}_target=PATCHELF_SRC
#QT_SRC_URL=https://download.qt.io/official_releases/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.tar.xz

ifeq (${QT_PREFIX},)
QT_BIN_FILE=cutter-deps-qt.tar.gz
QT_BIN_URL=https://github.com/radareorg/cutter-deps-qt/releases/download/v9/cutter-deps-qt-${PLATFORM}.tar.gz
QT_BIN_MD5_linux=7c6c4a40b26208860ad9f11b17422990
QT_BIN_MD5_macos=618eb84f477a11c6e491556a72d41bd5
QT_BIN_MD5_win=TODO
QT_BIN_FILE=cutter-deps-qt-${PLATFORM}.tar.gz
PACKAGE_FILE=cutter-deps-${PLATFORM}.tar.gz
QT_BIN_URL=https://github.com/radareorg/cutter-deps-qt/releases/download/v9/${QT_BIN_FILE}
QT_BIN_MD5_linux=06ec8a1a89cbae078ca9a84579e8c9ce
QT_BIN_MD5_macos=2975208b05ce617e71844d1b3ba41221
QT_BIN_MD5_win=e1ba0fdfcdebe48bd255e01ddd794339
QT_BIN_MD5=${QT_BIN_MD5_${PLATFORM}}
QT_BIN_DIR=qt
QT_PREFIX:=${ROOT_DIR}/${QT_BIN_DIR}
Expand All @@ -74,17 +75,16 @@ QT_OPENGL_ENABLED:=1
QT_DEPS=
endif

PYSIDE_SRC_FILE=pyside-setup-everywhere-src-5.12.5.tar.xz
PYSIDE_SRC_MD5=b5053919d8f870975c1570eeeb07336b
PYSIDE_SRC_URL=https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.12.5-src/pyside-setup-everywhere-src-5.12.5.tar.xz
PYSIDE_SRC_DIR=pyside-setup-everywhere-src-5.12.5
QT_VERSION=5.14.2
PYSIDE_SRC_FILE=pyside-setup-opensource-src-${QT_VERSION}.tar.xz
PYSIDE_SRC_MD5=e81aefb22c8584d6420ccdf3cb86673c
PYSIDE_SRC_URL=https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${QT_VERSION}-src/pyside-setup-opensource-src-${QT_VERSION}.tar.xz
PYSIDE_SRC_DIR=pyside-setup-opensource-src-${QT_VERSION}
#PYSIDE_SRC_DIR=pyside-src
#PYSIDE_SRC_GIT=https://code.qt.io/pyside/pyside-setup.git
#PYSIDE_SRC_GIT_COMMIT=7a7952fc2e0809ef7f12a726376cec457897c364
PYSIDE_PREFIX=${ROOT_DIR}/pyside

PACKAGE_FILE=cutter-deps-${PLATFORM}.tar.gz

BUILD_THREADS=4

ifeq (${PLATFORM},linux)
Expand Down Expand Up @@ -264,7 +264,7 @@ ${PYSIDE_SRC_DIR}:

# Patch needed, so the PySide2 CMakeLists.txt doesn't search for Qt5UiTools and other stuff,
# which would mess up finding the actual modules later.
patch "${PYSIDE_SRC_DIR}/sources/pyside2/CMakeLists.txt" patch/pyside-5.12.5/CMakeLists.txt.patch
patch "${PYSIDE_SRC_DIR}/sources/pyside2/CMakeLists.txt" patch/pyside-5.14.1/CMakeLists.txt.patch
echo "" > "${PYSIDE_SRC_DIR}/sources/pyside2/cmake/Macros/FindQt5Extra.cmake"

ifneq (${QT_OPENGL_ENABLED},1)
Expand Down
22 changes: 0 additions & 22 deletions patch/pyside-5.12.5/CMakeLists.txt.patch

This file was deleted.

12 changes: 12 additions & 0 deletions patch/pyside-5.14.1/CMakeLists.txt.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- pyside-setup-everywhere-src-5.12.5/sources/pyside2/CMakeLists.txt 2019-09-11 08:23:10.000000000 +0300
+++ CMakeLists.txt 2019-10-31 22:25:22.373319664 +0200
@@ -241,7 +242,8 @@
#####################################################################

add_subdirectory(libpyside)
-find_package(Qt5Designer)
+#find_package(Qt5Designer)
+set(Qt5Designer_FOUND FALSE)
if(Qt5UiTools_FOUND AND Qt5Designer_FOUND)
add_subdirectory(plugins)
endif()

0 comments on commit c90b7ab

Please sign in to comment.