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