OLD | NEW |
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) { |
| 8 import("//build/config/android/rules.gni") |
| 9 } |
| 10 |
7 # Meta target that includes both icuuc and icui18n. Most targets want both. | 11 # Meta target that includes both icuuc and icui18n. Most targets want both. |
8 # You can depend on the individually if you need to. | 12 # You can depend on the individually if you need to. |
9 group("icu") { | 13 group("icu") { |
10 public_deps = [ | 14 public_deps = [ |
11 ":icui18n", | 15 ":icui18n", |
12 ":icuuc", | 16 ":icuuc", |
13 ] | 17 ] |
14 } | 18 } |
15 | 19 |
16 # Shared config used by ICU and all dependents. | 20 # Shared config used by ICU and all dependents. |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 configs += [ ":icu_code" ] | 518 configs += [ ":icu_code" ] |
515 | 519 |
516 public_configs = [ ":icu_config" ] | 520 public_configs = [ ":icu_config" ] |
517 | 521 |
518 if (is_win || icu_use_data_file) { | 522 if (is_win || icu_use_data_file) { |
519 sources += [ "source/stubdata/stubdata.c" ] | 523 sources += [ "source/stubdata/stubdata.c" ] |
520 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] | 524 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] |
521 } | 525 } |
522 } | 526 } |
523 | 527 |
| 528 if (is_android) { |
| 529 android_assets("icu_assets") { |
| 530 if (icu_use_data_file) { |
| 531 sources = [ "$root_out_dir/icudtl.dat" ] |
| 532 deps = [ ":icudata" ] |
| 533 disable_compression = true |
| 534 } |
| 535 } |
| 536 } |
| 537 |
524 # TODO(GYP) support use_system_icu. | 538 # TODO(GYP) support use_system_icu. |
525 if (icu_use_data_file) { | 539 if (icu_use_data_file) { |
526 if (is_ios) { | 540 if (is_ios) { |
527 group("icudata") { | 541 group("icudata") { |
528 # TODO(GYP): Provide an empty group so that this target does not | 542 # TODO(GYP): Provide an empty group so that this target does not |
529 # unconditionally fail. The dat file needs to be bundled separately. In | 543 # unconditionally fail. The dat file needs to be bundled separately. In |
530 # the longer term, need to figure out how to use system ICU | 544 # the longer term, need to figure out how to use system ICU |
531 } | 545 } |
532 } else { | 546 } else { |
533 copy("icudata") { | 547 copy("icudata") { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 sources = [ | 597 sources = [ |
584 "android/icudtl_dat.S", | 598 "android/icudtl_dat.S", |
585 ] | 599 ] |
586 } else { | 600 } else { |
587 assert(false, "No icu data for this platform") | 601 assert(false, "No icu data for this platform") |
588 } | 602 } |
589 defines = [ "U_HIDE_DATA_SYMBOL" ] | 603 defines = [ "U_HIDE_DATA_SYMBOL" ] |
590 } | 604 } |
591 } | 605 } |
592 } | 606 } |
OLD | NEW |