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") 14import("//foundation/appexecfwk/standard/appexecfwk.gni") 15SUBDEMOSYSTEM_DIR = "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/amsConfigurationUpdatedTest" 16SUBST_TOOLS_DIR = 17 "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/tools" 18config("amsConfigurationUpdatedTestConfig") { 19 visibility = [ ":*" ] 20 include_dirs = [ 21 "${SUBDEMOSYSTEM_DIR}/include", 22 "${kits_path}/appkit/native/app", 23 "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", 24 "${aafwk_path}/interfaces/innerkits/ability_manager/include", 25 "${innerkits_path}/libeventhandler/include", 26 "${services_path}/bundlemgr/include", 27 "${aafwk_path}/services/abilitymgr/include", 28 "${common_path}/log/include", 29 "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", 30 "${appexecfwk_path}/test/resource/amssystemtestability/abilitySrc/common", 31 "${SUBST_TOOLS_DIR}/include", 32 ] 33 defines = [ 34 "APP_LOG_TAG = \"amsConfigurationUpdatedTest\"", 35 "LOG_DOMAIN = 0xD002200", 36 ] 37 cflags = [] 38 if (target_cpu == "arm") { 39 cflags += [ "-DBINDER_IPC_32BIT" ] 40 } 41} 42ohos_shared_library("amsConfigurationUpdatedTest") { 43 sources = [ 44 "${SUBDEMOSYSTEM_DIR}/src/fifth_ability.cpp", 45 "${SUBDEMOSYSTEM_DIR}/src/fourth_ability.cpp", 46 "${SUBDEMOSYSTEM_DIR}/src/main_ability.cpp", 47 "${SUBDEMOSYSTEM_DIR}/src/second_ability.cpp", 48 "${SUBDEMOSYSTEM_DIR}/src/sixth_ability.cpp", 49 "${SUBDEMOSYSTEM_DIR}/src/test_utils.cpp", 50 "${SUBDEMOSYSTEM_DIR}/src/third_ability.cpp", 51 ] 52 configs = [ ":amsConfigurationUpdatedTestConfig" ] 53 deps = [ 54 "${aafwk_path}/frameworks/kits/ability/native:abilitykit_native", 55 "${aafwk_path}/frameworks/kits/ability/native:dummy_classes", 56 "${aafwk_path}/interfaces/innerkits/want:want", 57 "${aafwk_path}/services/abilitymgr:abilityms", 58 "${common_path}:libappexecfwk_common", 59 "${innerkits_path}/appexecfwk_base:appexecfwk_base", 60 "${innerkits_path}/appexecfwk_core:appexecfwk_core", 61 "${kits_path}:appkit_native", 62 "${services_path}/bundlemgr:libbms", 63 "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri", 64 "//utils/native/base:utilsbase", 65 ] 66 external_deps = [ 67 "ces_standard:cesfwk_innerkits", 68 "hiviewdfx_hilog_native:libhilog", 69 "ipc:ipc_core", 70 ] 71 subsystem_name = "amssystemtestability" 72} 73