1# Copyright (c) 2025 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") 15 16ohos_shared_library("webview_common") { 17 if (target_cpu == "arm64") { 18 branch_protector_ret = "pac_ret" 19 } 20 21 include_dirs = [ 22 "../../../ohos_adapter/ohos_resource_adapter/include", 23 "../../../ohos_adapter/system_properties_adapter/include", 24 ] 25 26 sources = [ 27 "web_history_list.cpp", 28 "web_history_list.h", 29 "web_message_port.cpp", 30 "web_message_port.h", 31 "web_errors.cpp", 32 "transfer_referenced_count.h", 33 "napi_native_mediaplayer_handler_impl.cpp", 34 "napi_native_mediaplayer_handler_impl.h", 35 ] 36 37 deps = [ 38 "../../../ohos_adapter:nweb_ohos_adapter", 39 "../../../ohos_nweb:libnweb", 40 "../../native:ohweb", 41 "../../../ohos_glue:ohos_base_glue_source", 42 ] 43 use_exceptions = true 44 external_deps = [ 45 "ability_base:extractortool", 46 "ability_runtime:app_context", 47 "bundle_framework:appexecfwk_base", 48 "bundle_framework:appexecfwk_core", 49 "c_utils:utils", 50 "common_event_service:cesfwk_innerkits", 51 "hilog:libhilog", 52 "image_framework:image", 53 "image_framework:image_native", 54 "init:libbegetutil", 55 "ipc:ipc_core", 56 "protobuf:protobuf_lite", 57 "samgr:samgr_proxy", 58 "window_manager:libwm", 59 ] 60 61 part_name = "webview" 62 subsystem_name = "web" 63} 64