1f5921b11Sopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd. 2f5921b11Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3f5921b11Sopenharmony_ci# you may not use this file except in compliance with the License. 4f5921b11Sopenharmony_ci# You may obtain a copy of the License at 5f5921b11Sopenharmony_ci# 6f5921b11Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7f5921b11Sopenharmony_ci# 8f5921b11Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9f5921b11Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10f5921b11Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11f5921b11Sopenharmony_ci# See the License for the specific language governing permissions and 12f5921b11Sopenharmony_ci# limitations under the License. 13f5921b11Sopenharmony_ci 14f5921b11Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 15f5921b11Sopenharmony_ciimport("../../build/config.gni") 16f5921b11Sopenharmony_ci 17f5921b11Sopenharmony_ciif (os_level != "mini") { 18f5921b11Sopenharmony_ci lite_library("pms_client") { 19f5921b11Sopenharmony_ci target_type = "shared_library" 20f5921b11Sopenharmony_ci sources = [ "perm_client.c" ] 21f5921b11Sopenharmony_ci 22f5921b11Sopenharmony_ci include_dirs = [ 23f5921b11Sopenharmony_ci "../../interfaces/innerkits", 24f5921b11Sopenharmony_ci "../../interfaces/kits", 25f5921b11Sopenharmony_ci "../pms/include", 26f5921b11Sopenharmony_ci "../pms_base/include", 27f5921b11Sopenharmony_ci ] 28f5921b11Sopenharmony_ci 29f5921b11Sopenharmony_ci deps = [ 30f5921b11Sopenharmony_ci "${hilog_lite_path}/frameworks/featured:hilog_shared", 31f5921b11Sopenharmony_ci "${ipc_path}/interfaces/innerkits/c/ipc:ipc_single", 32f5921b11Sopenharmony_ci "${samgr_lite_path}/samgr:samgr", 33f5921b11Sopenharmony_ci "//build/lite/config/component/cJSON:cjson_shared", 34f5921b11Sopenharmony_ci "//third_party/bounds_checking_function:libsec_shared", 35f5921b11Sopenharmony_ci ] 36f5921b11Sopenharmony_ci } 37f5921b11Sopenharmony_ci} else { 38f5921b11Sopenharmony_ci group("pms_client") { 39f5921b11Sopenharmony_ci } 40f5921b11Sopenharmony_ci} 41