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

Unified Diff: base/BUILD.gn

Issue 1752873002: Use bundle_data and create_bundle to add support for iOS app bundle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-create-bundle
Patch Set: Rebase and address comments Created 4 years, 9 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 | build/config/ios/BuildInfo.plist » ('j') | build/config/ios/rules.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 0b41b0e4a8c93c766501839b81c576d5c8d3cdc9..bb9e0723ad3477304d01e206e04ed20eb9af9ce5 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1606,6 +1606,17 @@ if (is_win) {
}
}
+if (is_ios) {
+ bundle_data("base_unittests_bundle_data") {
+ sources = [
+ "test/data",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+ }
+}
+
test("base_unittests") {
sources = [
"allocator/tcmalloc_unittest.cc",
@@ -1866,6 +1877,10 @@ test("base_unittests") {
"//third_party/icu",
]
+ if (is_ios) {
+ deps += [ ":base_unittests_bundle_data" ]
+ }
+
# Some unittests depend on the ALLOCATOR_SHIM macro.
configs += [ "//base/allocator:allocator_shim_define" ]
« no previous file with comments | « no previous file | build/config/ios/BuildInfo.plist » ('j') | build/config/ios/rules.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698