2019-08-26 13:49:18 -04:00
|
|
|
@echo off
|
|
|
|
cd /d "%~dp0"
|
2020-02-15 17:18:09 -05:00
|
|
|
SET PROTOBUF_X86_DIRECTORY=..\vcpkg\installed\x86-windows-static
|
|
|
|
SET PROTOBUF_X64_DIRECTORY=..\vcpkg\installed\x64-windows-static
|
2019-08-26 13:49:18 -04:00
|
|
|
|
2019-04-13 12:21:56 -04:00
|
|
|
rem location of protoc in protobuf directories:
|
2019-08-26 13:49:18 -04:00
|
|
|
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
|
|
|
|
)
|
2019-04-13 12:51:54 -04:00
|
|
|
|
|
|
|
if exist "%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib" (
|
2019-08-26 13:49:18 -04:00
|
|
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib
|
2019-04-13 12:51:54 -04:00
|
|
|
) else (
|
2019-08-26 13:49:18 -04:00
|
|
|
SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf.lib
|
2019-04-13 12:51:54 -04:00
|
|
|
)
|