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

Side by Side Diff: BUILD.gn

Issue 1785033005: Use bundle_data and create_bundle to add support for iOS app bundle. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@m49
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//third_party/icu/config.gni") 5 import("//third_party/icu/config.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 sources = [ "$root_out_dir/icudtl.dat" ] 534 sources = [ "$root_out_dir/icudtl.dat" ]
535 deps = [ ":icudata" ] 535 deps = [ ":icudata" ]
536 disable_compression = true 536 disable_compression = true
537 } 537 }
538 } 538 }
539 } 539 }
540 540
541 # TODO(GYP) support use_system_icu. 541 # TODO(GYP) support use_system_icu.
542 if (icu_use_data_file) { 542 if (icu_use_data_file) {
543 if (is_ios) { 543 if (is_ios) {
544 group("icudata") { 544 bundle_data("icudata") {
545 # TODO(GYP): Provide an empty group so that this target does not 545 sources = [ "source/data/in/icudtl.dat" ]
546 # unconditionally fail. The dat file needs to be bundled separately. In 546 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
547 # the longer term, need to figure out how to use system ICU
548 } 547 }
549 } else { 548 } else {
550 copy("icudata") { 549 copy("icudata") {
551 if (is_android) { 550 if (is_android) {
552 sources = [ 551 sources = [
553 "android/icudtl.dat", 552 "android/icudtl.dat",
554 ] 553 ]
555 } else { 554 } else {
556 sources = [ 555 sources = [
557 "source/data/in/icudtl.dat", 556 "source/data/in/icudtl.dat",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 sources = [ 599 sources = [
601 "android/icudtl_dat.S", 600 "android/icudtl_dat.S",
602 ] 601 ]
603 } else { 602 } else {
604 assert(false, "No icu data for this platform") 603 assert(false, "No icu data for this platform")
605 } 604 }
606 defines = [ "U_HIDE_DATA_SYMBOL" ] 605 defines = [ "U_HIDE_DATA_SYMBOL" ]
607 } 606 }
608 } 607 }
609 } 608 }
OLDNEW
« 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