1# Copyright (c) 2021-2022 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") 15import("//foundation/ability/ability_runtime/ability_runtime.gni") 16import("//foundation/ability/ability_runtime/services/dataobsmgr/dataobsms.gni") 17 18group("dataobsms_target") { 19 deps = [ ":dataobsms" ] 20} 21 22config("dataobsms_config") { 23 include_dirs = [ 24 "include/", 25 "${ability_runtime_services_path}/common/include", 26 ] 27 cflags = [] 28 if (target_cpu == "arm") { 29 cflags += [ "-DBINDER_IPC_32BIT" ] 30 } 31} 32 33ohos_shared_library("dataobsms") { 34 branch_protector_ret = "pac_ret" 35 sanitize = { 36 cfi = true 37 cfi_cross_dso = true 38 debug = false 39 } 40 shlib_type = "sa" 41 sources = dataobsms_files 42 43 configs = [ ":dataobsms_config" ] 44 45 deps = [ 46 "${ability_runtime_innerkits_path}/dataobs_manager:dataobs_manager", 47 "${ability_runtime_services_path}/common:task_handler_wrap", 48 ] 49 50 external_deps = [ 51 "ability_base:zuri", 52 "c_utils:utils", 53 "ffrt:libffrt", 54 "hilog:libhilog", 55 "ipc:ipc_core", 56 "json:nlohmann_json_static", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 ] 60 61 subsystem_name = "ability" 62 part_name = "ability_runtime" 63} 64 65# Note: Just for test 66ohos_static_library("dataobsms_static") { 67 branch_protector_ret = "pac_ret" 68 sanitize = { 69 cfi = true 70 cfi_cross_dso = true 71 debug = false 72 } 73 sources = dataobsms_files 74 75 configs = [ ":dataobsms_config" ] 76 77 deps = [ "${ability_runtime_innerkits_path}/dataobs_manager:dataobs_manager" ] 78 79 external_deps = [ 80 "ability_base:zuri", 81 "c_utils:utils", 82 "ffrt:libffrt", 83 "hilog:libhilog", 84 "ipc:ipc_core", 85 "json:nlohmann_json_static", 86 "safwk:system_ability_fwk", 87 "samgr:samgr_proxy", 88 ] 89 90 subsystem_name = "ability" 91 part_name = "ability_runtime" 92} 93