diff --git a/ios/BUILD.gn b/ios/BUILD.gn index b749d5be09acb3..a3fe9d4b0799f1 100644 --- a/ios/BUILD.gn +++ b/ios/BUILD.gn @@ -19,7 +19,7 @@ group("all") { deps = [ "//components/cronet/ios:cronet_package_ios" ] } else if (is_webkit_only_build) { deps = [ "//ios/third_party/webkit" ] - } else { + } else if (ios_build_chrome) { deps = [ # List all the targets that need to be built on iOS by default. "//ios/chrome/app:chrome", diff --git a/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-device.json b/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-device.json index fee62969668c03..7f6c4f155c6537 100644 --- a/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-device.json +++ b/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-device.json @@ -7,6 +7,7 @@ "gn_args": [ "enable_run_ios_unittests_with_xctest=true", "goma_dir=\"$(goma_dir)\"", + "ios_build_chrome=false", "ios_enable_code_signing=false", "ios_set_attributes_for_xcode_project_generation=false", "ios_use_goma_rbe=true", diff --git a/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-simulator.json b/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-simulator.json index d019de724f7b68..5b3f3323af0814 100644 --- a/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-simulator.json +++ b/ios/build/bots/chromium.webrtc.fyi/WebRTC Chromium FYI ios-simulator.json @@ -6,6 +6,7 @@ "gn_args": [ "enable_run_ios_unittests_with_xctest=true", "goma_dir=\"$(goma_dir)\"", + "ios_build_chrome=false", "ios_enable_code_signing=false", "ios_set_attributes_for_xcode_project_generation=false", "ios_use_goma_rbe=true", diff --git a/ios/features.gni b/ios/features.gni index 610844020b5c61..3a220e69dec5ba 100644 --- a/ios/features.gni +++ b/ios/features.gni @@ -7,6 +7,11 @@ declare_args() { # WebKit for mac but incorrectly setting `target_os="ios"`. is_webkit_only_build = false + # Control whether //ios/chrome and //ios/web targets are build. This + # is used by bots from projects based on top of Chromium that want to + # only reuse shared code (//ios/net, //remoting/ios, ...). + ios_build_chrome = true + # Controls whether universal links are blocked from opening native apps # when the user is browsing in off the record mode. block_universal_links_in_off_the_record_mode = true