Skip to content

Commit fed7605

Browse files
committed
Merge branch 'main' into macos-arm64
2 parents 8d507d0 + e834515 commit fed7605

File tree

121 files changed

+3204
-2136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3204
-2136
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: "Install system dependencies"
4040
run: |
4141
sudo apt update -qq
42-
sudo apt install -y clang-15 cmake freeglut3-dev libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev libudev-dev nasm ninja-build
42+
sudo apt install -y clang-15 cmake freeglut3-dev libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev libudev-dev nasm ninja-build libbluetooth-dev
4343
4444
- name: "Setup cmake"
4545
uses: jwlawson/actions-setup-cmake@v2
@@ -96,7 +96,7 @@ jobs:
9696
- name: "Install system dependencies"
9797
run: |
9898
sudo apt update -qq
99-
sudo apt install -y clang-15 cmake freeglut3-dev libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev nasm ninja-build appstream
99+
sudo apt install -y clang-15 cmake freeglut3-dev libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev nasm ninja-build appstream libbluetooth-dev
100100
101101
- name: "Build AppImage"
102102
run: |

.github/workflows/deploy_experimental_release.yml renamed to .github/workflows/deploy_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy experimental release
1+
name: Deploy release
22
on:
33
workflow_dispatch:
44
inputs:
@@ -54,7 +54,7 @@ jobs:
5454
next_version_major: ${{ needs.calculate-version.outputs.next_version_major }}
5555
next_version_minor: ${{ needs.calculate-version.outputs.next_version_minor }}
5656
deploy:
57-
name: Deploy experimental release
57+
name: Deploy release
5858
runs-on: ubuntu-22.04
5959
needs: [call-release-build, calculate-version]
6060
steps:

.github/workflows/deploy_stable_release.yml

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

.github/workflows/generate_pot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
-o cemu.pot
3636
3737
- name: Upload artifact
38-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: POT file
4141
path: ./cemu.pot

BUILD.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ To compile Cemu, a recent enough compiler and STL with C++20 support is required
4646
### Dependencies
4747

4848
#### For Arch and derivatives:
49-
`sudo pacman -S --needed base-devel clang cmake freeglut git glm gtk3 libgcrypt libpulse libsecret linux-headers llvm nasm ninja systemd unzip zip`
49+
`sudo pacman -S --needed base-devel bluez-libs clang cmake freeglut git glm gtk3 libgcrypt libpulse libsecret linux-headers llvm nasm ninja systemd unzip zip`
5050

5151
#### For Debian, Ubuntu and derivatives:
52-
`sudo apt install -y cmake curl clang-15 freeglut3-dev git libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev libtool nasm ninja-build`
52+
`sudo apt install -y cmake curl clang-15 freeglut3-dev git libbluetooth-dev libgcrypt20-dev libglm-dev libgtk-3-dev libpulse-dev libsecret-1-dev libsystemd-dev libtool nasm ninja-build`
5353

5454
You may also need to install `libusb-1.0-0-dev` as a workaround for an issue with the vcpkg hidapi package.
5555

