1# Copyright (c) 2020-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("../config.gni") 15 16if (!enable_ohos_systemabilitymgr_samgr_lite_rpc_mini) { 17 source_set("client") { 18 sources = [ "source/remote_register_rpc.c" ] 19 20 cflags = [ 21 "-fPIC", 22 "-Wall", 23 ] 24 25 include_dirs = [ 26 "../samgr_endpoint/source", 27 "//commonlibrary/utils_lite/include", 28 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 29 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 30 "//third_party/bounds_checking_function/include", 31 ] 32 33 public_deps = [ 34 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 35 "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:endpoint_source", 36 "//third_party/bounds_checking_function:libsec_shared", 37 ] 38 } 39} else { 40 source_set("client") { 41 defines = [ "MINI_SAMGR_LITE_RPC" ] 42 sources = [ "source/remote_register_rpc.c" ] 43 44 include_dirs = [ 45 "../samgr_server/source", 46 "../samgr_endpoint/source", 47 "//commonlibrary/utils_lite/include", 48 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 49 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 50 "//third_party/bounds_checking_function/include", 51 ] 52 53 public_deps = [ 54 "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", 55 "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:endpoint_source", 56 "//third_party/bounds_checking_function:libsec_static", 57 ] 58 } 59} 60