| 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) { | 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 configs += [ ":icu_code" ] | 552 configs += [ ":icu_code" ] |
| 553 | 553 |
| 554 public_configs = [ ":icu_config" ] | 554 public_configs = [ ":icu_config" ] |
| 555 | 555 |
| 556 if (is_win || icu_use_data_file) { | 556 if (is_win || icu_use_data_file) { |
| 557 sources += [ "source/stubdata/stubdata.c" ] | 557 sources += [ "source/stubdata/stubdata.c" ] |
| 558 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] | 558 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] |
| 559 } | 559 } |
| 560 } | 560 } |
| 561 | 561 |
| 562 if (is_android) { | 562 if (is_android && enable_java_templates) { |
| 563 android_assets("icu_assets") { | 563 android_assets("icu_assets") { |
| 564 if (icu_use_data_file) { | 564 if (icu_use_data_file) { |
| 565 sources = [ "$root_out_dir/icudtl.dat" ] | 565 sources = [ "$root_out_dir/icudtl.dat" ] |
| 566 deps = [ ":icudata" ] | 566 deps = [ ":icudata" ] |
| 567 disable_compression = true | 567 disable_compression = true |
| 568 } | 568 } |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 | 571 |
| 572 # TODO(GYP) support use_system_icu. | 572 # TODO(GYP) support use_system_icu. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 sources = [ | 630 sources = [ |
| 631 "android/icudtl_dat.S", | 631 "android/icudtl_dat.S", |
| 632 ] | 632 ] |
| 633 } else { | 633 } else { |
| 634 assert(false, "No icu data for this platform") | 634 assert(false, "No icu data for this platform") |
| 635 } | 635 } |
| 636 defines = [ "U_HIDE_DATA_SYMBOL" ] | 636 defines = [ "U_HIDE_DATA_SYMBOL" ] |
| 637 } | 637 } |
| 638 } | 638 } |
| 639 } | 639 } |
| OLD | NEW |