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/ios/ios_sdk.gni") | 5 import("//build/config/ios/ios_sdk.gni") |
6 import("//build/config/mac/base_rules.gni") | 6 import("//build/config/mac/base_rules.gni") |
7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 | 9 |
10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. | 10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 _dsyms_output_dir = "$root_out_dir/$_output_name.dSYM" | 95 _dsyms_output_dir = "$root_out_dir/$_output_name.dSYM" |
96 outputs += [ | 96 outputs += [ |
97 "$_dsyms_output_dir/", | 97 "$_dsyms_output_dir/", |
98 "$_dsyms_output_dir/Contents/Info.plist", | 98 "$_dsyms_output_dir/Contents/Info.plist", |
99 "$_dsyms_output_dir/Contents/Resources/DWARF/$_output_name", | 99 "$_dsyms_output_dir/Contents/Resources/DWARF/$_output_name", |
100 ] | 100 ] |
101 args += [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] | 101 args += [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] |
102 } | 102 } |
103 | 103 |
104 if (enable_stripping) { | 104 if (enable_stripping) { |
105 # Check whether //build/config/mac:strip_all has been removed from the | 105 args += [ "-Wcrl,strip,-x,-S" ] |
106 # configs variables (as this is how stripping is disabled for a single | 106 if (save_unstripped_output) { |
107 # target). | 107 outputs += [ "$root_out_dir/$_output_name.unstripped" ] |
108 _strip_all_in_config = false | 108 args += [ "-Wcrl,unstripped," + |
109 if (defined(invoker.configs)) { | 109 rebase_path("$root_out_dir/.", root_build_dir) ] |
110 foreach(_config, invoker.configs) { | |
111 if (_config == "//build/config/mac:strip_all") { | |
112 _strip_all_in_config = true | |
113 } | |
114 } | |
115 } | |
116 | |
117 if (_strip_all_in_config) { | |
118 args += [ "-Wcrl,strip,-x,-S" ] | |
119 if (save_unstripped_output) { | |
120 outputs += [ "$root_out_dir/$_output_name.unstripped" ] | |
121 args += [ "-Wcrl,unstripped," + | |
122 rebase_path("$root_out_dir/.", root_build_dir) ] | |
123 } | |
124 } | 110 } |
125 } | 111 } |
126 } | 112 } |
127 } | 113 } |
128 | 114 |
129 # Wrapper around create_bundle taking care of code signature settings. | 115 # Wrapper around create_bundle taking care of code signature settings. |
130 # | 116 # |
131 # Arguments | 117 # Arguments |
132 # | 118 # |
133 # product_type | 119 # product_type |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 "-rpath", | 1500 "-rpath", |
1515 "-Xlinker", | 1501 "-Xlinker", |
1516 "@loader_path/Frameworks", | 1502 "@loader_path/Frameworks", |
1517 ] | 1503 ] |
1518 } | 1504 } |
1519 } | 1505 } |
1520 | 1506 |
1521 set_defaults("ios_xctest_test") { | 1507 set_defaults("ios_xctest_test") { |
1522 configs = default_executable_configs | 1508 configs = default_executable_configs |
1523 } | 1509 } |
OLD | NEW |