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

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: multi_arch_toolchains -> additional_toolchains & mac build fix. 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
« chrome/BUILD.gn ('K') | « chrome/BUILD.gn ('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 19ff7514cf2e3ed18404b4541d512bd9370e9519..3c86b8650e2c6bae6ad491c6471acb4b3b6f3772 100644
--- a/components/cronet/ios/BUILD.gn
+++ b/components/cronet/ios/BUILD.gn
@@ -129,42 +129,44 @@ 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",
- "//components/cronet/ios/Cronet.h",
- "//components/cronet/ios/cronet_c_for_grpc.h",
- ]
- 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",
+ "//components/cronet/ios/Cronet.h",
+ "//components/cronet/ios/cronet_c_for_grpc.h",
+ ]
+ 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",
+ ]
+ }
}
« chrome/BUILD.gn ('K') | « chrome/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698