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

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: Created 4 years, 10 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/ios_gen_plist.py » ('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 9d1c838e980c29d2af0380682195448c6351b9a9..6a8a4378bb068a026b9ceebf3b117e8e16f3f107 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1540,6 +1540,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",
@@ -1799,6 +1810,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/ios_gen_plist.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698