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("ipc_auth_target") { 19f5921b11Sopenharmony_ci target_type = "shared_library" 20f5921b11Sopenharmony_ci sources = [ 21f5921b11Sopenharmony_ci "src/ipc_auth_impl.c", 22f5921b11Sopenharmony_ci "src/ipc_auth_lite.c", 23f5921b11Sopenharmony_ci ] 24f5921b11Sopenharmony_ci include_dirs = [ 25f5921b11Sopenharmony_ci "../../interfaces/innerkits", 26f5921b11Sopenharmony_ci "ipc_auth/include", 27f5921b11Sopenharmony_ci "${ohos_product_adapter_dir}/security/permission_lite/ipc_auth/include", 28f5921b11Sopenharmony_ci "../pms_base/include", 29f5921b11Sopenharmony_ci ] 30f5921b11Sopenharmony_ci 31f5921b11Sopenharmony_ci deps = [ 32f5921b11Sopenharmony_ci "${hilog_lite_path}/frameworks/featured:hilog_shared", 33f5921b11Sopenharmony_ci "${samgr_lite_path}/samgr:samgr", 34f5921b11Sopenharmony_ci "../pms_base:pms_base", 35f5921b11Sopenharmony_ci "//third_party/bounds_checking_function:libsec_shared", 36f5921b11Sopenharmony_ci ] 37f5921b11Sopenharmony_ci 38f5921b11Sopenharmony_ci defines = [] 39f5921b11Sopenharmony_ci 40f5921b11Sopenharmony_ci if (ohos_kernel_type == "liteos_a") { 41f5921b11Sopenharmony_ci include_dirs += [ 42f5921b11Sopenharmony_ci "${aafwk_lite_path}/interfaces/kits/want_lite", 43f5921b11Sopenharmony_ci "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 44f5921b11Sopenharmony_ci ] 45f5921b11Sopenharmony_ci 46f5921b11Sopenharmony_ci deps += [ 47f5921b11Sopenharmony_ci "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 48f5921b11Sopenharmony_ci "${appexecfwk_lite_path}/services/bundlemgr_lite:appexecfwk_services_lite", 49f5921b11Sopenharmony_ci ] 50f5921b11Sopenharmony_ci 51f5921b11Sopenharmony_ci defines += [ 52f5921b11Sopenharmony_ci "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 53f5921b11Sopenharmony_ci "OHOS_APPFWK_ENABLE", 54f5921b11Sopenharmony_ci ] 55f5921b11Sopenharmony_ci } 56f5921b11Sopenharmony_ci } 57f5921b11Sopenharmony_ci} else { 58f5921b11Sopenharmony_ci group("ipc_auth_target") { 59f5921b11Sopenharmony_ci } 60f5921b11Sopenharmony_ci} 61