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