13f085823Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 23f085823Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33f085823Sopenharmony_ci# you may not use this file except in compliance with the License. 43f085823Sopenharmony_ci# You may obtain a copy of the License at 53f085823Sopenharmony_ci# 63f085823Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73f085823Sopenharmony_ci# 83f085823Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93f085823Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103f085823Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113f085823Sopenharmony_ci# See the License for the specific language governing permissions and 123f085823Sopenharmony_ci# limitations under the License. 133f085823Sopenharmony_ci 143f085823Sopenharmony_ciimport("//build/test.gni") 153f085823Sopenharmony_ci 163f085823Sopenharmony_cimodule_output_path = "developer_test/distributedb" 173f085823Sopenharmony_ci 183f085823Sopenharmony_ci############################################################################### 193f085823Sopenharmony_ciconfig("module_private_config") { 203f085823Sopenharmony_ci visibility = [ ":*" ] 213f085823Sopenharmony_ci 223f085823Sopenharmony_ci include_dirs = [ 233f085823Sopenharmony_ci "../../../../../../commonlibrary/c_utils/base/include", 243f085823Sopenharmony_ci "../../../aw/distributed", 253f085823Sopenharmony_ci ] 263f085823Sopenharmony_ci} 273f085823Sopenharmony_ci 283f085823Sopenharmony_ciohos_distributedtest("DistributeDemo") { 293f085823Sopenharmony_ci module_out_path = module_output_path 303f085823Sopenharmony_ci 313f085823Sopenharmony_ci sources = [ "./distributedtest/common/distribute_demo.cpp" ] 323f085823Sopenharmony_ci 333f085823Sopenharmony_ci configs = [ ":module_private_config" ] 343f085823Sopenharmony_ci 353f085823Sopenharmony_ci external_deps = [ 363f085823Sopenharmony_ci "c_utils:utils", 373f085823Sopenharmony_ci "hilog:libhilog", 383f085823Sopenharmony_ci "ipc:ipc_core", 393f085823Sopenharmony_ci "safwk:system_ability_fwk", 403f085823Sopenharmony_ci "samgr:samgr_proxy", 413f085823Sopenharmony_ci ] 423f085823Sopenharmony_ci 433f085823Sopenharmony_ci deps = [ "//third_party/googletest:gtest" ] 443f085823Sopenharmony_ci} 453f085823Sopenharmony_ci 463f085823Sopenharmony_ciohos_distributedtest("DistributeDemoAgent") { 473f085823Sopenharmony_ci module_out_path = module_output_path 483f085823Sopenharmony_ci 493f085823Sopenharmony_ci sources = [ "./distributedtest/common/distribute_demo_agent.cpp" ] 503f085823Sopenharmony_ci 513f085823Sopenharmony_ci configs = [ ":module_private_config" ] 523f085823Sopenharmony_ci 533f085823Sopenharmony_ci external_deps = [ 543f085823Sopenharmony_ci "c_utils:utils", 553f085823Sopenharmony_ci "hilog:libhilog", 563f085823Sopenharmony_ci "ipc:ipc_core", 573f085823Sopenharmony_ci "safwk:system_ability_fwk", 583f085823Sopenharmony_ci "samgr:samgr_proxy", 593f085823Sopenharmony_ci ] 603f085823Sopenharmony_ci 613f085823Sopenharmony_ci deps = [ "//third_party/googletest:gtest" ] 623f085823Sopenharmony_ci} 633f085823Sopenharmony_ci 643f085823Sopenharmony_ci############################################################################### 653f085823Sopenharmony_cigroup("distributedtest") { 663f085823Sopenharmony_ci testonly = true 673f085823Sopenharmony_ci deps = [ 683f085823Sopenharmony_ci ":DistributeDemo", 693f085823Sopenharmony_ci ":DistributeDemoAgent", 703f085823Sopenharmony_ci ] 713f085823Sopenharmony_ci} 723f085823Sopenharmony_ci############################################################################### 73