Skip to content

Commit ffc23bd

Browse files
authored
Merge branch 'CE-Programming:master' into reg-watchpoints
2 parents 211e780 + 218c0b7 commit ffc23bd

File tree

9 files changed

+40
-40
lines changed

9 files changed

+40
-40
lines changed

.github/workflows/build.linux.workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
run: |
3838
sudo sed -i 's/azure\.//' /etc/apt/sources.list
3939
40+
- name: Remove windows-only qt version override in vcpkg.json
41+
run: |
42+
sed -i '/For Windows only/d' ${{ github.workspace }}/gui/qt/vcpkg.json
43+
4044
- name: Install dependencies
4145
run: |
4246
set -e

.github/workflows/build.mac.workflow.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88

99
jobs:
1010
build:
11-
name: "Build: ${{ matrix.os }} ${{ matrix.archname }}"
12-
runs-on: ${{ matrix.os }}
11+
name: "Build: ${{ matrix.archname }}"
12+
runs-on: macos-14
1313
strategy:
1414
fail-fast: false
1515
matrix:
@@ -18,21 +18,23 @@ jobs:
1818
include:
1919
- archname: "intel"
2020
arch: x64
21-
os: macos-13
2221
- archname: "arm"
2322
arch: arm64
24-
os: macos-14
2523

2624
steps:
2725
- name: Checkout Git Repo
2826
uses: actions/checkout@v5
2927
with:
3028
submodules: 'recursive'
3129

30+
- name: Remove windows-only qt version override in vcpkg.json
31+
run: |
32+
sed -i '' '/For Windows only/d' ${{ github.workspace }}/gui/qt/vcpkg.json
33+
3234
- name: Install dependencies
3335
run: |
3436
set -e
35-
brew install automake autoconf libtool libusb
37+
brew install automake autoconf autoconf-archive libtool
3638
3739
- name: Install latest CMake
3840
uses: lukka/get-cmake@628dd514bed37cb0a609e84a6186cbbaa2fc0140 # latest as of 2025-10-04
@@ -50,7 +52,7 @@ jobs:
5052
configurePresetAdditionalArgs: "['-DDEPS_RELEASE_ONLY=ON', '-DSHORT_VERSION=v3.0']"
5153
buildPreset: 'Mac-${{ matrix.arch }}-${{ matrix.config }}'
5254
env:
53-
VCPKG_DEFAULT_HOST_TRIPLET: ${{ matrix.arch }}-osx-release
55+
VCPKG_DEFAULT_HOST_TRIPLET: arm64-osx-release
5456
VCPKG_FORCE_SYSTEM_BINARIES: 1
5557

5658
- name: Move to temp folder

.github/workflows/coverity.workflow.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,23 @@ jobs:
1818
run: |
1919
set -e
2020
sudo apt-get update
21-
sudo apt-get install qt6-base-dev qmake6 libgl1-mesa-dev libarchive-dev libudev-dev libusb-1.0-0-dev
21+
sudo apt-get install qt6-base-dev qmake6 qtchooser libgl1-mesa-dev libarchive-dev libudev-dev libusb-1.0-0-dev
22+
23+
- name: set-up qt6
24+
run: |
25+
qtchooser -install qt6 $(which qmake6)
26+
sudo mv ~/.config/qtchooser/qt6.conf /usr/share/qtchooser/qt6.conf
27+
sudo mkdir -p /usr/lib/$(uname -p)-linux-gnu/qt-default/qtchooser
28+
sudo ln -n /usr/share/qtchooser/qt6.conf /usr/lib/$(uname -p)-linux-gnu/qt-default/qtchooser/default.conf
29+
echo "QT_SELECT=qt6" >> "$GITHUB_ENV"
2230
2331
- name: Prepare build
2432
run: |
2533
set -e
2634
cd gui/qt/capture ; /bin/bash ./get_libpng-apng.sh ; cd ../../../
2735
mkdir build
2836
cd build
29-
qmake ../gui/qt
37+
qmake6 ../gui/qt
3038
3139
- uses: vapier/coverity-scan-action@v1
3240
with:

gui/qt/CMakeLists.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,19 @@ if(DEPS_RELEASE_ONLY)
1717
endif()
1818
endif()
1919

20+
if(APPLE)
21+
set(MAYBE_MACOSX_BUNDLE MACOSX_BUNDLE)
22+
if(VCPKG_TARGET_TRIPLET MATCHES "^x64")
23+
set(CMAKE_OSX_ARCHITECTURES "x86_64")
24+
set(VCPKG_TARGET_ARCHITECTURE "x64")
25+
else()
26+
set(CMAKE_OSX_ARCHITECTURES "arm64")
27+
set(VCPKG_TARGET_ARCHITECTURE "arm64")
28+
endif()
29+
endif()
30+
2031
project(CEmu
21-
VERSION 2.0
32+
VERSION 3.0
2233
LANGUAGES C CXX)
2334

2435
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../core/debug/zdis/zdis.c" OR
@@ -71,10 +82,6 @@ if(COMMAND qt_standard_project_setup)
7182
qt_standard_project_setup()
7283
endif()
7384

74-
if(APPLE)
75-
set(MAYBE_MACOSX_BUNDLE MACOSX_BUNDLE)
76-
endif()
77-
7885
qt_add_resources(CEmu_Resources resources.qrc)
7986

8087
set(CEmu_Sources

gui/qt/triplets/x64-osx-minver-release.cmake

Lines changed: 0 additions & 10 deletions
This file was deleted.

gui/qt/triplets/x64-osx-minver.cmake

Lines changed: 0 additions & 9 deletions
This file was deleted.

gui/qt/triplets/x86-windows-static-release.cmake

Lines changed: 0 additions & 4 deletions
This file was deleted.

gui/qt/utils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ bool isRunningInDarkMode() {
119119
}
120120

121121
bool isSystemInDarkMode() {
122+
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
122123
return qApp->styleHints()->colorScheme() == Qt::ColorScheme::Dark;
124+
#else
125+
// TODO: handle other OS' way to know if we're running in dark mode
126+
return isRunningInDarkMode();
127+
#endif
123128
}
124129

125130

gui/qt/vcpkg.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
],
3030
"builtin-baseline": "a62ce77d56ee07513b4b67de1ec2daeaebfae51a",
3131
"overrides": [
32-
{
33-
"name": "qtbase",
34-
"version": "6.6.3"
35-
}
32+
{ "name": "qtbase", "version": "6.6.3", "$comment": "For Windows only due to UI issues later. For non-Windows, edited out in CI" }
3633
]
3734
}

0 commit comments

Comments
 (0)