1# Copyright (c) 2020 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 shared_library("server") { 18 sources = [ "source/samgr_server_rpc.c" ] 19 20 cflags = [ 21 "-fPIC", 22 "-Wall", 23 ] 24 25 include_dirs = [ 26 "../samgr_endpoint/source", 27 "//base/security/permission_lite/interfaces/innerkits", 28 "//base/security/permission_lite/services/pms_base/include", 29 "//commonlibrary/utils_lite/include", 30 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 31 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 32 "//third_party/cJSON", 33 "//third_party/bounds_checking_function/include", 34 ] 35 36 deps = [ "//foundation/systemabilitymgr/samgr_lite:ConfigFiles" ] 37 38 public_deps = [ 39 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 40 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 41 "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:store_source", 42 "//third_party/bounds_checking_function:libsec_shared", 43 ] 44 } 45} else { 46 if (ohos_kernel_type == "liteos_m") { 47 static_library("server") { 48 defines = [ "MINI_SAMGR_LITE_RPC" ] 49 sources = [ "source/samgr_server_rpc.c" ] 50 51 include_dirs = [ 52 "../samgr_endpoint/source", 53 "//commonlibrary/utils_lite/include", 54 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 55 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 56 "//third_party/bounds_checking_function/include", 57 ] 58 59 deps = [ "//foundation/systemabilitymgr/samgr_lite:ConfigFiles" ] 60 61 public_deps = [ 62 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static", 63 "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", 64 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 65 "//foundation/systemabilitymgr/samgr_lite/samgr_endpoint:store_source", 66 "//third_party/bounds_checking_function:libsec_static", 67 ] 68 } 69 } 70} 71