# Copyright 2005-2020 The Mumble Developers. All rights reserved. # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file at the root of the # Mumble source tree or at . include(../../../qmake/compiler.pri) include(../../../qmake/protoc.pri) GRPC_CPP_PLUGIN = $${MUMBLE_GRPC_CPP_PLUGIN} # If the MUMBLE_GRPC_CPP_PLUGIN environment variable isn't set isEmpty(GRPC_CPP_PLUGIN) { # If we're building from Windows, use "grpc_cpp_plugin" equals(QMAKE_HOST.os, "Windows") { GRPC_CPP_PLUGIN = grpc_cpp_plugin } else { GRPC_CPP_PLUGIN = $$system(which grpc_cpp_plugin) } } GRPC *= ../MurmurRPC.proto grpc_pbh.output = ${QMAKE_FILE_BASE}.pb.h grpc_pbh.depends = ${QMAKE_FILE_BASE}.pb.cc grpc_pbh.commands = $$escape_expand(\\n) grpc_pbh.input = GRPC grpc_pbh.CONFIG *= no_link explicit_dependencies target_predeps grpc_pbh.variable_out = HEADERS grpc_pb.output = ${QMAKE_FILE_BASE}.pb.cc grpc_pb.commands = $${PROTOC} --cpp_out=. -I. -I.. ${QMAKE_FILE_NAME} grpc_pb.input = GRPC grpc_pb.CONFIG *= no_link explicit_dependencies grpc_pb.variable_out = SOURCES grpch.output = ${QMAKE_FILE_BASE}.grpc.pb.h grpch.depends = ${QMAKE_FILE_BASE}.grpc.pb.cc grpch.commands = $$escape_expand(\\n) grpch.input = GRPC grpch.CONFIG *= no_link explicit_dependencies target_predeps grpc.output = ${QMAKE_FILE_BASE}.grpc.pb.cc grpc.depends = ${QMAKE_FILE_BASE}.pb.h grpc.commands = $${PROTOC} --grpc_out=. --plugin=protoc-gen-grpc=$${GRPC_CPP_PLUGIN} -I. -I.. ${QMAKE_FILE_NAME} grpc.input = GRPC grpc.CONFIG *= no_link explicit_dependencies grpc.variable_out = SOURCES TEMPLATE = lib CONFIG -= qt CONFIG += debug_and_release CONFIG += staticlib QMAKE_EXTRA_COMPILERS *= grpc_pb grpc_pbh grpc grpch !CONFIG(third-party-warnings) { # We ignore warnings in third party builds. We won't actually look # at them and they clutter out our warnings. CONFIG -= warn_on CONFIG += warn_off } unix { QMAKE_CXXFLAGS *= -std=c++11 } include(../../../qmake/symbols.pri)