From 73e2180f946efef055fcddcdce2d2b774072d6c1 Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Tue, 20 Jun 2017 08:38:58 +0200 Subject: [PATCH] Add webrtc/rtc_base skeleton. Add webrtc/rtc_base in preparation for the larger rename in https://codereview.webrtc.org/2877023002. This is needed in order to make downstream projects update their dependencies (since it's not possible to use public_deps for android_library). BUG=webrtc:7634 NOTRY=True Change-Id: I90fa72c9ebbc4e69bb3133413c3258432a5a72b1 Reviewed-on: https://chromium-review.googlesource.com/541215 Reviewed-by: Tommi Commit-Queue: Henrik Kjellander Cr-Commit-Position: refs/heads/master@{#18699} --- webrtc/BUILD.gn | 1 + webrtc/rtc_base/BUILD.gn | 33 +++++++++++++++++++++++++++++++++ webrtc/rtc_base/Dummy.java | 19 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 webrtc/rtc_base/BUILD.gn create mode 100644 webrtc/rtc_base/Dummy.java diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 53e34277c8..f359dc09ab 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -263,6 +263,7 @@ if (!build_with_chromium) { "ortc", "p2p", "pc", + "rtc_base", "sdk", "stats", "system_wrappers:system_wrappers_default", diff --git a/webrtc/rtc_base/BUILD.gn b/webrtc/rtc_base/BUILD.gn new file mode 100644 index 0000000000..3f88717e96 --- /dev/null +++ b/webrtc/rtc_base/BUILD.gn @@ -0,0 +1,33 @@ +# 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. + +import("../webrtc.gni") + +if (is_android) { + import("//build/config/android/config.gni") + import("//build/config/android/rules.gni") +} + +group("rtc_base") { + public_deps = [] + if (is_android) { + public_deps += [ ":base_java" ] + } +} + +if (is_android) { + android_library("base_java") { + # TODO(kjellander): android_library hits an assert during GN generation + # unless java_files is set and contains at least one file. + # This will be cleaned up after the rename migration is completed. + # This target currently exists only so downstream projects can migrate + # to depend on both the old and the new target. + # See https://bugs.webrtc.org/7634 for more details. + java_files = [ "Dummy.java" ] + } +} diff --git a/webrtc/rtc_base/Dummy.java b/webrtc/rtc_base/Dummy.java new file mode 100644 index 0000000000..d8f02c90db --- /dev/null +++ b/webrtc/rtc_base/Dummy.java @@ -0,0 +1,19 @@ +/* + * 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 class only exists as glue in a transition. + * TODO(kjellander): Remove. + * See https://bugs.webrtc.org/7634 for more details. + */ +class Dummy { + Dummy() { + } +}