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

Side by Side Diff: BUILD.gn

Issue 1755473004: Use bundle_data and create_bundle to add support for iOS app bundle. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Rebase 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 sources = [ "$root_out_dir/icudtl.dat" ] 550 sources = [ "$root_out_dir/icudtl.dat" ]
551 deps = [ ":icudata" ] 551 deps = [ ":icudata" ]
552 disable_compression = true 552 disable_compression = true
553 } 553 }
554 } 554 }
555 } 555 }
556 556
557 # TODO(GYP) support use_system_icu. 557 # TODO(GYP) support use_system_icu.
558 if (icu_use_data_file) { 558 if (icu_use_data_file) {
559 if (is_ios) { 559 if (is_ios) {
560 group("icudata") { 560 bundle_data("icudata") {
561 # TODO(GYP): Provide an empty group so that this target does not 561 sources = [ "source/data/in/icudtl.dat" ]
562 # unconditionally fail. The dat file needs to be bundled separately. In 562 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
563 # the longer term, need to figure out how to use system ICU
564 } 563 }
565 } else { 564 } else {
566 copy("icudata") { 565 copy("icudata") {
567 if (is_android) { 566 if (is_android) {
568 sources = [ 567 sources = [
569 "android/icudtl.dat", 568 "android/icudtl.dat",
570 ] 569 ]
571 } else { 570 } else {
572 sources = [ 571 sources = [
573 "source/data/in/icudtl.dat", 572 "source/data/in/icudtl.dat",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 sources = [ 615 sources = [
617 "android/icudtl_dat.S", 616 "android/icudtl_dat.S",
618 ] 617 ]
619 } else { 618 } else {
620 assert(false, "No icu data for this platform") 619 assert(false, "No icu data for this platform")
621 } 620 }
622 defines = [ "U_HIDE_DATA_SYMBOL" ] 621 defines = [ "U_HIDE_DATA_SYMBOL" ]
623 } 622 }
624 } 623 }
625 } 624 }
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