| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/mac/base_rules.gni") | 5 import("//build/config/mac/base_rules.gni") |
| 6 | 6 |
| 7 # Generates Info.plist files for Mac apps and frameworks. | 7 # Generates Info.plist files for Mac apps and frameworks. |
| 8 # | 8 # |
| 9 # Arguments | 9 # Arguments |
| 10 # | 10 # |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 visibility = [ ":$_executable_bundle_data" ] | 179 visibility = [ ":$_executable_bundle_data" ] |
| 180 forward_variables_from(invoker, | 180 forward_variables_from(invoker, |
| 181 "*", | 181 "*", |
| 182 [ | 182 [ |
| 183 "assert_no_deps", | 183 "assert_no_deps", |
| 184 "data_deps", | 184 "data_deps", |
| 185 "info_plist", | 185 "info_plist", |
| 186 "output_name", | 186 "output_name", |
| 187 "visibility", | 187 "visibility", |
| 188 ]) | 188 ]) |
| 189 if (defined(add_configs)) { |
| 190 configs += add_configs |
| 191 } |
| 189 output_name = _output_name | 192 output_name = _output_name |
| 190 output_dir = "$target_out_dir/$_executable_target" | 193 output_dir = "$target_out_dir/$_executable_target" |
| 191 } | 194 } |
| 192 | 195 |
| 193 bundle_data(_executable_bundle_data) { | 196 bundle_data(_executable_bundle_data) { |
| 194 visibility = [ ":$_target_name" ] | 197 visibility = [ ":$_target_name" ] |
| 195 forward_variables_from(invoker, [ "testonly" ]) | 198 forward_variables_from(invoker, [ "testonly" ]) |
| 196 sources = [ | 199 sources = [ |
| 197 "$target_out_dir/$_executable_target/$_output_name", | 200 "$target_out_dir/$_executable_target/$_output_name", |
| 198 ] | 201 ] |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ]) | 305 ]) |
| 303 if (!defined(deps)) { | 306 if (!defined(deps)) { |
| 304 deps = [] | 307 deps = [] |
| 305 } | 308 } |
| 306 deps += [ ":$_loadable_module_bundle_data" ] | 309 deps += [ ":$_loadable_module_bundle_data" ] |
| 307 | 310 |
| 308 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" | 311 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" |
| 309 bundle_executable_dir = "$bundle_root_dir/MacOS" | 312 bundle_executable_dir = "$bundle_root_dir/MacOS" |
| 310 } | 313 } |
| 311 } | 314 } |
| OLD | NEW |