| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/toolchain/toolchain.gni") |
| 7 import("//components/policy/resources/policy_templates.gni") | 8 import("//components/policy/resources/policy_templates.gni") |
| 8 import("//third_party/protobuf/proto_library.gni") | 9 import("//third_party/protobuf/proto_library.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| 10 | 11 |
| 11 if (is_mac) { | 12 if (is_mac) { |
| 12 import("//build/util/branding.gni") | 13 import("//build/util/branding.gni") |
| 13 } | 14 } |
| 14 | 15 |
| 15 if (is_component_build) { | 16 if (is_component_build) { |
| 16 # External code should depend on either //components/policy/core/browser or | 17 # External code should depend on either //components/policy/core/browser or |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 sources = [ | 214 sources = [ |
| 214 "$policy_templates_base_dir/mac/app-Manifest.plist", | 215 "$policy_templates_base_dir/mac/app-Manifest.plist", |
| 215 ] | 216 ] |
| 216 inputs = [ | 217 inputs = [ |
| 217 script, | 218 script, |
| 218 ] | 219 ] |
| 219 outputs = [ | 220 outputs = [ |
| 220 "$target_gen_dir/$chrome_mac_bundle_id.manifest", | 221 "$target_gen_dir/$chrome_mac_bundle_id.manifest", |
| 221 ] | 222 ] |
| 222 | 223 |
| 223 args = [ | 224 if (use_system_xcode) { |
| 224 "plutil", | 225 args = [] |
| 225 "-convert", | 226 } else { |
| 226 "xml1", | 227 args = [ |
| 227 ] + rebase_path(sources, root_out_dir) + [ "-o" ] + | 228 "--developer_dir", |
| 228 rebase_path(outputs, root_out_dir) | 229 hermetic_xcode_path, |
| 230 ] |
| 231 } |
| 232 args += [ |
| 233 "plutil", |
| 234 "-convert", |
| 235 "xml1", |
| 236 ] + rebase_path(sources, root_out_dir) + [ "-o" ] + |
| 237 rebase_path(outputs, root_out_dir) |
| 229 | 238 |
| 230 deps = [ | 239 deps = [ |
| 231 ":policy_templates", | 240 ":policy_templates", |
| 232 ] | 241 ] |
| 233 } | 242 } |
| 234 | 243 |
| 235 bundle_data("manifest_bundle_data") { | 244 bundle_data("manifest_bundle_data") { |
| 236 sources = get_target_outputs(":convert_mcx_plist") | 245 sources = get_target_outputs(":convert_mcx_plist") |
| 237 outputs = [ | 246 outputs = [ |
| 238 "{{bundle_resources_dir}}/{{source_file_part}}", | 247 "{{bundle_resources_dir}}/{{source_file_part}}", |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 "--grit_info", | 316 "--grit_info", |
| 308 rebase_path(grit_info_script, root_build_dir), | 317 rebase_path(grit_info_script, root_build_dir), |
| 309 ] + grit_defines | 318 ] + grit_defines |
| 310 deps = [ | 319 deps = [ |
| 311 ":add_version", | 320 ":add_version", |
| 312 ":policy_templates", | 321 ":policy_templates", |
| 313 ] | 322 ] |
| 314 } | 323 } |
| 315 } | 324 } |
| 316 } | 325 } |
| OLD | NEW |