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/test.gni") 15 16module_output_path = "developertest/distributedb" 17 18############################################################################### 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "//utils/native/base/include", 24 "//foundation/distributeddatamgr/distributeddatamgr/frameworks/innerkitsimpl/distributeddatafwk/include", 25 "//foundation/distributeddatamgr/distributeddatamgr/frameworks/innerkitsimpl/distributeddatafwk/src", 26 "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/app_distributeddata/include", 27 "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/distributeddata/include", 28 "//foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/app/include", 29 "//test/developertest/aw/distributed", 30 ] 31 32 # link library 33 #ldflags = [ "-llog" ] 34 35 # library path 36 lib_dirs = [ "//foundation/appexecfwk/libs" ] 37} 38 39ohos_distributedtest("DistributeDemo") { 40 module_out_path = module_output_path 41 42 sources = [ "//test/developertest/examples/distributedb/test/distributedtest/common/distribute_demo.cpp" ] 43 44 configs = [ ":module_private_config" ] 45 46 external_deps = [ 47 "hilog_native:libhilog", 48 "ipc:ipc_core", 49 "safwk:system_ability_fwk", 50 "samgr_standard:samgr_proxy", 51 ] 52 53 deps = [ 54 "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/app_distributeddata/:app_distributeddata", 55 "//foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter:distributeddata_adapter", 56 "//third_party/googletest:gtest", 57 "//utils/native/base:utils", 58 ] 59} 60 61ohos_distributedtest("DistributeDemoAgent") { 62 module_out_path = module_output_path 63 64 sources = [ "//test/developertest/examples/distributedb/test/distributedtest/common/distribute_demo_agent.cpp" ] 65 66 configs = [ ":module_private_config" ] 67 68 external_deps = [ 69 "hilog_native:libhilog", 70 "ipc:ipc_core", 71 "safwk:system_ability_fwk", 72 "samgr_standard:samgr_proxy", 73 ] 74 75 deps = [ 76 "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/app_distributeddata/:app_distributeddata", 77 "//foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter:distributeddata_adapter", 78 "//third_party/googletest:gtest", 79 "//utils/native/base:utils", 80 ] 81} 82 83############################################################################### 84group("distributedtest") { 85 testonly = true 86 deps = [ 87 ":DistributeDemo", 88 ":DistributeDemoAgent", 89 ] 90} 91############################################################################### 92