1a3e0fd82Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2a3e0fd82Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3a3e0fd82Sopenharmony_ci# you may not use this file except in compliance with the License.
4a3e0fd82Sopenharmony_ci# You may obtain a copy of the License at
5a3e0fd82Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
6a3e0fd82Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
7a3e0fd82Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
8a3e0fd82Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9a3e0fd82Sopenharmony_ci# See the License for the specific language governing permissions and
10a3e0fd82Sopenharmony_ci# limitations under the License.
11a3e0fd82Sopenharmony_ci
12a3e0fd82Sopenharmony_ciimport("//build/lite/config/subsystem/graphic/config.gni")
13a3e0fd82Sopenharmony_ciimport("//build/ohos.gni")
14a3e0fd82Sopenharmony_ciimport("//foundation/arkui/ui_lite/ui.gni")
15a3e0fd82Sopenharmony_ciimport("//foundation/graphic/graphic_utils_lite/utils.gni")
16a3e0fd82Sopenharmony_ci
17a3e0fd82Sopenharmony_ciconfig("graphic_public_config_ide") {
18a3e0fd82Sopenharmony_ci  include_dirs = arkui_ui_lite_include_dirs
19a3e0fd82Sopenharmony_ci  include_dirs += [
20a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/frameworks",
21a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/frameworks/dock",
22a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/innerkits/common",
23a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/innerkits/dock",
24a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/innerkits/font",
25a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/animator",
26a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/common",
27a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/components",
28a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/dfx",
29a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/events",
30a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/font",
31a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/layout",
32a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/themes",
33a3e0fd82Sopenharmony_ci    "$ARKUI_UI_LITE_PATH/interfaces/kits/window",
34a3e0fd82Sopenharmony_ci  ]
35a3e0fd82Sopenharmony_ci  defines = [
36a3e0fd82Sopenharmony_ci    "ENABLE_VECTOR_FONT=1",
37a3e0fd82Sopenharmony_ci    "ENABLE_BITMAP_FONT=1",
38a3e0fd82Sopenharmony_ci    "ENABLE_STATIC_FONT=1",
39a3e0fd82Sopenharmony_ci    "ENABLE_SHAPING=0",
40a3e0fd82Sopenharmony_ci    "ENABLE_ICU=1",
41a3e0fd82Sopenharmony_ci    "ENABLE_MULTI_FONT=1",
42a3e0fd82Sopenharmony_ci  ]
43a3e0fd82Sopenharmony_ci}
44a3e0fd82Sopenharmony_ci
45a3e0fd82Sopenharmony_ciconfig("graphic_config_ide") {
46a3e0fd82Sopenharmony_ci  cflags = [
47a3e0fd82Sopenharmony_ci    "-Wno-deprecated-declarations",
48a3e0fd82Sopenharmony_ci    "-Wno-sign-compare",
49a3e0fd82Sopenharmony_ci    "-Wno-missing-braces",
50a3e0fd82Sopenharmony_ci    "-Wno-mismatched-tags",
51a3e0fd82Sopenharmony_ci    "-Wno-unknown-pragmas",
52a3e0fd82Sopenharmony_ci  ]
53a3e0fd82Sopenharmony_ci  cflags_cc = cflags
54a3e0fd82Sopenharmony_ci}
55a3e0fd82Sopenharmony_ci
56a3e0fd82Sopenharmony_ciohos_static_library("ui_ide") {
57a3e0fd82Sopenharmony_ci  sources = arkui_ui_lite_sources
58a3e0fd82Sopenharmony_ci  include_dirs = [ "//foundation/graphic/surface_lite/interfaces/kits" ]
59a3e0fd82Sopenharmony_ci  deps = [
60a3e0fd82Sopenharmony_ci    "//third_party/bounds_checking_function:libsec_static",
61a3e0fd82Sopenharmony_ci    "//third_party/cJSON:cjson_static",
62a3e0fd82Sopenharmony_ci    "//third_party/freetype:freetype_static",
63a3e0fd82Sopenharmony_ci    "//third_party/harfbuzz:harfbuzz_static",
64a3e0fd82Sopenharmony_ci    "//third_party/icu/icu4c/source/common:icu_font",
65a3e0fd82Sopenharmony_ci    "//third_party/libjpeg-turbo:turbojpeg_static",
66a3e0fd82Sopenharmony_ci    "//third_party/libpng:libpng_static",
67a3e0fd82Sopenharmony_ci    "//third_party/qrcodegen:qrcodegen_static",
68a3e0fd82Sopenharmony_ci  ]
69a3e0fd82Sopenharmony_ci  public_deps = [ ":graphic_utils_static_ide" ]
70a3e0fd82Sopenharmony_ci  public_configs = [ ":graphic_public_config_ide" ]
71a3e0fd82Sopenharmony_ci  configs = [ ":graphic_config_ide" ]
72a3e0fd82Sopenharmony_ci}
73a3e0fd82Sopenharmony_ci
74a3e0fd82Sopenharmony_ci# copy liteWearable config dir
75a3e0fd82Sopenharmony_ciohos_copy("copy_previewer_fonts_lite_full") {
76a3e0fd82Sopenharmony_ci  sources = [
77a3e0fd82Sopenharmony_ci    "../../tools/qt/simulator/font/SourceHanSansSC-Regular.otf",
78a3e0fd82Sopenharmony_ci    "../../tools/qt/simulator/font/line_cj.brk",
79a3e0fd82Sopenharmony_ci  ]
80a3e0fd82Sopenharmony_ci  outputs = [ target_out_dir + "/previewer/liteWearable/config/" +
81a3e0fd82Sopenharmony_ci              "/{{source_file_part}}" ]
82a3e0fd82Sopenharmony_ci  module_source_dir = target_out_dir + "/previewer/liteWearable/config/"
83a3e0fd82Sopenharmony_ci  module_install_name = ""
84a3e0fd82Sopenharmony_ci}
85a3e0fd82Sopenharmony_ci
86a3e0fd82Sopenharmony_ciconfig("graphic_utils_public_config_ide") {
87a3e0fd82Sopenharmony_ci  include_dirs = graphic_utils_include_dirs
88a3e0fd82Sopenharmony_ci}
89a3e0fd82Sopenharmony_ci
90a3e0fd82Sopenharmony_ciohos_static_library("graphic_utils_static_ide") {
91a3e0fd82Sopenharmony_ci  sources = graphic_utils_sources
92a3e0fd82Sopenharmony_ci  include_dirs = [ "$GRAPHIC_GRAPHIC_UTILS_LITE_PATH/frameworks" ]
93a3e0fd82Sopenharmony_ci  public_configs = [ ":graphic_utils_public_config_ide" ]
94a3e0fd82Sopenharmony_ci  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
95a3e0fd82Sopenharmony_ci  configs = [ ":graphic_config_ide" ]
96a3e0fd82Sopenharmony_ci}
97