1# Copyright (c) 2020-2022 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("//build/lite/config/component/lite_component.gni") 15 16if (os_level != "mini") { 17 lite_library("ipc_auth_target") { 18 target_type = "shared_library" 19 sources = [ 20 "//base/security/permission_lite/services/ipc_auth/src/ipc_auth_impl.c", 21 "//base/security/permission_lite/services/ipc_auth/src/ipc_auth_lite.c", 22 ] 23 include_dirs = [ 24 "//base/security/permission_lite/interfaces/innerkits", 25 "//base/security/permission_lite/services/ipc_auth/include", 26 "${ohos_product_adapter_dir}/security/permission_lite/ipc_auth/include", 27 "//base/security/permission_lite/services/pms_base/include", 28 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 29 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 30 "//commonlibrary/utils_lite/include", 31 "//third_party/bounds_checking_function/include/", 32 ] 33 34 deps = [ 35 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 36 "//base/security/permission_lite/services/pms_base:pms_base", 37 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 38 "//third_party/bounds_checking_function:libsec_shared", 39 ] 40 41 defines = [] 42 43 if (ohos_kernel_type == "liteos_a") { 44 include_dirs += [ 45 "${aafwk_lite_path}/interfaces/kits/want_lite", 46 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 47 "${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite", 48 ] 49 50 deps += [ "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle" ] 51 52 defines += [ 53 "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 54 "OHOS_APPFWK_ENABLE", 55 ] 56 } 57 } 58} else { 59 group("ipc_auth_target") { 60 } 61} 62