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

Unified Diff: net/BUILD.gn

Issue 2174853002: [Mac/GN] Do not include unnecessary bundle data from //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index ef793f70c23a3fd665e1ea46f8b87ca956f1cd60..481c64b2f62c78130561d9e7db4265e98c0b8544 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -496,14 +496,16 @@ if (!is_ios) {
}
}
-bundle_data("test_support_bundle_data") {
- visibility = [ ":test_support" ]
- testonly = true
- sources = gypi_values.net_test_support_data_sources
- outputs = [
- "{{bundle_resources_dir}}/" +
- "{{source_root_relative_dir}}/{{source_file_part}}",
- ]
+if (is_ios) {
sdefresne 2016/07/22 15:36:48 We generally define the bundle_data target on all
Robert Sesek 2016/07/22 17:05:10 Done.
+ bundle_data("test_support_bundle_data") {
+ visibility = [ ":test_support" ]
+ testonly = true
+ sources = gypi_values.net_test_support_data_sources
+ outputs = [
+ "{{bundle_resources_dir}}/" +
+ "{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+ }
}
static_library("test_support") {
@@ -629,9 +631,11 @@ static_library("test_support") {
"//url",
]
- deps = [
- ":test_support_bundle_data",
- ]
+ deps = []
+
+ if (is_ios) {
+ deps += [ ":test_support_bundle_data" ]
+ }
data = [
"data/",
@@ -1315,13 +1319,15 @@ if (!is_ios) {
}
}
-bundle_data("net_unittests_bundle_data") {
- testonly = true
- sources = gypi_values.net_unittests_data_sources
- outputs = [
- "{{bundle_resources_dir}}/" +
- "{{source_root_relative_dir}}/{{source_file_part}}",
- ]
+if (is_ios) {
sdefresne 2016/07/22 15:36:48 ditto
Robert Sesek 2016/07/22 17:05:10 Done.
+ bundle_data("net_unittests_bundle_data") {
+ testonly = true
+ sources = gypi_values.net_unittests_data_sources
+ outputs = [
+ "{{bundle_resources_dir}}/" +
+ "{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+ }
}
test("net_unittests") {
@@ -1339,7 +1345,6 @@ test("net_unittests") {
":balsa",
":extras",
":net",
- ":net_unittests_bundle_data",
":simple_quic_tools",
":stale_while_revalidate_experiment_domains",
":test_support",
@@ -1546,6 +1551,8 @@ test("net_unittests") {
"socket/unix_domain_client_socket_posix_unittest.cc",
"socket/unix_domain_server_socket_posix_unittest.cc",
]
+
+ deps += [ ":net_unittests_bundle_data" ]
sdefresne 2016/07/22 15:36:48 nit: you could use bundle_deps instead to increase
Robert Sesek 2016/07/22 17:05:10 Good call. Done.
}
# Unit tests that aren't supported by the current ICU alternatives on Android.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698