1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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("//foundation/CastEngine/castengine_wifi_display/config.gni") 16 17config("sharing_wfd_demo_config") { 18 include_dirs = [ 19 "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd/include", 20 "$SHARING_ROOT_DIR/services/extend/magic_enum", 21 "//foundation/CastEngine/castengine_wifi_display/services", 22 "//foundation/window/window_manager/interfaces/innerkits/wm", 23 "//foundation/graphic/graphic_2d/interfaces/inner_api", 24 ] 25} 26 27ohos_executable("sharing_wfd_demo") { 28 sanitize = { 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 } 33 34 configs = [ 35 ":sharing_wfd_demo_config", 36 # "$SHARING_ROOT_DIR/services/windowmgr:window_external_include", 37 ] 38 39 cflags = [ 40 "-Wall", 41 "-fno-rtti", 42 "-fno-exceptions", 43 "-fno-common", 44 "-fstack-protector-strong", 45 "-Wshadow", 46 "-FPIC", 47 "-FS", 48 "-O2", 49 "-D_FORTIFY_SOURCE=2", 50 "-fvisibility=hidden", 51 "-Wformat=2", 52 "-Wdate-time", 53 "-Werror", 54 "-Wextra", 55 "-Wimplicit-fallthrough", 56 "-Wsign-compare", 57 "-Wno-unused-parameter", 58 "-Wno-deprecated-declarations", 59 ] 60 61 cflags_cc = cflags 62 cflags_cc += [ "-std=c++17" ] 63 64 sources = [ "wfd_demo.cpp" ] 65 66 deps = 67 [ "$SHARING_ROOT_DIR/interfaces/innerkits/native/wfd:sharingwfd_client" ] 68 69 external_deps = [ 70 "c_utils:utils", 71 "graphic_2d:libgraphic_utils", 72 "graphic_2d:librender_service_client", 73 "graphic_surface:surface", 74 "graphic_surface:sync_fence", 75 "hilog:libhilog", 76 "ipc:ipc_core", 77 "window_manager:libwm", 78 ] 79 80 relative_install_dir = "sharing_demo" 81 82 subsystem_name = "castplus" 83 part_name = "sharing_framework" 84} 85