mirror of https://github.com/qt/qtgrpc.git
Require the PROTOC_EXECUTABLE definition in tests
Require the PROTOC_EXECUTABLE definition when compiling qtprotobufgen/qtgrpcgen tests. Pick-to: 6.5 Change-Id: I5e207c8402dbccd5254d6a9687303e56ff7a4bbb Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> (cherry picked from commitf15db878a1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit2be1d6fa8c)
This commit is contained in:
parent
5bf86d7e7e
commit
e897b0f403
|
|
@ -20,15 +20,10 @@ const QLatin1StringView grpcGenQtprotobufKey(" --plugin=protoc-gen-qtgrpc=");
|
|||
const QLatin1StringView optKey(" --qtgrpc_opt=");
|
||||
const QLatin1StringView outputKey(" --qtgrpc_out=");
|
||||
const QLatin1StringView includeKey(" -I");
|
||||
#if defined(PROTOC_EXECUTABLE)
|
||||
#ifndef PROTOC_EXECUTABLE
|
||||
# error PROTOC_EXECUTABLE definition must be set and point to the valid protoc executable
|
||||
#endif
|
||||
const QLatin1StringView protocolBufferCompiler(XSTR(PROTOC_EXECUTABLE));
|
||||
#else
|
||||
#if defined(Q_OS_WIN)
|
||||
const QLatin1StringView protocolBufferCompiler("protoc.exe");
|
||||
#else
|
||||
const QLatin1StringView protocolBufferCompiler("protoc");
|
||||
#endif
|
||||
#endif
|
||||
#if defined(Q_OS_WIN)
|
||||
const QLatin1StringView qtgrpcgen("/qtgrpcgen.exe");
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -21,15 +21,10 @@ const QLatin1StringView protocGenQtprotobufKey(" --plugin=protoc-gen-qtprotobuf=
|
|||
const QLatin1StringView optKey(" --qtprotobuf_opt=");
|
||||
const QLatin1StringView outputKey(" --qtprotobuf_out=");
|
||||
const QLatin1StringView includeKey(" -I");
|
||||
#if defined(PROTOC_EXECUTABLE)
|
||||
#ifndef PROTOC_EXECUTABLE
|
||||
# error PROTOC_EXECUTABLE definition must be set and point to the valid protoc executable
|
||||
#endif
|
||||
const QLatin1StringView protocolBufferCompiler(XSTR(PROTOC_EXECUTABLE));
|
||||
#else
|
||||
#if defined(Q_OS_WIN)
|
||||
const QLatin1StringView protocolBufferCompiler("protoc.exe");
|
||||
#else
|
||||
const QLatin1StringView protocolBufferCompiler("protoc");
|
||||
#endif
|
||||
#endif
|
||||
#if defined(Q_OS_WIN)
|
||||
const QLatin1StringView qtprotobufgen("/qtprotobufgen.exe");
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue