| # Copyright 2019 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| |
| source_set("app_file_handling") { |
| sources = [ |
| "file_handler.cc", |
| "file_handler.h", |
| "file_handler_info.cc", |
| "file_handler_info.h", |
| ] |
| |
| public_deps = [ ":app_icon_info" ] |
| |
| deps = [ |
| "//base", |
| "//url", |
| ] |
| } |
| |
| source_set("app_icon_info") { |
| sources = [ |
| "icon_info.cc", |
| "icon_info.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//url", |
| ] |
| } |
| |
| source_set("app_share_target") { |
| sources = [ |
| "share_target.cc", |
| "share_target.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//url", |
| ] |
| } |
| |
| component("app_types") { |
| output_name = "APP_TYPES" |
| sources = [ |
| "app_launch_util.cc", |
| "app_launch_util.h", |
| "app_types.cc", |
| "app_types.h", |
| "capability_access.cc", |
| "capability_access.h", |
| "features.cc", |
| "features.h", |
| "intent_filter.cc", |
| "intent_filter.h", |
| "macros.h", |
| "menu.cc", |
| "menu.h", |
| "permission.cc", |
| "permission.h", |
| "shortcut.cc", |
| "shortcut.h", |
| ] |
| |
| defines = [ "IS_APP_TYPES_IMPL" ] |
| |
| public_deps = [ "//components/services/app_service/public/protos" ] |
| |
| deps = [ |
| ":icon_types", |
| ":run_on_os_login", |
| "//ui/gfx:gfx", |
| "//ui/gfx/geometry:geometry", |
| "//url:url", |
| ] |
| } |
| |
| component("app_update") { |
| output_name = "APP_UPDATE" |
| sources = [ |
| "app_capability_access_cache.cc", |
| "app_capability_access_cache.h", |
| "app_capability_access_cache_wrapper.cc", |
| "app_capability_access_cache_wrapper.h", |
| "app_registry_cache.cc", |
| "app_registry_cache.h", |
| "app_registry_cache_wrapper.cc", |
| "app_registry_cache_wrapper.h", |
| "app_update.cc", |
| "app_update.h", |
| "capability_access_update.cc", |
| "capability_access_update.h", |
| "macros.h", |
| ] |
| |
| defines = [ "IS_APP_UPDATE_IMPL" ] |
| |
| public_deps = [ "//components/account_id:account_id" ] |
| |
| deps = [ |
| ":app_types", |
| ":icon_types", |
| ":intents", |
| ":run_on_os_login", |
| "//ui/gfx", |
| ] |
| } |
| |
| source_set("app_url_handling") { |
| sources = [ |
| "url_handler_info.cc", |
| "url_handler_info.h", |
| ] |
| |
| deps = [ "//url" ] |
| } |
| |
| if (is_chromeos) { |
| source_set("browser_app_instance_registry_update") { |
| sources = [ |
| "browser_app_instance_update.cc", |
| "browser_app_instance_update.h", |
| "browser_window_instance_update.h", |
| ] |
| |
| deps = [ "//base" ] |
| } |
| } |
| |
| if (is_chromeos_ash) { |
| source_set("instance_update") { |
| sources = [ |
| "instance.cc", |
| "instance.h", |
| "instance_registry.cc", |
| "instance_registry.h", |
| "instance_update.cc", |
| "instance_update.h", |
| "macros.h", |
| ] |
| deps = [ |
| "//ash/public/cpp:cpp", |
| "//content/public/browser", |
| "//skia", |
| "//ui/aura", |
| "//ui/compositor", |
| ] |
| } |
| } |
| |
| source_set("icon_loader") { |
| sources = [ |
| "icon_cache.cc", |
| "icon_cache.h", |
| "icon_coalescer.cc", |
| "icon_coalescer.h", |
| "icon_loader.cc", |
| "icon_loader.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| ":icon_types", |
| "//ui/gfx:gfx", |
| ] |
| } |
| |
| source_set("icon_loader_test_support") { |
| sources = [ |
| "stub_icon_loader.cc", |
| "stub_icon_loader.h", |
| ] |
| |
| deps = [ |
| ":icon_loader", |
| "//skia", |
| "//ui/gfx:gfx", |
| ] |
| } |
| |
| component("icon_types") { |
| output_name = "ICON_TYPES" |
| sources = [ |
| "icon_types.cc", |
| "icon_types.h", |
| ] |
| |
| defines = [ "IS_ICON_TYPES_IMPL" ] |
| |
| deps = [ "//ui/gfx" ] |
| } |
| |
| component("run_on_os_login") { |
| output_name = "LOGIN_MODE" |
| sources = [ |
| "macros.h", |
| "run_on_os_login_types.cc", |
| "run_on_os_login_types.h", |
| ] |
| |
| defines = [ "IS_LOGIN_MODE_IMPL" ] |
| |
| deps = [ "//base:base" ] |
| } |
| |
| source_set("intents") { |
| sources = [ |
| "intent.cc", |
| "intent.h", |
| "intent_filter_util.cc", |
| "intent_filter_util.h", |
| "intent_util.cc", |
| "intent_util.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| "//base", |
| "//third_party/blink/public/common", |
| "//url", |
| ] |
| } |
| |
| source_set("protocol_handling") { |
| sources = [ |
| "protocol_handler_info.cc", |
| "protocol_handler_info.h", |
| ] |
| |
| deps = [ "//url" ] |
| } |
| |
| source_set("preferred_app") { |
| sources = [ |
| "preferred_app.cc", |
| "preferred_app.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| "//base:base", |
| "//third_party/abseil-cpp:absl", |
| ] |
| } |
| |
| source_set("preferred_apps") { |
| sources = [ |
| "preferred_apps_converter.cc", |
| "preferred_apps_converter.h", |
| "preferred_apps_impl.cc", |
| "preferred_apps_impl.h", |
| "preferred_apps_list.cc", |
| "preferred_apps_list.h", |
| "preferred_apps_list_handle.cc", |
| "preferred_apps_list_handle.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| ":intents", |
| ":preferred_app", |
| "//base", |
| "//content/public/browser", |
| "//url", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| |
| sources = [ |
| "intent_test_util.cc", |
| "intent_test_util.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| ":intents", |
| "//third_party/abseil-cpp:absl", |
| ] |
| } |
| |
| source_set("types") { |
| sources = [ |
| "types_util.cc", |
| "types_util.h", |
| ] |
| |
| deps = [ |
| ":app_types", |
| "//third_party/abseil-cpp:absl", |
| ] |
| } |
| |
| source_set("crosapi_utils") { |
| sources = [ "crosapi_utils.h" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "app_capability_access_cache_unittest.cc", |
| "app_capability_access_cache_wrapper_unittest.cc", |
| "app_registry_cache_unittest.cc", |
| "app_registry_cache_wrapper_unittest.cc", |
| "app_update_unittest.cc", |
| "capability_access_update_unittest.cc", |
| "icon_cache_unittest.cc", |
| "icon_coalescer_unittest.cc", |
| "intent_filter_util_unittest.cc", |
| "intent_util_unittest.cc", |
| "preferred_apps_converter_unittest.cc", |
| "preferred_apps_list_unittest.cc", |
| ] |
| |
| deps = [ |
| ":app_types", |
| ":app_update", |
| ":icon_loader", |
| ":icon_types", |
| ":intents", |
| ":preferred_app", |
| ":preferred_apps", |
| ":run_on_os_login", |
| ":test_support", |
| ":types", |
| "//content/test:test_support", |
| "//testing/gtest", |
| ] |
| |
| if (is_chromeos_ash) { |
| sources += [ |
| "instance_registry_unittest.cc", |
| "instance_unittest.cc", |
| "instance_update_unittest.cc", |
| ] |
| |
| deps += [ |
| ":instance_update", |
| "//chrome/test:test_support", |
| ] |
| } |
| } |