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. 13 14import("//build/ohos.gni") 15 16ohos_executable("appspawnclienttest") { 17 sources = [ "app_spawn_client_test/main.cpp" ] 18 19 configs = [ ":test_config" ] 20 21 deps = [ "//foundation/aafwk/standard/services/appmgr:libams" ] 22 external_deps = [ 23 "ability_base:base", 24 "ability_base:want", 25 "appspawn:appspawn_socket_client", 26 "bundle_framework:appexecfwk_base", 27 "eventhandler:libeventhandler", 28 ] 29 30 subsystem_name = "aafwk" 31 part_name = "ability_runtime" 32} 33 34ohos_executable("appmgrserviceregtest") { 35 sources = [ "app_mgr_service_register_test/main_client.cpp" ] 36 37 configs = [ ":test_config" ] 38 cflags = [] 39 if (target_cpu == "arm") { 40 cflags += [ "-DBINDER_IPC_32BIT" ] 41 } 42 deps = [ 43 "//foundation/aafwk/standard/services/appmgr:libams", 44 #"startup:appspawn_jni", 45 ] 46 47 external_deps = [ 48 "ability_base:base", 49 "ability_base:want", 50 "ability_runtime:app_manager", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "eventhandler:libeventhandler", 54 "hiviewdfx_hilog_native:libhilog", 55 "ipc:ipc_core", 56 "safwk:system_ability_fwk", 57 "samgr_standard:samgr_proxy", 58 "utils_base:utils", 59 ] 60 61 subsystem_name = "aafwk" 62 part_name = "ability_runtime" 63} 64 65config("test_config") { 66 # header file path 67 include_dirs = [ 68 "//foundation/aafwk/standard/services/appmgr/include", 69 "//foundation/appexecfwk/standard/services/common/include", 70 ] 71 72 # enable exception 73 74 configs = [ "//foundation/aafwk/standard/services/appmgr:appmgr_config" ] 75} 76