mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 13:20:44 +01:00

GN dependency checker doesn't run the preprocessor, so when the build is configured with `rtc_enable_protobuf = false` it complains that protobuf headers don't have a dependency (since the dependency is not added here [1]). It is unclear why this problem didn't show up before [2]. [1] - https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/rtc_base/BUILD.gn;l=26-29;drc=45afbc1e81449609cea181e410fa6875b00ec151 [2] - https://webrtc-review.googlesource.com/c/src/+/309262 Bug: None Change-Id: I139fe3a9804209f0ca39a5cccce8fd4f3ae062c5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/310320 Commit-Queue: Björn Terelius <terelius@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40343}
30 lines
894 B
C++
30 lines
894 B
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include <string>
|
|
|
|
#ifndef RTC_BASE_PROTOBUF_UTILS_H_
|
|
#define RTC_BASE_PROTOBUF_UTILS_H_
|
|
|
|
#if WEBRTC_ENABLE_PROTOBUF
|
|
|
|
#include "third_party/protobuf/src/google/protobuf/message_lite.h" // nogncheck
|
|
#include "third_party/protobuf/src/google/protobuf/repeated_field.h" // nogncheck
|
|
|
|
namespace webrtc {
|
|
|
|
using google::protobuf::MessageLite;
|
|
using google::protobuf::RepeatedPtrField;
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // WEBRTC_ENABLE_PROTOBUF
|
|
|
|
#endif // RTC_BASE_PROTOBUF_UTILS_H_
|