| # Copyright 2024 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/apple/swift_source_set.gni") |
| import("//build/config/ios/rules.gni") |
| import("//ios/build/chrome_build.gni") |
| import("//ios/build/config.gni") |
| |
| source_set("child_process_bridge_header") { |
| sources = [ |
| "child_process_bridge.h", |
| "child_process_sandbox.h", |
| ] |
| |
| frameworks = [ "Foundation.framework" ] |
| } |
| |
| source_set("child_process_bridge") { |
| sources = [ "child_process_bridge.mm" ] |
| |
| deps = [ |
| ":child_process_bridge_header", |
| "//base", |
| "//gpu/ipc/common", |
| "//sandbox/policy", |
| ] |
| frameworks = [ "Foundation.framework" ] |
| |
| # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and |
| # enable the diagnostic by removing this line. |
| configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
| } |
| |
| source_set("app_side_shim") { |
| sources = [ "child_process.mm" ] |
| |
| deps = [ "//base/allocator:early_zone_registration_apple" ] |
| |
| public_deps = [ ":child_process_bridge_header" ] |
| } |
| |
| swift_source_set("content_process") { |
| sources = [ "content_process.swift" ] |
| bridge_header = "child_process_bridge.h" |
| |
| frameworks = [ |
| "Foundation.framework", |
| "ExtensionFoundation.framework", |
| "BrowserEngineCore.framework", |
| "BrowserEngineKit.framework", |
| ] |
| |
| deps = [ ":app_side_shim" ] |
| } |
| |
| swift_source_set("network_process") { |
| sources = [ "network_process.swift" ] |
| bridge_header = "child_process_bridge.h" |
| |
| frameworks = [ |
| "Foundation.framework", |
| "ExtensionFoundation.framework", |
| "BrowserEngineCore.framework", |
| "BrowserEngineKit.framework", |
| ] |
| |
| deps = [ ":app_side_shim" ] |
| } |
| |
| swift_source_set("gpu_process") { |
| sources = [ "gpu_process.swift" ] |
| bridge_header = "child_process_bridge.h" |
| |
| frameworks = [ |
| "Foundation.framework", |
| "ExtensionFoundation.framework", |
| "BrowserEngineCore.framework", |
| "BrowserEngineKit.framework", |
| ] |
| |
| deps = [ ":app_side_shim" ] |
| } |