Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: build/config/ios/rules.gni

Issue 2843493002: [ios] Partially decouple iOS and macOS GN configuration. (Closed)
Patch Set: Address comment. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/ios/BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/config/ios/BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698