From 6c8e6666cebe3a8f978af7a1516b03d6ae11d00a Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 13 Dec 2017 07:40:54 +0100 Subject: [PATCH] Fixing package boundary violation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TBR=solenberg@webrtc.org Bug: None Change-Id: I8ea08b97a4251fa9904e90c5c1f3095ea1c90a07 No-Try: True Reviewed-on: https://webrtc-review.googlesource.com/32361 Commit-Queue: Mirko Bonadei Reviewed-by: Patrik Höglund Cr-Commit-Position: refs/heads/master@{#21237} --- media/BUILD.gn | 2 +- media/sctp/noop.cc | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 media/sctp/noop.cc diff --git a/media/BUILD.gn b/media/BUILD.gn index 9911ce2437..31822cedb9 100644 --- a/media/BUILD.gn +++ b/media/BUILD.gn @@ -273,7 +273,7 @@ rtc_static_library("rtc_data") { } else { # libtool on mac does not like empty targets. sources = [ - "//rtc_base/noop.cc", + "sctp/noop.cc", ] } diff --git a/media/sctp/noop.cc b/media/sctp/noop.cc new file mode 100644 index 0000000000..a3523b18b2 --- /dev/null +++ b/media/sctp/noop.cc @@ -0,0 +1,13 @@ +/* + * Copyright 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. + */ + +// This file is only needed to make ninja happy on some platforms. +// On some platforms it is not possible to link an rtc_static_library +// without any source file listed in the GN target.