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