xref: /aosp_15_r20/external/skia/third_party/icu_bidi/BUILD.gn (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import("../../gn/skia.gni")
7import("../third_party.gni")
8
9third_party("icu_bidi") {
10  public_include_dirs = [
11    "../externals/icu/source/common",
12    "../externals/icu/source/i18n",
13  ]
14  public_defines = [ "SK_USING_THIRD_PARTY_ICU" ]
15  defines = [
16    "U_USING_ICU_NAMESPACE=0",
17    "U_COMMON_IMPLEMENTATION",
18    "U_STATIC_IMPLEMENTATION",
19    "U_I18N_IMPLEMENTATION",
20
21    # See https://chromium.googlesource.com/chromium/deps/icu.git/+/d94ab131bc8fef3bc17f356a628d8e4cd44d65d9/source/common/unicode/uvernum.h#108
22    "U_DISABLE_VERSION_SUFFIX=1",
23    "U_HAVE_LIB_SUFFIX=1",
24    "U_LIB_SUFFIX_C_NAME=_skia",
25  ]
26  _src = "../externals/icu/source"
27  sources = [
28    "$_src/common/cmemory.cpp",
29    "$_src/common/cstring.cpp",
30    "$_src/common/ubidi.cpp",
31    "$_src/common/ubidi_props.cpp",
32    "$_src/common/ubidiln.cpp",
33    "$_src/common/ubidiwrt.cpp",
34    "$_src/common/uchar.cpp",
35    "$_src/common/udataswp.cpp",
36    "$_src/common/uinvchar.cpp",
37    "$_src/common/ustring.cpp",
38    "$_src/common/ustrtrns.cpp",
39    "$_src/common/utf_impl.cpp",
40    "$_src/common/utrie2.cpp",
41    "$_src/common/utypes.cpp",
42  ]
43}
44