Skip to content

Commit

Permalink
Merge branch 'ProjectRio:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
MORImementos authored Jun 13, 2024
2 parents 353de79 + dc39b6b commit e9e2bb4
Show file tree
Hide file tree
Showing 1,281 changed files with 162,830 additions and 137,147 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [ Netplay ]
build_type: [ Release ]
include:
- build_type: Netplay
artifact_name: windows64-netplay
- build_type: Release
artifact_name: ProjectRio-Windows
build_config: -G "Ninja" -DCMAKE_SYSTEM_VERSION="10.0.22621" -DCMAKE_BUILD_TYPE="Release" -DQt5_DIR:STRING="D:\a\dolphin\dolphin\Externals\Qt\Qt5.3.0\x64\lib\cmake\Qt5\"
env:
DXSDK_DIR: "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\"
Expand Down Expand Up @@ -81,11 +81,11 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [ Netplay ]
build_type: [ Release ]
include:
- build_type: Netplay
- build_type: Release
artifact_name: linux
build_config: netplay
build_config: release
name: "Linux ${{ matrix.build_type }}"
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
gettext libudev-dev \
libsystemd-dev \
-y
- name: "Build ${{ matrix.build_type }} Dolphin"
- name: "Build ${{ matrix.build_type }} Project Rio"
if: success()
working-directory: ${{ github.workspace }}
run: |
Expand All @@ -156,13 +156,13 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [ Netplay ]
build_type: [ Release ]
include:
- build_type: Netplay
artifact_name: macOS-netplay
build_config: netplay
- build_type: Release
artifact_name: ProjectRio-macOS
build_config: release
name: "macOS ${{ matrix.build_type }}"
runs-on: macos-11
runs-on: macos-12
steps:
- name: "Checkout"
uses: actions/checkout@v2
Expand All @@ -176,7 +176,12 @@ jobs:
echo "GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "CURR_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: "Install 11.0 SDK"
- name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: "3.11.6"
architecture: "x64"
- name: "Install 12.3 SDK"
if: success()
shell: bash
working-directory: ${{ github.workspace }}
Expand All @@ -185,6 +190,10 @@ jobs:
tar -xf MacOSX11.0.sdk.tar.xz
rm MacOSX11.0.sdk.tar.xz
sudo mv MacOSX11.0.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
# wget https://github.com/alexey-lysiuk/macos-sdk/releases/download/12.3/MacOSX12.3.tar.xz
# tar -xf MacOSX12.3.tar.xz
# rm MacOSX12.3.tar.xz
# sudo mv MacOSX12.3 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
- name: "Download and Install prerequisites"
if: success()
shell: bash
Expand All @@ -201,7 +210,7 @@ jobs:
hidapi \
icu4c \
qt@6
- name: "Build ${{ matrix.build_type }} Dolphin"
- name: "Build ${{ matrix.build_type }} Project Rio"
if: success()
shell: bash
working-directory: ${{ github.workspace }}
Expand All @@ -222,4 +231,4 @@ jobs:
uses: actions/upload-artifact@v2-preview
with:
name: ${{ matrix.artifact_name }}
path: "./artifact/"
path: "./artifact/"
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,18 @@
[submodule "Externals/curl/curl"]
path = Externals/curl/curl
url = https://github.com/curl/curl.git
[submodule "Externals/fmt/fmt"]
path = Externals/fmt/fmt
url = https://github.com/fmtlib/fmt.git
[submodule "Externals/lz4/lz4"]
path = Externals/lz4/lz4
url = https://github.com/lz4/lz4
[submodule "Externals/xxhash/xxHash"]
path = Externals/xxhash/xxHash
url = https://github.com/Cyan4973/xxHash.git
[submodule "Externals/enet/enet"]
path = Externals/enet/enet
url = https://github.com/lsalzman/enet.git
[submodule "hidapi-src"]
path = Externals/hidapi/hidapi-src
url = https://github.com/libusb/hidapi
23 changes: 10 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ option(OPROFILING "Enable profiling" OFF)
# TODO: Add DSPSpy
option(DSPTOOL "Build dsptool" OFF)

