mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +00:00
Migrating from third-party to externals (#138)
* third-party migration to externals * Fix * Lower case for Linux
This commit is contained in:
2
.github/workflows/linux-qt.yml
vendored
2
.github/workflows/linux-qt.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
- name: Run AppImage packaging script
|
||||
run: ./.github/linux-appimage-qt.sh
|
||||
|
||||
|
||||
- name: Upload executable
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
6
.github/workflows/linux.yml
vendored
6
.github/workflows/linux.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Install misc packages
|
||||
run: >
|
||||
sudo apt-get update && sudo apt install libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential
|
||||
|
||||
|
||||
- name: Configure CMake
|
||||
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: |
|
||||
${{github.workspace}}/build/shadps4
|
||||
${{github.workspace}}/build/libSDL3.so.0.0.0
|
||||
|
||||
|
||||
- name: Run AppImage packaging script
|
||||
run: ./.github/linux-appimage-sdl.sh
|
||||
|
||||
|
||||
- name: Upload executable
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
8
.github/workflows/windows-qt.yml
vendored
8
.github/workflows/windows-qt.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
with:
|
||||
arch: win64_msvc2019_64
|
||||
version: 6.7.0
|
||||
|
||||
|
||||
- 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.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
@@ -43,12 +43,12 @@ jobs:
|
||||
- name: Deploy
|
||||
run: |
|
||||
mkdir upload
|
||||
move build/Release/shadps4.exe upload
|
||||
move build/Release/shadPS4.exe upload
|
||||
move build/Release/zlib-ng2.dll upload
|
||||
windeployqt --dir upload upload/shadps4.exe
|
||||
windeployqt --dir upload upload/shadPS4.exe
|
||||
|
||||
- name: Upload executable
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: shadps4-win64-qt
|
||||
path: upload
|
||||
path: upload
|
||||
|
||||
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@@ -36,5 +36,5 @@ jobs:
|
||||
name: shadps4-win64
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: |
|
||||
${{github.workspace}}/build/Release/shadps4.exe
|
||||
${{github.workspace}}/build/Release/shadPS4.exe
|
||||
${{github.workspace}}/build/Release/SDL3.dll
|
||||
28
.gitmodules
vendored
28
.gitmodules
vendored
@@ -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"]
|
||||
path = externals/discord-rpc
|
||||
url = https://github.com/shadps4-emu/ext-discord-rpc.git
|
||||
@@ -60,3 +44,15 @@
|
||||
[submodule "externals/winpthreads"]
|
||||
path = externals/winpthreads
|
||||
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
|
||||
|
||||
@@ -78,7 +78,6 @@ if (CLANG_FORMAT)
|
||||
endif()
|
||||
|
||||
add_subdirectory(externals)
|
||||
add_subdirectory(third-party)
|
||||
include_directories(src)
|
||||
|
||||
if(ENABLE_QT_GUI)
|
||||
@@ -444,8 +443,7 @@ endif()
|
||||
add_custom_command(TARGET shadps4 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:zlib>
|
||||
$<TARGET_FILE_DIR:shadps4>
|
||||
)
|
||||
$<TARGET_FILE_DIR:shadps4>)
|
||||
|
||||
add_custom_command(TARGET shadps4 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
|
||||
15
externals/CMakeLists.txt
vendored
15
externals/CMakeLists.txt
vendored
@@ -67,6 +67,21 @@ add_subdirectory(robin-map EXCLUDE_FROM_ALL)
|
||||
# Xbyak
|
||||
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
|
||||
if (WIN32)
|
||||
add_subdirectory(winpthreads EXCLUDE_FROM_ALL)
|
||||
|
||||
1
externals/magic_enum
vendored
Submodule
1
externals/magic_enum
vendored
Submodule
Submodule externals/magic_enum added at a2077c01c3
1
externals/toml11
vendored
Submodule
1
externals/toml11
vendored
Submodule
Submodule externals/toml11 added at 85faca9cbe
2
externals/vulkan-headers
vendored
2
externals/vulkan-headers
vendored
Submodule externals/vulkan-headers updated: 4bc77c26ff...5677bafb82
1
externals/xxHash
vendored
Submodule
1
externals/xxHash
vendored
Submodule
Submodule externals/xxHash added at e9455b2c20
1
externals/zydis
vendored
Submodule
1
externals/zydis
vendored
Submodule
Submodule externals/zydis added at fd3e9a6cc8
25
third-party/CMakeLists.txt
vendored
25
third-party/CMakeLists.txt
vendored
@@ -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
third-party/magic_enum
vendored
1
third-party/magic_enum
vendored
Submodule third-party/magic_enum deleted from 4904822db8
1
third-party/toml11
vendored
1
third-party/toml11
vendored
Submodule third-party/toml11 deleted from 087408a8fb
1
third-party/xxHash
vendored
1
third-party/xxHash
vendored
Submodule third-party/xxHash deleted from 058e54b10b
1
third-party/zydis
vendored
1
third-party/zydis
vendored
Submodule third-party/zydis deleted from a6d0c713b7
Reference in New Issue
Block a user