1# Copyright (c) 2022 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 "${windowmanager_path}/interfaces/innerkits/dm", 28 "${services_path}/screenclient/include", 29 "${windowmanager_path}/interfaces/innerkits/wm", 30 "${common_path}/include", 31 "//base/security/access_token/interfaces/innerkits/nativetoken/include/", 32 "//base/security/access_token/interfaces/innerkits/token_setproc/include/", 33 ] 34 35 include_dirs += 36 [ "foundation/multimedia/player_framework/interfaces/inner_api/native" ] 37 38 sources = [ 39 "./decoder_demo.cpp", 40 "./test.cpp", 41 ] 42 43 deps = [ 44 "${common_path}:distributed_screen_utils", 45 "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", 46 "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", 47 "${services_path}/screenclient:distributed_screen_client", 48 "${windowmanager_path}/dm:libdm", 49 "${windowmanager_path}/wm:libwm", 50 "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken", 51 "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", 52 "//foundation/communication/dsoftbus/adapter:softbus_adapter", 53 "//foundation/communication/dsoftbus/sdk:softbus_client", 54 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 55 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 56 ] 57 58 defines = [ 59 "HI_LOG_ENABLE", 60 "DH_LOG_TAG=\"distributedScreenTest\"", 61 "LOG_DOMAIN=0xD004100", 62 ] 63 64 external_deps = [ 65 "hiviewdfx_hilog_native:libhilog", 66 "multimedia_player_framework:media_client", 67 ] 68 69 cflags = [ "-Wall" ] 70 cflags_cc = cflags 71 72 part_name = "distributed_screen" 73 subsystem_name = "distributedhardware" 74} 75