# 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") ohos_shared_library("plugincomponent") { include_dirs = [ "$ace_root", "$ace_root/frameworks", "$ace_root/interfaces/inner_api/ui_service_manager/include", "$root_out_dir/arkui/framework", ] sources = [ "js_plugin_callback.cpp", "js_plugin_callback_mgr.cpp", "js_plugin_component.cpp", "js_plugin_util.cpp", "js_plugin_want.cpp", ] defines = [ "OHOS_PLATFORM", "USE_HILOG", ] sources += [ "$ace_root/adapter/ohos/osal/log_wrapper.cpp" ] deps = [ "$ace_root/build:libace_compatible" ] external_deps = [ "ability_base:base", "ability_base:want", "ability_runtime:abilitykit_native", "access_token:libtokenid_sdk", "bundle_framework:appexecfwk_core", "c_utils:utils", "hilog:libhilog", "ipc:ipc_core", "napi:ace_napi", ] relative_install_dir = "module" subsystem_name = ace_engine_subsystem part_name = ace_engine_part }