From 22c32c46b6d56b8021be15a517ec1662be3d792c Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Mon, 26 Aug 2019 13:49:18 -0400 Subject: [PATCH] Forgot this. --- build_set_protobuf_directories.bat | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/build_set_protobuf_directories.bat b/build_set_protobuf_directories.bat index 7d8fbd51..bf81456d 100644 --- a/build_set_protobuf_directories.bat +++ b/build_set_protobuf_directories.bat @@ -1,10 +1,20 @@ +@echo off +cd /d "%~dp0" SET PROTOBUF_X86_DIRECTORY=..\vcpkg\packages\protobuf_x86-windows-static SET PROTOBUF_X64_DIRECTORY=..\vcpkg\packages\protobuf_x64-windows-static + 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" ( -SET PROTOBUF_LIBRARY=\lib\libprotobuf-lite.lib +SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf-lite.lib ) else ( -SET PROTOBUF_LIBRARY=\lib\libprotobuf.lib +SET PROTOBUF_X64_LIBRARY=%PROTOBUF_X64_DIRECTORY%\lib\libprotobuf.lib )