| 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("//build/config/host_byteorder.gni") |
| 5 import("//third_party/icu/config.gni") | 6 import("//third_party/icu/config.gni") |
| 6 | 7 |
| 7 if (is_android) { | 8 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 9 } | 10 } |
| 10 | 11 |
| 11 if (is_mac) { | 12 if (is_mac) { |
| 12 import("//build/config/sanitizers/sanitizers.gni") | 13 import("//build/config/sanitizers/sanitizers.gni") |
| 13 } | 14 } |
| 14 | 15 |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 | 978 |
| 978 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain | 979 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain |
| 979 # that have not been ported over. | 980 # that have not been ported over. |
| 980 if (is_android) { | 981 if (is_android) { |
| 981 data_dir = "android" | 982 data_dir = "android" |
| 982 } else if (is_ios) { | 983 } else if (is_ios) { |
| 983 data_dir = "ios" | 984 data_dir = "ios" |
| 984 } else { | 985 } else { |
| 985 data_dir = "common" | 986 data_dir = "common" |
| 986 } | 987 } |
| 987 # TODO(GYP): Support to use host byteorder to select the icu date file | 988 |
| 988 if (current_cpu == "mips" || current_cpu == "mips64") { | 989 if (current_cpu == "mips" || current_cpu == "mips64" || |
| 990 host_byteorder == "big") { |
| 989 data_bundle_prefix = "icudtb" | 991 data_bundle_prefix = "icudtb" |
| 990 } else { | 992 } else { |
| 991 data_bundle_prefix = "icudtl" | 993 data_bundle_prefix = "icudtl" |
| 992 } | 994 } |
| 993 data_bundle = "${data_bundle_prefix}.dat" | 995 data_bundle = "${data_bundle_prefix}.dat" |
| 994 | 996 |
| 995 # TODO(GYP) support use_system_icu. | 997 # TODO(GYP) support use_system_icu. |
| 996 if (icu_use_data_file) { | 998 if (icu_use_data_file) { |
| 997 if (is_ios) { | 999 if (is_ios) { |
| 998 bundle_data("icudata") { | 1000 bundle_data("icudata") { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 } | 1037 } |
| 1036 } | 1038 } |
| 1037 | 1039 |
| 1038 source_set("icudata") { | 1040 source_set("icudata") { |
| 1039 sources = [ "$data_assembly" ] | 1041 sources = [ "$data_assembly" ] |
| 1040 defines = [ "U_HIDE_DATA_SYMBOL" ] | 1042 defines = [ "U_HIDE_DATA_SYMBOL" ] |
| 1041 deps = [ ":make_data_assembly", ] | 1043 deps = [ ":make_data_assembly", ] |
| 1042 } | 1044 } |
| 1043 } | 1045 } |
| 1044 } | 1046 } |
| OLD | NEW |