BUILD.gn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Copyright 2019 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//components/gwp_asan/buildflags/buildflags.gni")
  5. import("//components/spellcheck/spellcheck_build_features.gni")
  6. import("//weblayer/variables.gni")
  7. source_set("lib") {
  8. sources = [
  9. "aw_main_delegate.cc",
  10. "aw_main_delegate.h",
  11. "webview_jni_onload.cc",
  12. "webview_jni_onload.h",
  13. ]
  14. deps = [
  15. "//android_webview/browser",
  16. "//android_webview/browser/gfx",
  17. "//android_webview/common",
  18. "//android_webview/gpu",
  19. "//android_webview/js_sandbox/service:js_sandbox",
  20. "//android_webview/renderer",
  21. "//base",
  22. "//cc/base",
  23. "//components/autofill/core/common",
  24. "//components/crash/core/common",
  25. "//components/embedder_support:embedder_support",
  26. "//components/gwp_asan/buildflags",
  27. "//components/metrics",
  28. "//components/power_scheduler",
  29. "//components/safe_browsing/android:safe_browsing_api_handler",
  30. "//components/services/heap_profiling/public/cpp",
  31. "//components/spellcheck:buildflags",
  32. "//components/translate/core/common",
  33. "//components/variations",
  34. "//components/version_info",
  35. "//components/version_info/android:channel_getter",
  36. "//components/viz/common",
  37. "//content/public/app",
  38. "//content/public/browser",
  39. "//content/public/common",
  40. "//content/public/common:content_descriptor_keys",
  41. "//device/base:base",
  42. "//gin",
  43. "//gpu/command_buffer/service",
  44. "//gpu/config",
  45. "//media",
  46. "//media:media_buildflags",
  47. "//third_party/blink/public/common:headers",
  48. "//ui/base",
  49. "//ui/events:gesture_detection",
  50. ]
  51. if (enable_gwp_asan) {
  52. deps += [ "//components/gwp_asan/client" ]
  53. }
  54. if (enable_spellcheck) {
  55. deps += [ "//components/spellcheck/common" ]
  56. }
  57. }
  58. source_set("webview_entry_point") {
  59. deps = [
  60. ":lib",
  61. "//base",
  62. ]
  63. sources = [ "webview_entry_point.cc" ]
  64. if (webview_includes_weblayer) {
  65. defines = [ "WEBVIEW_INCLUDES_WEBLAYER" ]
  66. deps += [ "//weblayer:weblayer_lib_webview" ]
  67. }
  68. }