1# Copyright (c) 2022-2023 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( 16 "//foundation/distributedhardware/distributed_screen/distributedscreen.gni") 17 18ohos_executable("distributedScreenTest") { 19 install_enable = false 20 21 include_dirs = [ 22 "${services_path}/common/utils/include", 23 "${interfaces_path}/innerkits/native_cpp/screen_sink/include", 24 "${interfaces_path}/innerkits/native_cpp/screen_source/include", 25 "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", 26 "${fwk_common_path}/utils/include", 27 "${services_path}/screenclient/include", 28 "${common_path}/include", 29 ] 30 31 sources = [ 32 "./decoder_demo.cpp", 33 "./test.cpp", 34 ] 35 36 deps = [ 37 "${common_path}:distributed_screen_utils", 38 "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", 39 "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", 40 "${services_path}/screenclient:distributed_screen_client", 41 ] 42 43 defines = [ 44 "HI_LOG_ENABLE", 45 "DH_LOG_TAG=\"distributedScreenTest\"", 46 "LOG_DOMAIN=0xD004100", 47 ] 48 49 external_deps = [ 50 "access_token:libaccesstoken_sdk", 51 "access_token:libnativetoken", 52 "access_token:libtoken_setproc", 53 "dsoftbus:softbus_client", 54 "graphic_2d:librender_service_client", 55 "graphic_2d:surface", 56 "hilog:libhilog", 57 "player_framework:media_client", 58 "samgr:samgr_proxy", 59 "window_manager:libdm", 60 "window_manager:libwm", 61 ] 62 63 cflags = [ "-Wall" ] 64 cflags_cc = cflags 65 66 part_name = "distributed_screen" 67 subsystem_name = "distributedhardware" 68} 69