• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#     http://www.apache.org/licenses/LICENSE-2.0
6# Unless required by applicable law or agreed to in writing, software
7# distributed under the License is distributed on an "AS IS" BASIS,
8# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9# See the License for the specific language governing permissions and
10# limitations under the License.
11if (defined(ohos_lite)) {
12  import("//build/lite/config/component/lite_component.gni")
13} else {
14  import("//build/ohos.gni")
15}
16
17config("icu_config") {
18  include_dirs = [ "//third_party/icu/icu4c/source/common" ]
19}
20
21icu_source = [
22  "//third_party/icu/icu4c/source/common/cmemory.cpp",
23  "//third_party/icu/icu4c/source/common/cstring.cpp",
24  "//third_party/icu/icu4c/source/common/ubidi.cpp",
25  "//third_party/icu/icu4c/source/common/ubidiln.cpp",
26  "//third_party/icu/icu4c/source/common/ubidiwrt.cpp",
27  "//third_party/icu/icu4c/source/common/ubidi_props.cpp",
28  "//third_party/icu/icu4c/source/common/uchar.cpp",
29  "//third_party/icu/icu4c/source/common/udataswp.cpp",
30  "//third_party/icu/icu4c/source/common/uinvchar.cpp",
31  "//third_party/icu/icu4c/source/common/ustring.cpp",
32  "//third_party/icu/icu4c/source/common/utf_impl.cpp",
33  "//third_party/icu/icu4c/source/common/utrie2.cpp",
34]
35
36if (defined(ohos_lite)) {
37  lite_library("icu_font") {
38    target_type = "shared_library"
39    sources = icu_source
40    public_configs = [ ":icu_config" ]
41  }
42} else {
43  ohos_static_library("icu_font") {
44    sources = icu_source
45    include_dirs = [ "src\base" ]
46    public_configs = [ ":icu_config" ]
47  }
48}