mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-30 15:27:21 +01:00
Forgot this.
This commit is contained in:
parent
bca4bd6dc1
commit
22c32c46b6
1 changed files with 13 additions and 3 deletions
|
@ -1,10 +1,20 @@
|
||||||
|
@echo off
|
||||||
|
cd /d "%~dp0"
|
||||||
SET PROTOBUF_X86_DIRECTORY=..\vcpkg\packages\protobuf_x86-windows-static
|
SET PROTOBUF_X86_DIRECTORY=..\vcpkg\packages\protobuf_x86-windows-static
|
||||||
SET PROTOBUF_X64_DIRECTORY=..\vcpkg\packages\protobuf_x64-windows-static
|
SET PROTOBUF_X64_DIRECTORY=..\vcpkg\packages\protobuf_x64-windows-static
|
||||||
|
|
||||||
rem location of protoc in protobuf directories:
|
rem location of protoc in protobuf directories:
|
||||||
SET PROTOC_DIRECTORY=\tools\protobuf\protoc.exe
|
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" (
|
if exist "%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib" (
|
||||||
SET PROTOBUF_LIBRARY=\lib\libprotobuf-lite.lib
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib
|
||||||
) else (
|
) else (
|
||||||
SET PROTOBUF_LIBRARY=\lib\libprotobuf.lib
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf.lib
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue