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("//build/test.gni") 15import("//foundation/appexecfwk/standard/appexecfwk.gni") 16 17config("system_test_ability_util_config") { 18 include_dirs = [ 19 "//third_party/jsoncpp/include", 20 "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/include", 21 "//foundation/distributedschedule/safwk/services/safwk/include", 22 ] 23 cflags = [] 24 if (target_cpu == "arm") { 25 cflags += [ "-DBINDER_IPC_32BIT" ] 26 } 27} 28 29ohos_shared_library("system_test_ability_util_lib") { 30 sources = [ 31 "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/event.cpp", 32 "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/module_test_dump_util.cpp", 33 "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/stoperator.cpp", 34 "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/system_test_ability_util.cpp", 35 ] 36 37 configs = [ 38 ":system_test_ability_util_config", 39 "//foundation/aafwk/standard/services/abilitymgr:abilityms_config", 40 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util:module_test_dump_util_config", 41 "//foundation/appexecfwk/standard/services/appmgr:appmgr_config", 42 ] 43 44 deps = [ 45 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 46 "//foundation/aafwk/standard/services/abilitymgr:abilityms", 47 "//foundation/aafwk/standard/services/test/moduletest/module_test_dump_util:module_test_dump_util_lib", 48 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 49 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core", 50 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 51 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 52 "//third_party/jsoncpp:jsoncpp", 53 "//utils/native/base:utils", 54 ] 55 56 external_deps = [ 57 "ces_standard:cesfwk_core", 58 "ces_standard:cesfwk_innerkits", 59 "hiviewdfx_hilog_native:libhilog", 60 "ipc:ipc_core", 61 ] 62 63 subsystem_name = "appexecfwk" 64 part_name = "appexecfwk_standard" 65} 66 67group("system_test_ability_util") { 68 deps = [ ":system_test_ability_util_lib" ] 69} 70