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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 } | 990 } |
991 } | 991 } |
992 | 992 |
993 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain | 993 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain |
994 # that have not been ported over. | 994 # that have not been ported over. |
995 if (is_android) { | 995 if (is_android) { |
996 data_dir = "android" | 996 data_dir = "android" |
997 } else { | 997 } else { |
998 data_dir = "common" | 998 data_dir = "common" |
999 } | 999 } |
| 1000 # TODO(GYP): Support to use host byteorder to select the icu date file |
1000 if (current_cpu == "mips" || current_cpu == "mips64") { | 1001 if (current_cpu == "mips" || current_cpu == "mips64") { |
1001 data_bundle_prefix = "icudtb" | 1002 data_bundle_prefix = "icudtb" |
1002 } else { | 1003 } else { |
1003 data_bundle_prefix = "icudtl" | 1004 data_bundle_prefix = "icudtl" |
1004 } | 1005 } |
1005 data_bundle = "${data_bundle_prefix}.dat" | 1006 data_bundle = "${data_bundle_prefix}.dat" |
1006 | 1007 |
1007 # TODO(GYP) support use_system_icu. | 1008 # TODO(GYP) support use_system_icu. |
1008 if (icu_use_data_file) { | 1009 if (icu_use_data_file) { |
1009 if (is_ios) { | 1010 if (is_ios) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 } | 1048 } |
1048 } | 1049 } |
1049 | 1050 |
1050 source_set("icudata") { | 1051 source_set("icudata") { |
1051 sources = [ "$data_assembly" ] | 1052 sources = [ "$data_assembly" ] |
1052 defines = [ "U_HIDE_DATA_SYMBOL" ] | 1053 defines = [ "U_HIDE_DATA_SYMBOL" ] |
1053 deps = [ ":make_data_assembly", ] | 1054 deps = [ ":make_data_assembly", ] |
1054 } | 1055 } |
1055 } | 1056 } |
1056 } | 1057 } |
OLD | NEW |