| # Copyright 2022 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. |
| |
| source_set("mailto_handler") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "mailto_handler_configuration.h", |
| "mailto_handler_configuration.mm", |
| "mailto_handler_service.h", |
| "mailto_handler_service.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/keyed_service/core", |
| "//ios/public/provider/chrome/browser/signin:signin_sso_api", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| # This is a separate target because the factory depends on the provider |
| # and the provider depends on the declaration of the service (since it |
| # provides an implementation). Using separate targets prevents circular |
| # dependencies. |
| source_set("mailto_handler_factory") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "mailto_handler_service_factory.h", |
| "mailto_handler_service_factory.mm", |
| ] |
| deps = [ |
| ":mailto_handler", |
| "//base", |
| "//components/keyed_service/ios", |
| "//ios/chrome/browser:application_context", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/sync", |
| "//ios/public/provider/chrome/browser/mailto_handler:mailto_handler_api", |
| ] |
| } |