# 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_DIR = "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/amsMissionStackTest" SUBST_TOOLS_DIR = "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/tools" config("amsMissionStackTestConfig") { visibility = [ ":*" ] include_dirs = [ "${SUBDEMOSYSTEM_DIR}/include", "${kits_path}/appkit/native/app", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", "${aafwk_path}/interfaces/innerkits/ability_manager/include", "${innerkits_path}/libeventhandler/include", "${services_path}/bundlemgr/include", "${aafwk_path}/services/abilitymgr/include", "${common_path}/log/include", "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/common", "${SUBST_TOOLS_DIR}/include", ] defines = [ "APP_LOG_TAG = \"amsMissionStackTest\"", "LOG_DOMAIN = 0xD002200", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } } ohos_shared_library("amsMissionStackTest") { sources = [ "${SUBDEMOSYSTEM_DIR}/src/main_ability.cpp", "${SUBDEMOSYSTEM_DIR}/src/second_ability.cpp", "${SUBDEMOSYSTEM_DIR}/src/test_utils.cpp", "${SUBDEMOSYSTEM_DIR}/src/third_ability.cpp", ] configs = [ ":amsMissionStackTestConfig" ] deps = [ "${aafwk_path}/frameworks/kits/ability/native:abilitykit_native", "${aafwk_path}/frameworks/kits/ability/native:dummy_classes", "${aafwk_path}/interfaces/innerkits/want:want", "${common_path}:libappexecfwk_common", "${innerkits_path}/appexecfwk_base:appexecfwk_base", "${innerkits_path}/appexecfwk_core:appexecfwk_core", "${kits_path}:appkit_native", "${services_path}/bundlemgr:libbms", "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", "//utils/native/base:utilsbase", ] external_deps = [ "ces_standard:cesfwk_innerkits", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", ] subsystem_name = "amssystemtestability" }