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