blob: 6ec19fd905e142ff986e4706694012233fe16b55 [file] [log] [blame]
# Copyright 2016 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/config.gni")
import("//chrome/android/features/autofill_assistant/public/java_sources.gni")
import("//chrome/android/features/tab_ui/tab_management_java_sources.gni")
import("//chrome/android/feed/feed_java_sources.gni")
import("//chrome/android/chrome_java_sources.gni")
import("//chrome/android/chrome_test_java_sources.gni")
import("//chrome/android/chrome_junit_test_java_sources.gni")
import("//components/feed/features.gni")
import("//components/offline_pages/buildflags/features.gni")
import("//device/vr/buildflags/buildflags.gni")
chrome_java_sources += public_autofill_assistant_java_sources
if (enable_vr) {
chrome_java_sources += [ "java/src/org/chromium/chrome/browser/component_updater/VrAssetsComponentInstaller.java" ]
}
if (notouch_build) {
chrome_java_sources += [
"touchless/java/src/org/chromium/chrome/browser/touchless/ContentSuggestionsViewBinder.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/NoTouchActivity.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionModel.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionsAdapter.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionsCoordinator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionsMediator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionsTileView.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/SiteSuggestionsViewHolderFactory.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessDelegate.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessNewTabPage.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessNewTabPageMediator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessNewTabPageProperties.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessNewTabPageTopLayout.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessTabObserver.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/TouchlessUiController.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/iph/KeyFunctionsIPHCoordinator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/iph/KeyFunctionsIPHMediator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/iph/KeyFunctionsIPHProperties.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/iph/KeyFunctionsIPHView.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/iph/KeyFunctionsIPHViewBinder.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/progressbar/ProgressBarCoordinator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/progressbar/ProgressBarMediator.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/progressbar/ProgressBarProperties.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/progressbar/ProgressBarView.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/progressbar/ProgressBarViewBinder.java",
"touchless/java/src/org/chromium/chrome/browser/touchless/ui/tooltip/TooltipView.java",
]
} else {
chrome_java_sources += [
"touchless/fallback/java/src/org/chromium/chrome/browser/touchless/TouchlessDelegate.java",
"touchless/fallback/java/src/org/chromium/chrome/browser/touchless/TouchlessUiController.java",
]
}
if (notouch_build) {
chrome_test_java_sources += [ "touchless/javatests/src/org/chromium/chrome/browser/touchless/NoTouchActivityTest.java" ]
}
# Only used for testing, should not be shipped to end users.
if (enable_offline_pages_harness) {
chrome_java_sources += [ "java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java" ]
chrome_test_java_sources += [ "javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageSavePageLaterEvaluationTest.java" ]
}
if (enable_feed_in_chrome) {
chrome_junit_test_java_sources += feed_junit_test_java_sources
chrome_test_java_sources += feed_test_java_sources
}
chrome_junit_test_java_sources += tab_management_junit_java_sources
chrome_test_java_sources += tab_management_test_java_sources
# This is enable_arcore, not package_arcore because the apk merger, for
# example, would complain that the java classes.dex differs between 32bit and
# 64bit. We must include this, even if we're not packaging the shim.
if (enable_arcore) {
chrome_java_sources += [
"java/src/org/chromium/chrome/browser/vr/ArCoreJavaUtils.java",
"java/src/org/chromium/chrome/browser/vr/ArDelegateImpl.java",
"java/src/org/chromium/chrome/browser/vr/ArCoreShim.java",
]
}