1# Copyright (c) 2020 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. 13import("//build/lite/config/component/lite_component.gni") 14import("//build/lite/config/subsystem/aafwk/config.gni") 15import("//build/lite/config/test.gni") 16 17lite_library("abilitymanager") { 18 target_type = "shared_library" 19 cflags = [ "-Wall" ] 20 cflags_cc = cflags 21 22 sources = [ 23 "src/ability_callback_utils.cpp", 24 "src/ability_manager.cpp", 25 "src/ability_self_callback.cpp", 26 "src/ability_service_manager.cpp", 27 "src/abilityms_client.cpp", 28 ] 29 30 deps = [ 31 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 32 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 33 "//foundation/communication/ipc_lite:liteipc_adapter", 34 ] 35 36 include_dirs = [ 37 "${aafwk_lite_path}/services/abilitymgr_lite/include", 38 "${aafwk_lite_path}/services/abilitymgr_lite/include/util", 39 "${aafwk_lite_path}/frameworks/abilitymgr_lite/include", 40 "${aafwk_lite_path}/frameworks/want_lite/include", 41 "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite", 42 "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite/slite", 43 "${aafwk_lite_path}/interfaces/kits/want_lite", 44 "${aafwk_lite_path}/interfaces/kits/ability_lite", 45 "${aafwk_lite_path}/interfaces/kits/ability_lite/slite", 46 "${appexecfwk_lite_path}/utils/bundle_lite", 47 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 48 "${appexecfwk_lite_path}/frameworks/bundle_lite/include", 49 "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry", 50 "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", 51 "//third_party/bounds_checking_function/include", 52 "//utils/native/lite/kv_store/innerkits", 53 "//utils/native/lite/include", 54 "//utils/native/lite/memory/include", 55 "./include", 56 "./", 57 ] 58 59 defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ] 60} 61 62unittest("ability_manager_inner_test") { 63 output_extension = "bin" 64 output_dir = "$root_out_dir/test/unittest/ManagerInnerTest_lv0" 65 66 sources = [ "//foundation/aafwk/aafwk_lite/frameworks/abilitymgr_lite/unittest/ability_manager_inner_test.cpp" ] 67 68 include_dirs = [ 69 "${aafwk_lite_path}/services/abilitymgr_lite/include", 70 "${aafwk_lite_path}/services/abilitymgr_lite/include/util", 71 "${aafwk_lite_path}/frameworks/abilitymgr_lite/include", 72 "${aafwk_lite_path}/frameworks/want_lite/include", 73 "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite", 74 "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite/slite", 75 "${aafwk_lite_path}/interfaces/kits/want_lite", 76 "${aafwk_lite_path}/interfaces/kits/ability_lite", 77 "${aafwk_lite_path}/interfaces/kits/ability_lite/slite", 78 "${appexecfwk_lite_path}/utils/bundle_lite", 79 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 80 "${appexecfwk_lite_path}/frameworks/bundle_lite/include", 81 "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry", 82 "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", 83 "//third_party/bounds_checking_function/include", 84 "//utils/native/lite/kv_store/innerkits", 85 "//utils/native/lite/include", 86 "//utils/native/lite/memory/include", 87 "./include", 88 "./", 89 ] 90} 91 92lite_component("aafwk_abilityManager_lite") { 93 features = [ ":abilitymanager" ] 94}