• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17group("sharing_packages") {
18  deps = [
19    "//foundation/CastEngine/castengine_wifi_display/interfaces/innerkits/native/wfd:sharingwfd_client",
20    "//foundation/CastEngine/castengine_wifi_display/interfaces/kits/js/wfd:sharingwfd_napi",
21    "//foundation/CastEngine/castengine_wifi_display/sa_profile:sharing_sa_profile",
22    "//foundation/CastEngine/castengine_wifi_display/services:sharing_services_package",
23    "//foundation/CastEngine/castengine_wifi_display/services/etc:sharing_service.rc",
24  ]
25}
26
27config("wifi_display_default_config") {
28  if (wifi_display_support_sink) {
29    cflags = [
30      "-Wall",
31      "-Wextra",
32      "-Werror",
33      "-Wno-shadow",
34      "-Wno-unused-parameter",
35      "-Wno-missing-field-initializers",
36      "-FS",
37      "-O2",
38      "-D_FORTIFY_SOURCE=2",
39      "-fvisibility=hidden",
40      "-fvisibility-inlines-hidden",
41    ]
42    cflags_cc = cflags
43    ldflags = [ "-Werror" ]
44  }
45}
46