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