blob: 7b4dd5448aa783431c1415f6e920e4244859cb23 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//remoting/remoting_options.gni")
template("remoting_android_client_java_tmpl") {
android_library(target_name) {
_java_file_prefix = "//remoting/android/java/src/org/chromium/chromoting"
_java_files = [
"AccountsAdapter.java",
"ActivityLifecycleListener.java",
"AnimationJob.java",
"Capabilities.java",
"CapabilityManager.java",
"Chromoting.java",
"ChromotingDownloadManager.java",
"ChromotingUtil.java",
"ClientExtension.java",
"Desktop.java",
"DesktopCanvas.java",
"DesktopView.java",
"DesktopViewInterface.java",
"DummyActivityLifecycleListener.java",
"DummyClientExtension.java",
"Event.java",
"FeedbackAnimator.java",
"FlingAnimationJob.java",
"HostInfo.java",
"HostListAdapter.java",
"HostListManager.java",
"InputEventSender.java",
"InputModeChangedEventParameter.java",
"InputStrategyInterface.java",
"InputStub.java",
"NavigationMenuAdapter.java",
"OAuthTokenConsumer.java",
"PaintEventParameter.java",
"Preconditions.java",
"RenderData.java",
"ScaleEventParameter.java",
"SessionAuthenticator.java",
"SessionConnector.java",
"SimulatedTouchInputStrategy.java",
"SizeChangedEventParameter.java",
"SoftInputMethodVisibilityChangedEventParameter.java",
"SwipePinchDetector.java",
"TapGestureDetector.java",
"ThirdPartyTokenFetcher.java",
"TouchEventParameter.java",
"TouchInputHandler.java",
"TouchInputStrategy.java",
"TrackpadInputStrategy.java",
"TapEventParameter.java",
"TwoPointsEventParameter.java",
"accountswitcher/AccountSwitcher.java",
"accountswitcher/AccountSwitcherBase.java",
"accountswitcher/AccountSwitcherBasic.java",
"accountswitcher/AccountSwitcherFactory.java",
"base/OAuthTokenFetcher.java",
"cardboard/CardboardRenderer.java",
"cardboard/CardboardUtil.java",
"cardboard/Cursor.java",
"cardboard/Desktop.java",
"cardboard/DesktopActivity.java",
"cardboard/MenuBar.java",
"cardboard/MenuItem.java",
"cardboard/Photosphere.java",
"cardboard/ShaderHelper.java",
"cardboard/TextureHelper.java",
"help/CreditsActivity.java",
"help/HelpActivity.java",
"help/HelpAndFeedback.java",
"help/HelpAndFeedbackBasic.java",
"help/HelpContext.java",
"help/HelpSingleton.java",
"jni/Client.java",
"jni/ConnectionListener.java",
"jni/Display.java",
"jni/JniInterface.java",
"jni/TouchEventData.java",
]
java_files = rebase_path(_java_files, ".", _java_file_prefix)
deps = [
"//base:base_java",
"//remoting/android:remoting_android_client_java_resources",
"//third_party/android_tools:android_support_v13_java",
"//third_party/android_tools:android_support_v7_appcompat_java",
"//third_party/android_tools:android_support_v7_mediarouter_java",
"//third_party/cardboard-java",
"//ui/android:ui_java",
]
deps += [ invoker.remoting_google_play_services_library ]
}
}