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

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

Issue 1879003002: [iOS/GN] Convert //ios/third_party/earl_grey to build with GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-ochamcrest
Patch Set: Created 4 years, 8 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
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/toolchain/toolchain.gni") 5 import("//build/toolchain/toolchain.gni")
6 6
7 # This is used as the base template for both iOS and Mac frameworks.. 7 # This is used as the base template for both iOS and Mac frameworks..
8 # 8 #
9 # Arguments 9 # Arguments
10 # 10 #
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 "public_deps", 78 "public_deps",
79 "testonly", 79 "testonly",
80 ]) 80 ])
81 81
82 if (defined(_framework_version)) { 82 if (defined(_framework_version)) {
83 visibility = [ ":$_target_name" ] 83 visibility = [ ":$_target_name" ]
84 } else { 84 } else {
85 forward_variables_from(invoker, [ "visibility" ]) 85 forward_variables_from(invoker, [ "visibility" ])
86 } 86 }
87 87
88 if (!defined(deps)) { 88 if (!defined(public_deps)) {
89 deps = [] 89 public_deps = []
90 } 90 }
91 deps += [ ":$_shared_library_bundle_data" ] 91 public_deps += [ ":$_shared_library_bundle_data" ]
92 92
93 bundle_root_dir = _framework_root_dir 93 bundle_root_dir = _framework_root_dir
94 bundle_resources_dir = "$bundle_root_dir/Resources" 94 bundle_resources_dir = "$bundle_root_dir/Resources"
95 bundle_executable_dir = "$bundle_root_dir" 95 bundle_executable_dir = "$bundle_root_dir"
96 } 96 }
97 97
98 if (defined(_framework_version)) { 98 if (defined(_framework_version)) {
99 action(_target_name) { 99 action(_target_name) {
100 forward_variables_from(invoker, 100 forward_variables_from(invoker,
101 [ 101 [
102 "visibility", 102 "visibility",
103 "testonly", 103 "testonly",
104 ]) 104 ])
105 script = "$root_out_dir/gyp-mac-tool" 105 script = "$root_out_dir/gyp-mac-tool"
106 outputs = [ 106 outputs = [
107 "$root_out_dir/$_framework_name/Versions/Current", 107 "$root_out_dir/$_framework_name/Versions/Current",
108 ] 108 ]
109 args = [ 109 args = [
110 "package-framework", 110 "package-framework",
111 "$_framework_name", 111 "$_framework_name",
112 "$_framework_version", 112 "$_framework_version",
113 ] 113 ]
114 deps = [ 114 public_deps = [
115 ":$_framework_target", 115 ":$_framework_target",
116 ] 116 ]
117 } 117 }
118 } 118 }
119 } 119 }
120 120
121 # Template to package a shared library into a Mac framework bundle. 121 # Template to package a shared library into a Mac framework bundle.
122 # 122 #
123 # Arguments 123 # Arguments
124 # 124 #
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 framework_bundle(target_name) { 162 framework_bundle(target_name) {
163 forward_variables_from(invoker, "*", [ "info_plist" ]) 163 forward_variables_from(invoker, "*", [ "info_plist" ])
164 164
165 if (!defined(deps)) { 165 if (!defined(deps)) {
166 deps = [] 166 deps = []
167 } 167 }
168 deps += [ ":$_info_plist_bundle_data" ] 168 deps += [ ":$_info_plist_bundle_data" ]
169 } 169 }
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698