• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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.
11
12import("//build/ohos.gni")
13import("//foundation/graphic/ui/ui.gni")
14import("//foundation/graphic/utils/utils.gni")
15ohos_static_library("libupdater_layout") {
16  defines = [
17    "__LITEOS_M__",
18    "ENABLE_BITMAP_FONT = 0",
19    "ENABLE_ICU = 0",
20    "ENABLE_JPEG_AND_PNG = 1",
21    "ENABLE_MULTI_FONT = 0",
22    "ENABLE_SHAPING = 0",
23    "ENABLE_STATIC_FONT = 0",
24    "ENABLE_VECTOR_FONT = 1",
25  ]
26
27  sources = graphic_ui_sources + graphic_utils_sources
28  sources -= [
29    "$GRAPHIC_UI_PATH/frameworks/components/ui_abstract_clock.cpp",
30    "$GRAPHIC_UI_PATH/frameworks/components/ui_abstract_scroll.cpp",
31    "$GRAPHIC_UI_PATH/frameworks/components/ui_abstract_scroll_bar.cpp",
32    "$GRAPHIC_UI_PATH/frameworks/components/ui_analog_clock.cpp",
33    "$GRAPHIC_UI_PATH/frameworks/components/ui_arc_label.cpp",
34    "$GRAPHIC_UI_PATH/frameworks/components/ui_arc_scroll_bar.cpp",
35    "$GRAPHIC_UI_PATH/frameworks/components/ui_axis.cpp",
36    "$GRAPHIC_UI_PATH/frameworks/components/ui_box_scroll_bar.cpp",
37    "$GRAPHIC_UI_PATH/frameworks/components/ui_canvas.cpp",
38    "$GRAPHIC_UI_PATH/frameworks/components/ui_chart.cpp",
39    "$GRAPHIC_UI_PATH/frameworks/components/ui_checkbox.cpp",
40    "$GRAPHIC_UI_PATH/frameworks/components/ui_circle_progress.cpp",
41    "$GRAPHIC_UI_PATH/frameworks/components/ui_dialog.cpp",
42    "$GRAPHIC_UI_PATH/frameworks/components/ui_digital_clock.cpp",
43    "$GRAPHIC_UI_PATH/frameworks/components/ui_list.cpp",
44    "$GRAPHIC_UI_PATH/frameworks/components/ui_picker.cpp",
45    "$GRAPHIC_UI_PATH/frameworks/components/ui_qrcode.cpp",
46    "$GRAPHIC_UI_PATH/frameworks/components/ui_radio_button.cpp",
47    "$GRAPHIC_UI_PATH/frameworks/components/ui_repeat_button.cpp",
48    "$GRAPHIC_UI_PATH/frameworks/components/ui_scroll_view.cpp",
49    "$GRAPHIC_UI_PATH/frameworks/components/ui_slider.cpp",
50    "$GRAPHIC_UI_PATH/frameworks/components/ui_surface_view.cpp",
51    "$GRAPHIC_UI_PATH/frameworks/components/ui_swipe_view.cpp",
52    "$GRAPHIC_UI_PATH/frameworks/components/ui_texture_mapper.cpp",
53    "$GRAPHIC_UI_PATH/frameworks/components/ui_time_picker.cpp",
54    "$GRAPHIC_UI_PATH/frameworks/components/ui_toggle_button.cpp",
55    "$GRAPHIC_UI_PATH/frameworks/dfx/event_injector.cpp",
56    "$GRAPHIC_UI_PATH/frameworks/dfx/key_event_injector.cpp",
57    "$GRAPHIC_UI_PATH/frameworks/dfx/performance_task.cpp",
58    "$GRAPHIC_UI_PATH/frameworks/dfx/point_event_injector.cpp",
59    "$GRAPHIC_UI_PATH/frameworks/dfx/ui_dump_dom_tree.cpp",
60    "$GRAPHIC_UI_PATH/frameworks/dock/ohos/ohos_input_device.cpp",
61    "$GRAPHIC_UI_PATH/frameworks/dock/vibrator_manager.cpp",
62    "$GRAPHIC_UI_PATH/frameworks/dock/virtual_input_device.cpp",
63  ]
64  include_dirs = graphic_ui_include_dirs + graphic_utils_include_dirs
65  include_dirs += [ "//foundation/graphic/ui/frameworks" ]
66  deps = [
67    "//third_party/bounds_checking_function:libsec_static",
68    "//third_party/freetype:freetype_static",
69    "//third_party/libjpeg-turbo:turbojpeg_static",
70    "//third_party/libpng:libpng",
71  ]
72}
73