19c6d7c21Sopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
29c6d7c21Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
39c6d7c21Sopenharmony_ci# you may not use this file except in compliance with the License.
49c6d7c21Sopenharmony_ci# You may obtain a copy of the License at
59c6d7c21Sopenharmony_ci#
69c6d7c21Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
79c6d7c21Sopenharmony_ci#
89c6d7c21Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
99c6d7c21Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
109c6d7c21Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119c6d7c21Sopenharmony_ci# See the License for the specific language governing permissions and
129c6d7c21Sopenharmony_ci# limitations under the License.
139c6d7c21Sopenharmony_ci
149c6d7c21Sopenharmony_ciimport("../config.gni")
159c6d7c21Sopenharmony_ci
169c6d7c21Sopenharmony_ciif (!enable_ohos_systemabilitymgr_samgr_lite_rpc_mini) {
179c6d7c21Sopenharmony_ci  source_set("client") {
189c6d7c21Sopenharmony_ci    sources = [ "source/remote_register_rpc.c" ]
199c6d7c21Sopenharmony_ci
209c6d7c21Sopenharmony_ci    cflags = [
219c6d7c21Sopenharmony_ci      "-fPIC",
229c6d7c21Sopenharmony_ci      "-Wall",
239c6d7c21Sopenharmony_ci    ]
249c6d7c21Sopenharmony_ci
259c6d7c21Sopenharmony_ci    include_dirs = [
269c6d7c21Sopenharmony_ci      "../samgr_endpoint/source",
279c6d7c21Sopenharmony_ci      "//commonlibrary/utils_lite/include",
289c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
299c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
309c6d7c21Sopenharmony_ci      "//third_party/bounds_checking_function/include",
319c6d7c21Sopenharmony_ci    ]
329c6d7c21Sopenharmony_ci
339c6d7c21Sopenharmony_ci    public_deps = [
349c6d7c21Sopenharmony_ci      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
359c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:endpoint_source",
369c6d7c21Sopenharmony_ci      "//third_party/bounds_checking_function:libsec_shared",
379c6d7c21Sopenharmony_ci    ]
389c6d7c21Sopenharmony_ci  }
399c6d7c21Sopenharmony_ci} else {
409c6d7c21Sopenharmony_ci  source_set("client") {
419c6d7c21Sopenharmony_ci    defines = [ "MINI_SAMGR_LITE_RPC" ]
429c6d7c21Sopenharmony_ci    sources = [ "source/remote_register_rpc.c" ]
439c6d7c21Sopenharmony_ci
449c6d7c21Sopenharmony_ci    include_dirs = [
459c6d7c21Sopenharmony_ci      "../samgr_server/source",
469c6d7c21Sopenharmony_ci      "../samgr_endpoint/source",
479c6d7c21Sopenharmony_ci      "//commonlibrary/utils_lite/include",
489c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
499c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
509c6d7c21Sopenharmony_ci      "//third_party/bounds_checking_function/include",
519c6d7c21Sopenharmony_ci    ]
529c6d7c21Sopenharmony_ci
539c6d7c21Sopenharmony_ci    public_deps = [
549c6d7c21Sopenharmony_ci      "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder",
559c6d7c21Sopenharmony_ci      "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:endpoint_source",
569c6d7c21Sopenharmony_ci      "//third_party/bounds_checking_function:libsec_static",
579c6d7c21Sopenharmony_ci    ]
589c6d7c21Sopenharmony_ci  }
599c6d7c21Sopenharmony_ci}
60