1# Copyright (c) 2024 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# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//foundation/arkui/ace_engine/ace_config.gni") 16 17config("ace_kit_config") { 18 include_dirs = [ "$ace_root/interfaces/inner_api/ace_kit/include" ] 19} 20 21ohos_source_set("ace_kit") { 22 subsystem_name = ace_engine_subsystem 23 part_name = ace_engine_part 24 25 public_configs = [ ":ace_kit_config" ] 26 27 configs = [ "$ace_root:ace_config" ] 28 29 sources = [ 30 "src/agingadapation/aging_adapation_dialog_util.cpp", 31 "src/animation/animation_utils.cpp", 32 "src/napi/napi_parser.cpp", 33 "src/properties/property.cpp", 34 "src/resource/resource_parser.cpp", 35 "src/utils/measure_utils.cpp", 36 "src/view/components/column.cpp", 37 "src/view/components/menu_view.cpp", 38 "src/view/components/text.cpp", 39 "src/view/draw/content_modifier.cpp", 40 "src/view/draw/modifier_adapter.cpp", 41 "src/view/extend_pattern.cpp", 42 "src/view/frame_node_impl.cpp", 43 "src/view/layout/box_layout_algorithm.cpp", 44 "src/view/overlay/overlay_manager_impl.cpp", 45 "src/view/theme/theme_factory.cpp", 46 "src/view/theme/theme_style_impl.cpp", 47 "src/view/ui_context_impl.cpp", 48 "src/view/view.cpp", 49 "src/view_factory/abstract_view_factory.cpp", 50 "src/view_stack/view_stack_processor.cpp", 51 ] 52 53 include_dirs = [ 54 "$ace_root", 55 "$ace_root/frameworks", 56 "$ace_root/interfaces/inner_api/ace_kit/src", 57 ] 58 59 deps = [ "$ace_root/frameworks/core/components/theme:build_theme_code" ] 60 external_deps = [ "hilog:libhilog" ] 61 62 if (is_arkui_x) { 63 include_dirs += [ 64 "//foundation/arkui/napi", 65 "//third_party/node/src", 66 ] 67 deps += [ "${ace_graphic}/rosen/modules/render_service_client:librender_service_client_static" ] 68 } else { 69 external_deps += [ 70 "graphic_2d:librender_service_client", 71 "napi:ace_napi", 72 ] 73 } 74} 75