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