5656
At Step 3 in [Build Cemu using cmake and clang](#build-cemu-using-cmake-and-clang), use the following command instead:
5757
`cmake -S . -B build -DCMAKE_BUILD_TYPE=release -DCMAKE_C_COMPILER=/usr/bin/clang-15 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-15 -G Ninja -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja`
5858

5959
#### For Fedora and derivatives:
60-
`sudo dnf install clang cmake cubeb-devel freeglut-devel git glm-devel gtk3-devel kernel-headers libgcrypt-devel libsecret-devel libtool libusb1-devel llvm nasm ninja-build perl-core systemd-devel zlib-devel zlib-static`
60+
`sudo dnf install bluez-libs-devel clang cmake cubeb-devel freeglut-devel git glm-devel gtk3-devel kernel-headers libgcrypt-devel libsecret-devel libtool libusb1-devel llvm nasm ninja-build perl-core systemd-devel wayland-protocols-devel zlib-devel zlib-static`
6161

6262
### Build Cemu
6363

@@ -120,6 +120,9 @@ This section refers to running `cmake -S...` (truncated).
120120
* Compiling failed during rebuild after `git pull` with an error that mentions RPATH
121121
* Add the following and try running the command again:
122122
* `-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON`
123+
* Environment variable `VCPKG_FORCE_SYSTEM_BINARIES` must be set.
124+
* Execute the folowing and then try running the command again:
125+
* `export VCPKG_FORCE_SYSTEM_BINARIES=1`
123126
* If you are getting a random error, read the [package-name-and-platform]-out.log and [package-name-and-platform]-err.log for the actual reason to see if you might be lacking the headers from a dependency.
124127

125128

CMakeLists.txt

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.21.1)
22

33
option(ENABLE_VCPKG "Enable the vcpkg package manager" ON)
44
option(MACOS_BUNDLE "The executable when built on macOS will be created as an application bundle" OFF)
5+
option(ALLOW_PORTABLE "Allow Cemu to be run in portable mode" ON)
56

67
# used by CI script to set version:
78
set(EMULATOR_VERSION_MAJOR "0" CACHE STRING "")
@@ -98,6 +99,7 @@ endif()
9899
if (UNIX AND NOT APPLE)
99100
option(ENABLE_WAYLAND "Build with Wayland support" ON)
100101
option(ENABLE_FERAL_GAMEMODE "Enables Feral Interactive GameMode Support" ON)
102+
option(ENABLE_BLUEZ "Build with Bluez support" ON)
101103
endif()
102104

103105
option(ENABLE_OPENGL "Enables the OpenGL backend" ON)
@@ -122,23 +124,6 @@ if (WIN32)
122124
endif()
123125
option(ENABLE_CUBEB "Enabled cubeb backend" ON)
124126

125-
# usb hid backends
126-
if (WIN32)
127-
option(ENABLE_NSYSHID_WINDOWS_HID "Enables the native Windows HID backend for nsyshid" ON)
128-
endif ()
129-
# libusb and windows hid backends shouldn't be active at the same time; otherwise we'd see all devices twice!
130-
if (NOT ENABLE_NSYSHID_WINDOWS_HID)
131-
option(ENABLE_NSYSHID_LIBUSB "Enables the libusb backend for nsyshid" ON)
132-
else ()
133-
set(ENABLE_NSYSHID_LIBUSB OFF CACHE BOOL "" FORCE)
134-
endif ()
135-
if (ENABLE_NSYSHID_WINDOWS_HID)
136-
add_compile_definitions(NSYSHID_ENABLE_BACKEND_WINDOWS_HID)
137-
endif ()
138-
if (ENABLE_NSYSHID_LIBUSB)
139-
add_compile_definitions(NSYSHID_ENABLE_BACKEND_LIBUSB)
140-
endif ()
141-
142127
option(ENABLE_WXWIDGETS "Build with wxWidgets UI (Currently required)" ON)
143128

144129
set(THREADS_PREFER_PTHREAD_FLAG true)
@@ -179,6 +164,12 @@ if (UNIX AND NOT APPLE)
179164
endif()
180165
find_package(GTK3 REQUIRED)
181166

167+
if(ENABLE_BLUEZ)
168+
find_package(bluez REQUIRED)
169+
set(ENABLE_WIIMOTE ON)
170+
add_compile_definitions(HAS_BLUEZ)
171+
endif()
172+
182173
endif()
183174

184175
if (ENABLE_VULKAN)

bin/resources/ar/‏‏cemu.mo

79.9 KB
Binary file not shown.

bin/resources/de/cemu.mo

3.75 KB
Binary file not shown.

bin/resources/ru/cemu.mo

1.11 KB
Binary file not shown.

bin/resources/sv/cemu.mo

50.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)