# Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("../config.gni") if (!enable_ohos_systemabilitymgr_samgr_lite_rpc_mini) { shared_library("server") { sources = [ "source/samgr_server_rpc.c" ] cflags = [ "-fPIC", "-Wall", ] include_dirs = [ "../samgr_endpoint/source", "//base/security/permission_lite/interfaces/innerkits", "//base/security/permission_lite/services/pms_base/include", "//commonlibrary/utils_lite/include", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", "//third_party/cJSON", "//third_party/bounds_checking_function/include", ] deps = [ "//foundation/systemabilitymgr/samgr_lite:ConfigFiles" ] public_deps = [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:store_source", "//third_party/bounds_checking_function:libsec_shared", ] } } else { if (ohos_kernel_type == "liteos_m") { static_library("server") { defines = [ "MINI_SAMGR_LITE_RPC" ] sources = [ "source/samgr_server_rpc.c" ] include_dirs = [ "../samgr_endpoint/source", "//commonlibrary/utils_lite/include", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", "//third_party/bounds_checking_function/include", ] deps = [ "//foundation/systemabilitymgr/samgr_lite:ConfigFiles" ] public_deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static", "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:store_source", "//third_party/bounds_checking_function:libsec_static", ] } } }