| # Copyright 2019 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. |
| |
| import("//build/apple/tweak_info_plist.gni") |
| import("//build/config/mac/rules.gni") |
| import("//build/config/python.gni") |
| import("//build/util/version.gni") |
| import("//chrome/updater/branding.gni") |
| |
| group("mac") { |
| deps = [ |
| ":browser_install_script", |
| ":updater_bundle", |
| ":updater_install_script", |
| "//chrome/updater/mac/signing", |
| ] |
| } |
| |
| tweak_info_plist("updater_plist") { |
| info_plist = "Info.plist" |
| } |
| |
| mac_app_bundle("updater_bundle") { |
| info_plist_target = ":updater_plist" |
| output_name = updater_product_full_name |
| extra_substitutions = |
| [ "MAC_BUNDLE_IDENTIFIER=$mac_updater_bundle_identifier" ] |
| |
| sources = [ "main.cc" ] |
| deps = [ |
| "//chrome/updater:base", |
| "//chrome/updater:constants_prod", |
| ] |
| } |
| |
| mac_app_bundle("updater_bundle_test") { |
| info_plist_target = ":updater_plist" |
| output_name = updater_product_full_name + "_test" |
| extra_substitutions = |
| [ "MAC_BUNDLE_IDENTIFIER=$mac_updater_bundle_identifier" ] |
| |
| sources = [ "main.cc" ] |
| deps = [ |
| "//chrome/updater:base", |
| "//chrome/updater:constants_test", |
| ] |
| } |
| |
| action("updater_install_script") { |
| script = "embed_variables.py" |
| |
| inputs = [ |
| script, |
| "setup/.install.sh", |
| ] |
| |
| outputs = [ "$root_out_dir/chrome/updater/.install" ] |
| |
| args = [ |
| "-i", |
| rebase_path("setup/.install.sh"), |
| "-o", |
| rebase_path(root_out_dir + "/chrome/updater/.install"), |
| "-p", |
| updater_product_full_name, |
| ] |
| } |
| |
| action("browser_install_script") { |
| script = "embed_variables.py" |
| |
| inputs = [ |
| script, |
| ".install.sh", |
| ] |
| |
| outputs = [ "$root_out_dir/$browser_product_name Packaging/updater/.install" ] |
| |
| args = [ |
| "-i", |
| rebase_path(".install.sh"), |
| "-o", |
| rebase_path( |
| root_out_dir + "/$browser_product_name Packaging/updater/.install"), |
| "-v", |
| chrome_version_full, |
| ] |
| } |