Skip to content

Commit baaae21

Browse files
authored
Updates required for latest ICU BUILD.gn. (flutter#97)
1 parent 4c89f31 commit baaae21

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

build/config/android/config.gni

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ if (is_android) {
4545

4646
# Set to true to enable the Errorprone compiler
4747
use_errorprone_java_compiler = false
48+
49+
# Unused. Required for GN files maintained in other buildroots.
50+
enable_java_templates = false
4851
}
4952

5053
# Host stuff -----------------------------------------------------------------

build/config/host_byteorder.gni

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) 2017 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
# This header file defines the "host_byteorder" variable.
6+
# Not that this is currently used only for building v8.
7+
# The chromium code generally assumes little-endianness.
8+
declare_args() {
9+
host_byteorder = "undefined"
10+
}
11+
12+
# Detect host byteorder
13+
# ppc64 can be either BE or LE
14+
if (host_cpu == "ppc64") {
15+
if (current_os == "aix") {
16+
host_byteorder = "big"
17+
} else {
18+
# Only use the script when absolutely necessary
19+
host_byteorder =
20+
exec_script("//build/config/get_host_byteorder.py", [], "trim string")
21+
}
22+
} else if (host_cpu == "ppc" || host_cpu == "s390" || host_cpu == "s390x" ||
23+
host_cpu == "mips" || host_cpu == "mips64") {
24+
host_byteorder = "big"
25+
} else {
26+
host_byteorder = "little"
27+
}

0 commit comments

Comments
 (0)