Migrating from third-party to externals (#138)

* third-party migration to externals

* Fix

* Lower case for Linux
This commit is contained in:
Xphalnos 2024-05-18 19:05:18 +02:00 committed by GitHub
parent b0978f4168
commit 8cf64a33b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 42 additions and 58 deletions

View File

@ -34,7 +34,7 @@ jobs:
- name: Run AppImage packaging script - name: Run AppImage packaging script
run: ./.github/linux-appimage-qt.sh run: ./.github/linux-appimage-qt.sh
- name: Upload executable - name: Upload executable
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -26,7 +26,7 @@ jobs:
- name: Install misc packages - name: Install misc packages
run: > run: >
sudo apt-get update && sudo apt install libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential sudo apt-get update && sudo apt install libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential
- name: Configure CMake - name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
@ -40,10 +40,10 @@ jobs:
path: | path: |
${{github.workspace}}/build/shadps4 ${{github.workspace}}/build/shadps4
${{github.workspace}}/build/libSDL3.so.0.0.0 ${{github.workspace}}/build/libSDL3.so.0.0.0
- name: Run AppImage packaging script - name: Run AppImage packaging script
run: ./.github/linux-appimage-sdl.sh run: ./.github/linux-appimage-sdl.sh
- name: Upload executable - name: Upload executable
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -30,7 +30,7 @@ jobs:
with: with:
arch: win64_msvc2019_64 arch: win64_msvc2019_64
version: 6.7.0 version: 6.7.0
- name: Configure CMake - name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
@ -43,12 +43,12 @@ jobs:
- name: Deploy - name: Deploy
run: | run: |
mkdir upload mkdir upload
move build/Release/shadps4.exe upload move build/Release/shadPS4.exe upload
move build/Release/zlib-ng2.dll upload move build/Release/zlib-ng2.dll upload
windeployqt --dir upload upload/shadps4.exe windeployqt --dir upload upload/shadPS4.exe
- name: Upload executable - name: Upload executable
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: shadps4-win64-qt name: shadps4-win64-qt
path: upload path: upload

View File

@ -36,5 +36,5 @@ jobs:
name: shadps4-win64 name: shadps4-win64
# A file, directory or wildcard pattern that describes what to upload # A file, directory or wildcard pattern that describes what to upload
path: | path: |
${{github.workspace}}/build/Release/shadps4.exe ${{github.workspace}}/build/Release/shadPS4.exe
${{github.workspace}}/build/Release/SDL3.dll ${{github.workspace}}/build/Release/SDL3.dll

28
.gitmodules vendored
View File

@ -1,19 +1,3 @@
[submodule "third-party/magic_enum"]
path = third-party/magic_enum
url = https://github.com/Neargye/magic_enum.git
shallow = true
[submodule "third-party/zydis"]
path = third-party/zydis
url = https://github.com/zyantific/zydis.git
shallow = true
[submodule "third-party/toml11"]
path = third-party/toml11
url = https://github.com/ToruNiina/toml11
branch = master
[submodule "third-party/xxHash"]
path = third-party/xxHash
url = https://github.com/Cyan4973/xxHash.git
branch = dev
[submodule "externals/discord-rpc"] [submodule "externals/discord-rpc"]
path = externals/discord-rpc path = externals/discord-rpc
url = https://github.com/shadps4-emu/ext-discord-rpc.git url = https://github.com/shadps4-emu/ext-discord-rpc.git
@ -60,3 +44,15 @@
[submodule "externals/winpthreads"] [submodule "externals/winpthreads"]
path = externals/winpthreads path = externals/winpthreads
url = https://github.com/shadps4-emu/winpthreads.git url = https://github.com/shadps4-emu/winpthreads.git
[submodule "externals/magic_enum"]
path = externals/magic_enum
url = https://github.com/Neargye/magic_enum.git
[submodule "externals/toml11"]
path = externals/toml11
url = https://github.com/ToruNiina/toml11.git
[submodule "externals/xxHash"]
path = externals/xxHash
url = https://github.com/Cyan4973/xxHash.git
[submodule "externals/zydis"]
path = externals/zydis
url = https://github.com/zyantific/zydis.git

View File

@ -78,7 +78,6 @@ if (CLANG_FORMAT)
endif() endif()
add_subdirectory(externals) add_subdirectory(externals)
add_subdirectory(third-party)
include_directories(src) include_directories(src)
if(ENABLE_QT_GUI) if(ENABLE_QT_GUI)
@ -444,8 +443,7 @@ endif()
add_custom_command(TARGET shadps4 POST_BUILD add_custom_command(TARGET shadps4 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:zlib> $<TARGET_FILE:zlib>
$<TARGET_FILE_DIR:shadps4> $<TARGET_FILE_DIR:shadps4>)
)
add_custom_command(TARGET shadps4 POST_BUILD add_custom_command(TARGET shadps4 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different COMMAND ${CMAKE_COMMAND} -E copy_if_different

View File

@ -67,6 +67,21 @@ add_subdirectory(robin-map EXCLUDE_FROM_ALL)
# Xbyak # Xbyak
add_subdirectory(xbyak EXCLUDE_FROM_ALL) add_subdirectory(xbyak EXCLUDE_FROM_ALL)
# MagicEnum
add_subdirectory(magic_enum EXCLUDE_FROM_ALL)
# Toml11
add_subdirectory(toml11 EXCLUDE_FROM_ALL)
# xxHash
add_library(xxhash INTERFACE)
target_include_directories(xxhash INTERFACE xxhash)
# Zydis
option(ZYDIS_BUILD_TOOLS "" OFF)
option(ZYDIS_BUILD_EXAMPLES "" OFF)
add_subdirectory(zydis EXCLUDE_FROM_ALL)
# Winpthreads # Winpthreads
if (WIN32) if (WIN32)
add_subdirectory(winpthreads EXCLUDE_FROM_ALL) add_subdirectory(winpthreads EXCLUDE_FROM_ALL)

1
externals/magic_enum vendored Submodule

@ -0,0 +1 @@
Subproject commit a2077c01c3071c12279b7ab40a19607647682d37

1
externals/toml11 vendored Submodule

@ -0,0 +1 @@
Subproject commit 85faca9cbe8d76324ff38c1801be44c63e12d5be

@ -1 +1 @@
Subproject commit 4bc77c26ff9ce89cf4a4f79e1c24a44604132d53 Subproject commit 5677bafb820e476441e9e1f745371b72133407d3

1
externals/xxHash vendored Submodule

@ -0,0 +1 @@
Subproject commit e9455b2c204df00f31200392f96ac12197de8bf0

1
externals/zydis vendored Submodule

@ -0,0 +1 @@
Subproject commit fd3e9a6cc8bdcc617b531feda186699e51664f76

View File

@ -1,25 +0,0 @@
# SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
if (MSVC)
# Silence "deprecation" warnings
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
endif()
# MagicEnum
add_subdirectory(magic_enum EXCLUDE_FROM_ALL)
# Toml11
add_subdirectory(toml11 EXCLUDE_FROM_ALL)
# xxHash
add_library(xxhash INTERFACE)
target_include_directories(xxhash INTERFACE xxhash)
# Zydis
option(ZYDIS_BUILD_TOOLS "" OFF)
option(ZYDIS_BUILD_EXAMPLES "" OFF)
add_subdirectory(zydis EXCLUDE_FROM_ALL)

@ -1 +0,0 @@
Subproject commit 4904822db8770d04444add00a9e155568d3e8bd1

1
third-party/toml11 vendored

@ -1 +0,0 @@
Subproject commit 087408a8fbc8983d8c590eee9d3541400dfa34d9

1
third-party/xxHash vendored

@ -1 +0,0 @@
Subproject commit 058e54b10b10c658fd50862e6f65f55522afa182

1
third-party/zydis vendored

@ -1 +0,0 @@
Subproject commit a6d0c713b71b5009634868389f0ff551871273d6