BUILD.gn 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. # Copyright 2020 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. assert(!is_ios)
  5. # This source set should contain only types and constants and no dependencies,
  6. # for use in crosapi type mappings.
  7. source_set("constants") {
  8. sources = [
  9. "install_result_code.cc",
  10. "install_result_code.h",
  11. "uninstall_result_code.h",
  12. ]
  13. }
  14. source_set("browser") {
  15. sources = [
  16. "banners/app_banner_manager.cc",
  17. "banners/app_banner_manager.h",
  18. "banners/app_banner_metrics.cc",
  19. "banners/app_banner_metrics.h",
  20. "banners/app_banner_settings_helper.cc",
  21. "banners/app_banner_settings_helper.h",
  22. "features.cc",
  23. "features.h",
  24. "installable/installable_data.cc",
  25. "installable/installable_data.h",
  26. "installable/installable_logging.cc",
  27. "installable/installable_logging.h",
  28. "installable/installable_manager.cc",
  29. "installable/installable_manager.h",
  30. "installable/installable_metrics.cc",
  31. "installable/installable_metrics.h",
  32. "installable/installable_params.cc",
  33. "installable/installable_params.h",
  34. "installable/installable_task_queue.cc",
  35. "installable/installable_task_queue.h",
  36. "pwa_install_path_tracker.cc",
  37. "pwa_install_path_tracker.h",
  38. "webapps_client.cc",
  39. "webapps_client.h",
  40. ]
  41. deps = [
  42. "//base",
  43. "//components/back_forward_cache",
  44. "//components/content_settings/core/browser",
  45. "//components/permissions",
  46. "//components/security_state/core",
  47. "//components/site_engagement/content",
  48. "//components/variations",
  49. "//components/webapps/common",
  50. "//content/public/browser",
  51. "//content/public/common",
  52. "//net",
  53. "//services/network/public/cpp",
  54. "//skia",
  55. "//third_party/blink/public/common",
  56. "//third_party/blink/public/mojom:mojom_platform_headers",
  57. "//url",
  58. ]
  59. public_deps = [ ":constants" ]
  60. if (is_android) {
  61. sources += [
  62. "android/add_to_homescreen_coordinator.cc",
  63. "android/add_to_homescreen_coordinator.h",
  64. "android/add_to_homescreen_data_fetcher.cc",
  65. "android/add_to_homescreen_data_fetcher.h",
  66. "android/add_to_homescreen_installer.cc",
  67. "android/add_to_homescreen_installer.h",
  68. "android/add_to_homescreen_mediator.cc",
  69. "android/add_to_homescreen_mediator.h",
  70. "android/add_to_homescreen_params.cc",
  71. "android/add_to_homescreen_params.h",
  72. "android/app_banner_manager_android.cc",
  73. "android/app_banner_manager_android.h",
  74. "android/bottomsheet/pwa_bottom_sheet_controller.cc",
  75. "android/bottomsheet/pwa_bottom_sheet_controller.h",
  76. "android/installable/installable_ambient_badge_client.h",
  77. "android/installable/installable_ambient_badge_infobar.cc",
  78. "android/installable/installable_ambient_badge_infobar.h",
  79. "android/installable/installable_ambient_badge_infobar_delegate.cc",
  80. "android/installable/installable_ambient_badge_infobar_delegate.h",
  81. "android/installable/installable_ambient_badge_message_controller.cc",
  82. "android/installable/installable_ambient_badge_message_controller.h",
  83. "android/shortcut_info.cc",
  84. "android/shortcut_info.h",
  85. "android/webapk/webapk_icon_hasher.cc",
  86. "android/webapk/webapk_icon_hasher.h",
  87. "android/webapk/webapk_proto_builder.cc",
  88. "android/webapk/webapk_proto_builder.h",
  89. "android/webapk/webapk_types.h",
  90. "android/webapps_icon_utils.cc",
  91. "android/webapps_icon_utils.h",
  92. "android/webapps_utils.cc",
  93. "android/webapps_utils.h",
  94. ]
  95. public_deps += [ "android:webapps_jni_headers" ]
  96. deps += [
  97. "//base",
  98. "//components/dom_distiller/core",
  99. "//components/favicon/content",
  100. "//components/favicon/core",
  101. "//components/favicon_base",
  102. "//components/feature_engagement",
  103. "//components/infobars/android",
  104. "//components/infobars/content",
  105. "//components/messages/android",
  106. "//components/messages/android:feature_flags",
  107. "//components/strings",
  108. "//components/url_formatter",
  109. "//components/version_info",
  110. "//components/version_info/android:channel_getter",
  111. "//components/webapk:proto",
  112. "//components/webapps/common:mojo_bindings",
  113. "//services/device/public/mojom",
  114. "//third_party/smhasher:murmurhash2",
  115. "//ui/android:android",
  116. "//ui/base",
  117. "//ui/gfx",
  118. "//url:gurl_android",
  119. ]
  120. }
  121. }
  122. source_set("test_support") {
  123. testonly = true
  124. sources = [
  125. "installable/fake_installable_manager.cc",
  126. "installable/fake_installable_manager.h",
  127. ]
  128. deps = [
  129. ":browser",
  130. "//base",
  131. "//skia",
  132. "//third_party/blink/public/common:headers",
  133. "//third_party/blink/public/mojom:mojom_platform_headers",
  134. "//url",
  135. ]
  136. }
  137. source_set("unit_tests") {
  138. testonly = true
  139. sources = [
  140. "banners/app_banner_settings_helper_unittest.cc",
  141. "install_result_code_unittest.cc",
  142. "installable/installable_manager_unittest.cc",
  143. "installable/installable_task_queue_unittest.cc",
  144. "pwa_install_path_tracker_unittest.cc",
  145. ]
  146. deps = [
  147. ":browser",
  148. "//base",
  149. "//base/test:test_support",
  150. "//components/content_settings/core/browser",
  151. "//components/permissions:test_support",
  152. "//components/prefs:test_support",
  153. "//components/site_engagement/content",
  154. "//components/user_prefs",
  155. "//content/public/browser",
  156. "//content/public/common",
  157. "//content/test:test_support",
  158. "//testing/gtest",
  159. "//third_party/blink/public/mojom:mojom_platform_headers",
  160. ]
  161. if (is_android) {
  162. sources += [ "android/installable/installable_ambient_badge_message_controller_unittest.cc" ]
  163. deps += [ "//components/messages/android:test_support" ]
  164. }
  165. }