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

Unified Diff: components/cronet/ios/BUILD.gn

Issue 2135323002: Add support for fat build to "ios_framework_bundle" target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fat-build-enable
Patch Set: Rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/mac/base_rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/BUILD.gn
diff --git a/components/cronet/ios/BUILD.gn b/components/cronet/ios/BUILD.gn
index 7581b2c3a0f4d2090ad7aeeda87f3c4d7ef334e8..0d5c9e4b577790a1afed40269a7106a307c87c16 100644
--- a/components/cronet/ios/BUILD.gn
+++ b/components/cronet/ios/BUILD.gn
@@ -162,40 +162,42 @@ test("cronet_unittests") {
]
}
-_package_dir = "$root_out_dir/cronet"
-
-action("generate_license") {
- _license_path = "$_package_dir/LICENSE"
-
- script = "//components/cronet/tools/cronet_licenses.py"
- outputs = [
- _license_path,
- ]
- args = [
- "license",
- rebase_path(_license_path, root_build_dir),
- "--gn",
- ]
-}
-
-copy("cronet_package_copy") {
- sources = [
- "$root_out_dir/Cronet.framework",
- "//AUTHORS",
- "//chrome/VERSION",
- ]
- outputs = [
- "$_package_dir/{{source_file_part}}",
- ]
+if (additional_toolchains == [] || current_toolchain == default_toolchain) {
+ _package_dir = "$root_out_dir/cronet"
+
+ action("generate_license") {
+ _license_path = "$_package_dir/LICENSE"
+
+ script = "//components/cronet/tools/cronet_licenses.py"
+ outputs = [
+ _license_path,
+ ]
+ args = [
+ "license",
+ rebase_path(_license_path, root_build_dir),
+ "--gn",
+ ]
+ }
- deps = [
- ":cronet_framework",
- ]
-}
+ copy("cronet_package_copy") {
+ sources = [
+ "$root_out_dir/Cronet.framework",
+ "//AUTHORS",
+ "//chrome/VERSION",
+ ]
+ outputs = [
+ "$_package_dir/{{source_file_part}}",
+ ]
+
+ deps = [
+ ":cronet_framework",
+ ]
+ }
-group("cronet_package") {
- deps = [
- ":cronet_package_copy",
- ":generate_license",
- ]
+ group("cronet_package") {
+ deps = [
+ ":cronet_package_copy",
+ ":generate_license",
+ ]
+ }
}
« no previous file with comments | « build/config/mac/base_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698