# Enable SDL for default on operating systems that aren't Android or Linux.
if(NOT ANDROID AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Enable SDL by default on operating systems that aren't Android.
if(NOT ANDROID)
option(ENABLE_SDL "Enables SDL as a generic controller backend" ON)
else()
option(ENABLE_SDL "Enables SDL as a generic controller backend" OFF)
Expand Down Expand Up @@ -219,9 +219,7 @@ if(ENABLE_GENERIC)
set(_M_GENERIC 1)
add_definitions(-D_M_GENERIC=1)
elseif(_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64")
set(_M_X86 1)
set(_M_X86_64 1)
add_definitions(-D_M_X86=1)
add_definitions(-D_M_X86_64=1)
check_and_add_flag(HAVE_SSE2 -msse2)
elseif(_ARCH_64 AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64")
Expand Down Expand Up @@ -589,7 +587,7 @@ if(UNIX)
endif()

if(ENABLE_SDL)
dolphin_find_optional_system_library(SDL2 Externals/SDL)
dolphin_find_optional_system_library(SDL2 Externals/SDL 2.26.0)
endif()

if(ENABLE_ANALYTICS)
Expand Down Expand Up @@ -625,12 +623,12 @@ endif()
# - place the CMakeLists.txt in the first-level subdirectory, e.g.
# Externals/zlib/CMakeLists.txt (that is: NOT in some Src/ subdirectory)
#
if (_M_X86)
if (_M_X86_64)
add_subdirectory(Externals/Bochs_disasm)
endif()
add_subdirectory(Externals/cpp-optparse)

dolphin_find_optional_system_library(fmt Externals/fmt 8)
dolphin_find_optional_system_library(fmt Externals/fmt 10.1)

add_subdirectory(Externals/imgui)
add_subdirectory(Externals/implot)
Expand Down Expand Up @@ -661,12 +659,9 @@ endif()

dolphin_find_optional_system_library(pugixml Externals/pugixml)

dolphin_find_optional_system_library_pkgconfig(ENET libenet>=1.3.8 enet::enet Externals/enet)
dolphin_find_optional_system_library_pkgconfig(ENET libenet>=1.3.18 enet::enet Externals/enet)

if(NOT XXHASH_FOUND)
message(STATUS "Using static xxhash from Externals")
add_subdirectory(Externals/xxhash)
endif()
dolphin_find_optional_system_library_pkgconfig(xxhash libxxhash>=0.8.2 xxhash::xxhash Externals/xxhash)

dolphin_find_optional_system_library(BZip2 Externals/bzip2)

Expand All @@ -682,6 +677,8 @@ dolphin_find_optional_system_library_pkgconfig(MINIZIP minizip>=3.0.0 minizip::m

dolphin_find_optional_system_library(LZO Externals/LZO)

dolphin_find_optional_system_library_pkgconfig(lz4 liblz4>=1.8 LZ4::LZ4 Externals/lz4)

dolphin_find_optional_system_library_pkgconfig(SPNG spng spng::spng Externals/libspng)

# Using static FreeSurround from Externals
Expand Down Expand Up @@ -790,7 +787,7 @@ if(NOT GIT_FOUND)
endif()
add_custom_target(
dolphin_scmrev
${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -DPROJECT_BINARY_DIR=${PROJECT_BINARY_DIR} -DDISTRIBUTOR=${DISTRIBUTOR} -DDOLPHIN_DEFAULT_UPDATE_TRACK=${DOLPHIN_DEFAULT_UPDATE_TRACK} -DGIT_FOUND=${GIT_FOUND} -DGIT_EXECUTABLE=${GIT_EXECUTABLE} -P ${CMAKE_SOURCE_DIR}/CMake/ScmRevGen.cmake
${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -DPROJECT_BINARY_DIR=${PROJECT_BINARY_DIR} -DDISTRIBUTOR=${DISTRIBUTOR} -DDOLPHIN_DEFAULT_UPDATE_TRACK=${DOLPHIN_DEFAULT_UPDATE_TRACK} -DGIT_FOUND=${GIT_FOUND} -DGIT_EXECUTABLE=${GIT_EXECUTABLE} -DDOLPHIN_WC_REVISION=${DOLPHIN_WC_REVISION} -DDOLPHIN_WC_DESCRIBE=${DOLPHIN_WC_DESCRIBE} -DDOLPHIN_WC_BRANCH=${DOLPHIN_WC_BRANCH} -P ${CMAKE_SOURCE_DIR}/CMake/ScmRevGen.cmake
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/Source/Core/Common/scmrev.h
VERBATIM
)
Expand Down
29 changes: 22 additions & 7 deletions Contributing.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
# <a name="main-heading"></a>Dolphin Coding Style & Licensing
# <a name="main-section-overview"></a>Dolphin Coding Style & Legal Requirements

If you make any contributions to Dolphin after December 1st, 2014, you are agreeing that any code you have contributed will be licensed under the GNU GPL version 2 (or any later version).

# <a name="main-section-overview"></a>Main sections

- [Introduction](#introduction)
- [Legal](#legal)
- [Coding style introduction](#introduction)
- [C++ coding style and formatting](#cpp-coding-style-and-formatting)
- [C++ code-specific guidelines](#cpp-code-specific-guidelines)
- [Android](#android)
- [Help](#help)

# <a name="legal"></a>Legal

Summary:

- [Trade secrets](#trade-secrets)
- [Code licensing](#code-licensing)

## <a name="trade-secrets"></a>Trade secrets

Following all relevant laws is of utmost importance for an emulation project like Dolphin.

If you know any confidential information related to the GameCube, Wii, or Triforce, either because you signed a non-disclosure agreement or because you looked at leaked materials, we ask that you don't contribute code to Dolphin **at all**. While accepting code from contributors who know confidential information is legal if the code is unrelated to the confidential information, we refuse to accept code from such contributors because it greatly increases our review burden and increases the legal risk we take.

Also, this probably goes without saying, but piracy is strictly forbidden both on GitHub and in all other Dolphin channels.

## <a name="code-licensing"></a>Code licensing

If you make any contributions to Dolphin after December 1st, 2014, you are agreeing that any code you have contributed will be licensed under the GNU GPL version 2 (or any later version).

# <a name="introduction"></a>Introduction
# <a name="introduction"></a>Coding style introduction

Summary:

Expand Down
Binary file modified Data/Dolphin.icns
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading

0 comments on commit e9e2bb4

Please sign in to comment.