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