| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 # This file contains rules that are shared between Mac and iOS. | 5 # This file contains rules that are shared between Mac and iOS. |
| 6 | 6 |
| 7 import("//build/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
| 8 | 8 |
| 9 if (is_mac) { | 9 if (is_mac) { |
| 10 import("//build/config/mac/mac_sdk.gni") | 10 import("//build/config/mac/mac_sdk.gni") |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 invoker.source, | 42 invoker.source, |
| 43 ] | 43 ] |
| 44 outputs = [ | 44 outputs = [ |
| 45 invoker.output, | 45 invoker.output, |
| 46 ] | 46 ] |
| 47 args = [ | 47 args = [ |
| 48 "plutil", | 48 "plutil", |
| 49 "-convert", | 49 "-convert", |
| 50 invoker.format, | 50 invoker.format, |
| 51 "-o", | 51 "-o", |
| 52 rebase_path(invoker.output, root_out_dir), | 52 rebase_path(invoker.output, root_build_dir), |
| 53 rebase_path(invoker.source, root_out_dir), | 53 rebase_path(invoker.source, root_build_dir), |
| 54 ] | 54 ] |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 # The base template used to generate Info.plist files for iOS and Mac apps and | 58 # The base template used to generate Info.plist files for iOS and Mac apps and |
| 59 # frameworks. | 59 # frameworks. |
| 60 # | 60 # |
| 61 # Arguments | 61 # Arguments |
| 62 # | 62 # |
| 63 # plist_templates: | 63 # plist_templates: |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 public_deps = [ | 263 public_deps = [ |
| 264 ":$_shared_library_target", | 264 ":$_shared_library_target", |
| 265 ] | 265 ] |
| 266 } | 266 } |
| 267 | 267 |
| 268 _framework_public_config = _target_name + "_public_config" | 268 _framework_public_config = _target_name + "_public_config" |
| 269 config(_framework_public_config) { | 269 config(_framework_public_config) { |
| 270 # TODO(sdefresne): should we have a framework_dirs similar to lib_dirs | 270 # TODO(sdefresne): should we have a framework_dirs similar to lib_dirs |
| 271 # and include_dirs to avoid duplicate values on the command-line. | 271 # and include_dirs to avoid duplicate values on the command-line. |
| 272 visibility = [ ":$_framework_target" ] | 272 visibility = [ ":$_framework_target" ] |
| 273 ldflags = [ "-F" + rebase_path("$root_out_dir/.", root_out_dir) ] | 273 ldflags = [ "-F" + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 274 lib_dirs = [ root_out_dir ] | 274 lib_dirs = [ root_out_dir ] |
| 275 libs = [ _framework_name ] | 275 libs = [ _framework_name ] |
| 276 } | 276 } |
| 277 | 277 |
| 278 create_bundle(_framework_target) { | 278 create_bundle(_framework_target) { |
| 279 forward_variables_from(invoker, | 279 forward_variables_from(invoker, |
| 280 [ | 280 [ |
| 281 "data_deps", | 281 "data_deps", |
| 282 "deps", | 282 "deps", |
| 283 "public_deps", | 283 "public_deps", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 "$target_gen_dir/{{source_name_part}}.nib", | 369 "$target_gen_dir/{{source_name_part}}.nib", |
| 370 ] | 370 ] |
| 371 args = [ | 371 args = [ |
| 372 "--input", | 372 "--input", |
| 373 "{{source}}", | 373 "{{source}}", |
| 374 "--output", | 374 "--output", |
| 375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), | 375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), |
| 376 ] + ibtool_flags | 376 ] + ibtool_flags |
| 377 } | 377 } |
| 378 } | 378 } |
| OLD | NEW |