# 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/test.gni") import("//foundation/appexecfwk/standard/appexecfwk.gni") subdemosystem_path = "${system_test_app_path}/amsKitSystemTestService" config("amsKitSystemTestServiceconfig") { visibility = [ ":*" ] include_dirs = [ "${subdemosystem_path}/include", "${aafwk_path}/interfaces/innerkits/ability_manager/include", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", "${aafwk_path}/services/abilitymgr/include", "${appexecfwk_path}/common/log/include", "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include", "${appexecfwk_path}/kits/appkit/native/app", "${appexecfwk_path}/services/bundlemgr/include", "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", "//utils/system/safwk/native/include", "//third_party/jsoncpp/include", ] defines = [ "APP_LOG_TAG = \"amsKitSystemTestService\"", "LOG_DOMAIN = 0xD002200", ] } ohos_shared_library("amsKitSystemTestService") { sources = [ "src/ability_ability.cpp", "src/ability_connection_ability.cpp", "src/ability_context_ability.cpp", "src/ability_life_cycle_ability.cpp", "src/base_ability.cpp", "src/life_cycle_call_backs_ability.cpp", "src/life_cycle_observer_ability.cpp", "src/test_utils.cpp", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } configs = [ ":amsKitSystemTestServiceconfig" ] 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", "${libs_path}/libeventhandler:libeventhandler_target", "//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" }