# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") SUBDEMOSYSTEM_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/amsSystemTestN" SUBST_TOOLS_DIR = "//foundation/appexecfwk/standard/test/resource/amssystemtestability/abilitySrc/tools" config("amsSystemTestNConfig") { visibility = [ ":*" ] include_dirs = [ "${SUBDEMOSYSTEM_DIR}/include", "//foundation/appexecfwk/standard/kits/appkit/native/app", "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content", "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include", "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include", "//foundation/appexecfwk/standard/services/bundlemgr/include", "//foundation/aafwk/standard/services/abilitymgr/include", "//foundation/appexecfwk/standard/common/log/include", "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", "${SUBST_TOOLS_DIR}/include", "//third_party/jsoncpp/include", ] defines = [ "APP_LOG_TAG = \"amsSystemTestN\"", "LOG_DOMAIN = 0xD002200", ] } ohos_shared_library("amsSystemTestN") { sources = [ "${SUBDEMOSYSTEM_DIR}/src/amsstabilityn1.cpp", "${SUBDEMOSYSTEM_DIR}/src/amsstabilityn2.cpp", "${SUBDEMOSYSTEM_DIR}/src/amsstabilityn3.cpp", "${SUBDEMOSYSTEM_DIR}/src/amsstabilityn4.cpp", "${SUBST_TOOLS_DIR}/src/stpageabilityevent.cpp", ] configs = [ ":amsSystemTestNConfig" ] deps = [ "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", "//foundation/aafwk/standard/interfaces/innerkits/want:want", "//foundation/appexecfwk/standard/common:libappexecfwk_common", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", "//foundation/appexecfwk/standard/kits:appkit_native", "//foundation/appexecfwk/standard/services/bundlemgr:libbms", "//third_party/jsoncpp:jsoncpp", "//utils/native/base:utilsbase", ] external_deps = [ "ces_standard:cesfwk_core", "ces_standard:cesfwk_innerkits", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", ] subsystem_name = "amssystemtestability" }