# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//foundation/arkui/ace_engine/ace_config.gni") if (!is_arkui_x) { ohos_ndk_headers("ace_header") { dest_dir = "$ndk_headers_out_dir/ace/xcomponent/" sources = [ "native_interface_xcomponent.h", "native_xcomponent_key_event.h", ] } ohos_ndk_headers("arkui_header") { dest_dir = "$ndk_headers_out_dir/arkui/" sources = [ "drag_and_drop.h", "drawable_descriptor.h", "native_animate.h", "native_dialog.h", "native_gesture.h", "native_interface.h", "native_interface_accessibility.h", "native_interface_focus.h", "native_key_event.h", "native_node.h", "native_node_napi.h", "native_render.h", "native_type.h", "styled_string.h", "ui_input_event.h", ] } ohos_ndk_library("libace_ndk") { ndk_description_file = "./libace.ndk.json" min_compact_version = "7" output_name = "ace_ndk" system_capability = "SystemCapability.ArkUI.ArkUI.Full" system_capability_headers = [ "arkui/drag_and_drop.h", "arkui/drawable_descriptor.h", "arkui/native_animate.h", "arkui/native_dialog.h", "arkui/native_gesture.h", "arkui/native_interface.h", "arkui/native_interface_accessibility.h", "arkui/native_interface_focus.h", "arkui/native_key_event.h", "arkui/native_node.h", "arkui/native_node_napi.h", "arkui/native_render.h", "arkui/native_type.h", "arkui/styled_string.h", "arkui/ui_input_event.h", "ace/xcomponent/native_interface_xcomponent.h", "ace/xcomponent/native_xcomponent_key_event.h", ] } }