1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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/CastEngine/castengine_wifi_display/config.gni") 16 17config("sharing_service_config") { 18 include_dirs = [ 19 "$SHARING_ROOT_DIR/services", 20 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd", 21 "$SHARING_ROOT_DIR/services/interaction/ipc_codec", 22 "$SHARING_ROOT_DIR/services/interaction/device_kit", 23 "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include", 24 "$SHARING_ROOT_DIR/services/extend/magic_enum", 25 ] 26 27 cflags = [ "-Wno-c++20-extensions" ] 28} 29 30ohos_shared_library("sharingwfd_napi") { 31 install_enable = true 32 33 sanitize = { 34 cfi = true 35 cfi_cross_dso = true 36 debug = false 37 } 38 39 include_dirs = [ 40 "$SHARING_ROOT_DIR", 41 "$SHARING_ROOT_DIR/services/utils", 42 "$SHARING_ROOT_DIR/interfaces/kits/js/wfd/include", 43 "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include", 44 "$SHARING_ROOT_DIR/frameworks/innerkitsimpl/native/wfd", 45 ] 46 47 sources = [ 48 "$SHARING_ROOT_DIR/frameworks/kitsimpl/js/wfd/native_module_ohos_wfd.cpp", 49 "$SHARING_ROOT_DIR/frameworks/kitsimpl/js/wfd/wfd_napi_sink.cpp", 50 ] 51 52 public_configs = [ 53 ":sharing_service_config", 54 "$SHARING_ROOT_DIR/tests:coverage_flags", 55 ] 56 57 deps = [ 58 "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client", 59 "$SHARING_ROOT_DIR/services/interaction/device_kit:dmkit", 60 "$SHARING_ROOT_DIR/services/utils:sharing_utils", 61 ] 62 63 external_deps = [ 64 "ability_base:base", 65 "ability_base:want", 66 "ability_runtime:app_manager", 67 "bundle_framework:appexecfwk_base", 68 "bundle_framework:appexecfwk_core", 69 "c_utils:utils", 70 "device_manager:devicemanagersdk", 71 "graphic_surface:surface", 72 "hilog:libhilog", 73 "ipc:ipc_core", 74 "napi:ace_napi", 75 "safwk:system_ability_fwk", 76 ] 77 78 subsystem_name = "castplus" 79 part_name = "sharing_framework" 80} 81