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/amsSystemTestP" 15SUBST_TOOLS_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/tools" 16config("amsSystemTestPConfig") { 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 = \"amsSystemTestP\"", 33 "LOG_DOMAIN = 0xD002200", 34 ] 35} 36ohos_shared_library("amsSystemTestP") { 37 sources = [ 38 "${SUBDEMOSYSTEM_DIR}/src/amsstabilityp1.cpp", 39 "${SUBST_TOOLS_DIR}/src/stpageabilityevent.cpp", 40 ] 41 configs = [ ":amsSystemTestPConfig" ] 42 deps = [ 43 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 44 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 45 "//foundation/appexecfwk/standard/common:libappexecfwk_common", 46 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 47 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 48 "//foundation/appexecfwk/standard/kits:appkit_native", 49 "//foundation/appexecfwk/standard/services/bundlemgr:libbms", 50 "//third_party/jsoncpp:jsoncpp", 51 "//utils/native/base:utilsbase", 52 ] 53 external_deps = [ 54 "ces_standard:cesfwk_core", 55 "ces_standard:cesfwk_innerkits", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 ] 59 subsystem_name = "amssystemtestability" 60} 61