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. 13import("//build/ohos.gni") 14SUBDEMOSYSTEM_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/amsSystemTestI" 15SUBST_TOOLS_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/tools" 16config("amsSystemTestIConfig") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "${SUBDEMOSYSTEM_DIR}/include", 20 "//foundation/appexecfwk/standard/kits/appkit/native/app", 21 "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content", 22 "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include", 23 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include", 24 "//foundation/appexecfwk/standard/services/bundlemgr/include", 25 "//foundation/aafwk/standard/services/abilitymgr/include", 26 "//foundation/appexecfwk/standard/common/log/include", 27 "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", 28 "${SUBST_TOOLS_DIR}/include", 29 "//third_party/jsoncpp/include", 30 ] 31 defines = [ 32 "APP_LOG_TAG = \"amsSystemTestI\"", 33 "LOG_DOMAIN = 0xD002200", 34 ] 35} 36ohos_shared_library("amsSystemTestI") { 37 sources = [ 38 "${SUBDEMOSYSTEM_DIR}/src/amsstabilityi1.cpp", 39 "${SUBDEMOSYSTEM_DIR}/src/amsstabilityi2.cpp", 40 "${SUBDEMOSYSTEM_DIR}/src/amsstabilityi3.cpp", 41 "${SUBDEMOSYSTEM_DIR}/src/amsstabilityi4.cpp", 42 "${SUBST_TOOLS_DIR}/src/stpageabilityevent.cpp", 43 ] 44 configs = [ ":amsSystemTestIConfig" ] 45 deps = [ 46 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 47 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 48 "//foundation/appexecfwk/standard/common:libappexecfwk_common", 49 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 50 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 51 "//foundation/appexecfwk/standard/kits:appkit_native", 52 "//foundation/appexecfwk/standard/services/bundlemgr:libbms", 53 "//third_party/jsoncpp:jsoncpp", 54 "//utils/native/base:utilsbase", 55 ] 56 external_deps = [ 57 "ces_standard:cesfwk_core", 58 "ces_standard:cesfwk_innerkits", 59 "hiviewdfx_hilog_native:libhilog", 60 "ipc:ipc_core", 61 ] 62 subsystem_name = "amssystemtestability" 63} 64