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 17ohos_shared_library("sharing_common") { 18 install_enable = true 19 sanitize = { 20 cfi = true 21 cfi_cross_dso = true 22 debug = false 23 boundary_sanitize = true 24 ubsan = true 25 integer_overflow = true 26 } 27 28 include_dirs = [ 29 "$SHARING_ROOT_DIR/services", 30 "$SHARING_ROOT_DIR/services/common", 31 ] 32 33 sources = [ 34 "common.cpp", 35 "reflect_registration.cpp", 36 "sharing_hisysevent.cpp", 37 "sharing_sink_hisysevent.cpp", 38 ] 39 deps = [ 40 "$SHARING_ROOT_DIR/services/utils:sharing_utils", 41 ] 42 43 external_deps = [ 44 "graphic_surface:surface", 45 "hilog:libhilog", 46 "hisysevent:libhisysevent", 47 "samgr:samgr_proxy", 48 ] 49 50 part_name = "sharing_framework" 51 subsystem_name = "castplus" 52} 53 54 55ohos_static_library("kv_operator") { 56 sanitize = { 57 cfi = true 58 cfi_cross_dso = true 59 debug = false 60 } 61 62 sources = [ "kv_operator.cpp" ] 63 64 include_dirs = [] 65 66 external_deps = [ 67 "ability_runtime:ability_manager", 68 "ability_runtime:abilitykit_native", 69 "ability_runtime:app_context", 70 "ability_runtime:app_manager", 71 "ability_runtime:dataobs_manager", 72 "ability_runtime:runtime", 73 "hilog:libhilog", 74 "kv_store:distributeddata_inner", 75 ] 76 77 part_name = "sharing_framework" 78 subsystem_name = "castplus" 79} 80