# 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") import("//foundation/appexecfwk/standard/appexecfwk.gni") subdemosystem_path = "${system_test_app_path}/amsSystemTestDFX" SUBST_TOOLS_DIR = "${system_test_app_path}/tools" config("amsSystemTestCConfig") { visibility = [ ":*" ] include_dirs = [ "${subdemosystem_path}/include", "${appexecfwk_path}/kits/appkit/native/app", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", "${aafwk_path}/interfaces/innerkits/ability_manager/include", "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include", "${appexecfwk_path}/services/bundlemgr/include", "${aafwk_path}/services/abilitymgr/include", "${appexecfwk_path}/common/log/include", "//foundation/distributedschedule/services/dtbschedmgr/include", "${SUBST_TOOLS_DIR}/include", "//third_party/jsoncpp/include", ] defines = [ "APP_LOG_TAG = \"amsSystemTestDFX\"", "LOG_DOMAIN = 0xD002200", ] } ohos_shared_library("amsSystemTestDFX") { sources = [ "${SUBST_TOOLS_DIR}/src/stpageabilityevent.cpp", "${subdemosystem_path}/src/ams_dfx_st_service_ability_a1.cpp", "${subdemosystem_path}/src/ams_dfx_st_service_ability_a2.cpp", ] configs = [ ":amsSystemTestCConfig" ] deps = [ "${aafwk_path}/frameworks/kits/ability/native:abilitykit_native", "${aafwk_path}/interfaces/innerkits/want:want", "${aafwk_path}/services/abilitymgr:abilityms", "${appexecfwk_path}/common:libappexecfwk_common", "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base", "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core", "${appexecfwk_path}/kits:appkit_native", "${appexecfwk_path}/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" }