| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 "-s=BUILD_MACHINE_OS_BUILD=$machine_os_build", | 57 "-s=BUILD_MACHINE_OS_BUILD=$machine_os_build", |
| 58 "-s=EXECUTABLE_NAME=$executable_name", | 58 "-s=EXECUTABLE_NAME=$executable_name", |
| 59 "-s=GCC_VERSION=com.apple.compilers.llvm.clang.1_0", | 59 "-s=GCC_VERSION=com.apple.compilers.llvm.clang.1_0", |
| 60 "-s=PRODUCT_NAME=$executable_name", | 60 "-s=PRODUCT_NAME=$executable_name", |
| 61 "-s=XCODE_BUILD=$xcode_build", | 61 "-s=XCODE_BUILD=$xcode_build", |
| 62 "-s=XCODE_VERSION=$xcode_version", | 62 "-s=XCODE_VERSION=$xcode_version", |
| 63 "-o=" + rebase_path(outputs[0], root_build_dir), | 63 "-o=" + rebase_path(outputs[0], root_build_dir), |
| 64 "-f=" + invoker.format, | 64 "-f=" + invoker.format, |
| 65 ] + rebase_path(sources, root_build_dir) | 65 ] + rebase_path(sources, root_build_dir) |
| 66 args = [ "@{{response_file_name}}" ] | 66 args = [ "@{{response_file_name}}" ] |
| 67 forward_variables_from(invoker, |
| 68 [ |
| 69 "testonly", |
| 70 "deps", |
| 71 ]) |
| 67 } | 72 } |
| 68 } | 73 } |
| 69 | 74 |
| 70 # This is used as the base template for both iOS and Mac frameworks. | 75 # This is used as the base template for both iOS and Mac frameworks. |
| 71 # | 76 # |
| 72 # By default, the bundle target this template generates does not link the | 77 # By default, the bundle target this template generates does not link the |
| 73 # resulting framework into anything that depends on it. If a dependency wants | 78 # resulting framework into anything that depends on it. If a dependency wants |
| 74 # a link-time (as well as build-time) dependency on the framework bundle, | 79 # a link-time (as well as build-time) dependency on the framework bundle, |
| 75 # depend against "$target_name+link". If only the build-time dependency is | 80 # depend against "$target_name+link". If only the build-time dependency is |
| 76 # required (e.g., for copying into another bundle), then use "$target_name". | 81 # required (e.g., for copying into another bundle), then use "$target_name". |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 "$target_gen_dir/{{source_name_part}}.nib", | 317 "$target_gen_dir/{{source_name_part}}.nib", |
| 313 ] | 318 ] |
| 314 args = [ | 319 args = [ |
| 315 "--input", | 320 "--input", |
| 316 "{{source}}", | 321 "{{source}}", |
| 317 "--output", | 322 "--output", |
| 318 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), | 323 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), |
| 319 ] + ibtool_flags | 324 ] + ibtool_flags |
| 320 } | 325 } |
| 321 } | 326 } |
| OLD | NEW |