1# Copyright (c) 2021 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/ohos.gni") 15import("//foundation/appexecfwk/standard/appexecfwk.gni") 16subdemosystem_path = "${system_test_app_path}/amsKitSystemTestPageA" 17config("amsSystemTestCConfig") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "${subdemosystem_path}/include", 21 "${appexecfwk_path}/kits/appkit/native/app", 22 "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", 23 "${aafwk_path}/interfaces/innerkits/ability_manager/include", 24 "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include", 25 "${appexecfwk_path}/services/bundlemgr/include", 26 "${aafwk_path}/services/abilitymgr/include", 27 "${appexecfwk_path}/common/log/include", 28 "//foundation/distributedschedule/services/dtbschedmgr/include", 29 "//third_party/jsoncpp/include", 30 ] 31 defines = [ 32 "APP_LOG_TAG = \"amsKitSystemTestPageA\"", 33 "LOG_DOMAIN = 0xD002200", 34 ] 35} 36ohos_shared_library("amsKitSystemTestPageA") { 37 sources = [ 38 "${subdemosystem_path}/src/ability_ability.cpp", 39 "${subdemosystem_path}/src/ability_context_ability.cpp", 40 "${subdemosystem_path}/src/ability_life_cycle_ability.cpp", 41 "${subdemosystem_path}/src/base_ability.cpp", 42 "${subdemosystem_path}/src/life_cycle_call_backs_ability.cpp", 43 "${subdemosystem_path}/src/life_cycle_observer_ability.cpp", 44 "${subdemosystem_path}/src/test_utils.cpp", 45 ] 46 configs = [ ":amsSystemTestCConfig" ] 47 deps = [ 48 "${aafwk_path}/frameworks/kits/ability/native:abilitykit_native", 49 "${aafwk_path}/interfaces/innerkits/want:want", 50 "${aafwk_path}/services/abilitymgr:abilityms", 51 "${aafwk_path}/services/abilitymgr:abilityms", 52 "${appexecfwk_path}/common:libappexecfwk_common", 53 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 54 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 55 "${appexecfwk_path}/kits:appkit_native", 56 "${appexecfwk_path}/services/bundlemgr:libbms", 57 "${libs_path}/libeventhandler:libeventhandler_target", 58 "//third_party/jsoncpp:jsoncpp", 59 "//utils/native/base:utilsbase", 60 ] 61 external_deps = [ 62 "ces_standard:cesfwk_core", 63 "ces_standard:cesfwk_innerkits", 64 "hiviewdfx_hilog_native:libhilog", 65 "ipc:ipc_core", 66 ] 67 subsystem_name = "amssystemtestability" 68} 69