Skip to content

Commit 9bb12f9

Browse files
committed
include protobuf
1 parent 6ea310a commit 9bb12f9

3 files changed

Lines changed: 23 additions & 13 deletions

File tree

.github/workflows/rpcs3.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,12 @@ jobs:
456456
VCPKG_TRIPLET: x64-windows
457457
VCPKG_BUILD_TYPE: release
458458
VCPKG_ROOT: "${{github.workspace}}/vcpkg"
459-
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
459+
VCPKG_BINARY_SOURCES: 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite'
460+
X_VCPKG_NUGET_ID: "GitHub"
461+
X_VCPKG_NUGET_USER: "${{ github.actor }}"
462+
X_VCPKG_NUGET_PASSWORD: "${{ secrets.GITHUB_TOKEN }}"
463+
NUGET_CREDENTIALPROVIDERS_AUTODETECT: 'false'
464+
VCPKG_MAX_CONCURRENCY: '1'
460465
name: RPCS3 Windows Clang (Clang-CL)
461466
steps:
462467
- name: Checkout repository
@@ -471,17 +476,18 @@ jobs:
471476
.\vcpkg\bootstrap-vcpkg.bat
472477
473478
- name: 'Setup NuGet Credentials for vcpkg'
479+
shell: pwsh
474480
run: |
475-
`./vcpkg/vcpkg fetch nuget | tail -n 1` \
476-
sources add \
477-
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
478-
-storepasswordincleartext \
479-
-name "GitHub" \
480-
-username "${{ github.repository_owner }}" \
481-
-password "${{ secrets.GITHUB_TOKEN }}"
482-
`./vcpkg/vcpkg fetch nuget | tail -n 1` \
483-
setapikey "${{ secrets.GITHUB_TOKEN }}" \
484-
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
481+
dotnet nuget locals all --clear
482+
$configPath = "${{ github.workspace }}\nuget.config"
483+
dotnet new nugetconfig --force --output "${{ github.workspace }}"
484+
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" `
485+
--name "GitHub" `
486+
--username "${{ github.actor }}" `
487+
--password "${{ secrets.GITHUB_TOKEN }}" `
488+
--store-password-in-clear-text `
489+
--configfile "$configPath"
490+
echo "VCPKG_NUGET_CONFIG=$configPath" >> $env:GITHUB_ENV
485491
486492
- name: Restore LLVM Cache
487493
uses: actions/cache/restore@main

3rdparty/protobuf/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ else()
2020
option(protobuf_DISABLE_RTTI "Remove runtime type information in the binaries" OFF)
2121
option(protobuf_FORCE_FETCH_DEPENDENCIES "Force all dependencies to be downloaded from GitHub. Local installations will be ignored." OFF)
2222
option(protobuf_LOCAL_DEPENDENCIES_ONLY "Prevent downloading any dependencies from GitHub. If this option is set, the dependency must be available locally as an installed package." OFF)
23-
23+
if(VCPKG_TOOLCHAIN)
24+
set(protobuf_BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
25+
message(STATUS "VCPKG detected: Building Protobuf as a shared library")
26+
endif()
2427
add_subdirectory(protobuf EXCLUDE_FROM_ALL)
2528
target_include_directories(3rdparty_protobuf SYSTEM INTERFACE protobuf/src)
2629
target_link_libraries(3rdparty_protobuf INTERFACE libprotobuf)

vcpkg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rpcs3",
33
"version-string": "1.0",
4-
"builtin-baseline": "b94ab47c998b93fe72b0f501eaac70f96328019e",
4+
"builtin-baseline": "7c45dcccbe6463539a6b92c264258043d267c8f6",
55
"dependencies": [
66
"curl",
77
{
@@ -15,6 +15,7 @@
1515
},
1616
"libpng",
1717
"opencv",
18+
"protobuf",
1819
"qtbase",
1920
"qtmultimedia",
2021
"qtsvg",

0 commit comments

Comments
 (0)