mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
For consistency have the CI use the same build path as the end-user builds. Use where.exe from wine-10.0. CI's version is a stub. Use one that actually works, until the CI gets updated. Also, fix broken RtlGenRandom by importing ADVAPI32's GetUserNameW(), and calling GetModuleHandleW() / GetProcAddress() for SystemFunction032(). Instead of trying to use a fake import lib. Bonus: Can now use the host system's username as the default for the steam user name instead of "Noob". ("Noob" is still used as the fallback if this call fails, or the host system's username is invalid.)
28 lines
891 B
Batchfile
Executable File
28 lines
891 B
Batchfile
Executable File
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
SET TEST_A=%cd%
|
|
REM CI doesn't like this var expansion of "%cd%\".
|
|
cd ..\vcpkg\installed\x86-windows-static
|
|
SET PROTOBUF_X86_DIRECTORY=%cd%
|
|
cd %TEST_A%
|
|
cd ..\vcpkg\installed\x64-windows-static
|
|
SET PROTOBUF_X64_DIRECTORY=%cd%
|
|
cd %TEST_A%
|
|
|
|
rem location of protoc in protobuf directories:
|
|
SET PROTOC_X86_EXE=%PROTOBUF_X86_DIRECTORY%\tools\protobuf\protoc.exe
|
|
SET PROTOC_X64_EXE=%PROTOBUF_X64_DIRECTORY%\tools\protobuf\protoc.exe
|
|
|
|
if exist "%PROTOBUF_X86_DIRECTORY%\lib\libprotobuf-lite.lib" (
|
|
SET PROTOBUF_X86_LIBRARY=%PROTOBUF_X86_DIRECTORY%\lib\libprotobuf-lite.lib
|
|
) else (
|
|
SET PROTOBUF_X86_LIBRARY=%PROTOBUF_X86_DIRECTORY%\lib\libprotobuf.lib
|
|
)
|
|
|
|
if exist "%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib" (
|
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib
|
|
) else (
|
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf.lib
|
|
)
|