1# Copyright (c) 2021 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/aafwk/standard/aafwk.gni") 16import("//foundation/aafwk/standard/services/dataobsmgr/dataobsms.gni") 17 18group("dataobsms_target") { 19 deps = [ ":dataobsms" ] 20} 21 22group("unittest") { 23 testonly = true 24 25 deps = [ "test:unittest" ] 26} 27 28config("dataobsms_config") { 29 include_dirs = [ 30 "include/", 31 "${innerkits_path}/base/include", 32 "${services_path}/common/include", 33 "//utils/native/base/include", 34 "//utils/system/safwk/native/include", 35 "//prebuilts/jdk/jdk8/linux-x86/include", 36 "//prebuilts/jdk/jdk8/linux-x86/include/linux", 37 "//third_party/json/include", 38 "//foundation/aafwk/standard/interfaces/innerkits/dataobs_manager/include", 39 ] 40 cflags = [] 41 if (target_cpu == "arm") { 42 cflags += [ "-DBINDER_IPC_32BIT" ] 43 } 44} 45 46ohos_shared_library("dataobsms") { 47 sources = dataobsms_files 48 49 configs = [ ":dataobsms_config" ] 50 51 deps = [ 52 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 53 "//foundation/aafwk/standard/interfaces/innerkits/base:base", 54 "//foundation/aafwk/standard/interfaces/innerkits/dataobs_manager:dataobs_manager", 55 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 56 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 57 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 58 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 59 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 60 "//utils/native/base:utils", 61 ] 62 63 external_deps = [ 64 "hiviewdfx_hilog_native:libhilog", 65 "ipc:ipc_core", 66 ] 67 68 subsystem_name = "aafwk" 69 part_name = "aafwk_standard" 70} 71