• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-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")
15
16ohos_shared_library("wifi_utils") {
17  install_enable = true
18  include_dirs = [
19    "//foundation/communication/wifi/utils/inc",
20    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
21    "//foundation/communication/wifi/services/wifi_standard/wifi_framework/common/log",
22    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/bundlemgr/",
23    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/bundlemgr/",
24  ]
25
26  sources = [
27    "wifi_common_util.cpp",
28    "wifi_hisysevent.cpp",
29  ]
30
31  deps = [
32    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
33    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
34    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
35    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
36    "//utils/native/base:utils",
37  ]
38
39  external_deps = [
40    "bundle_framework:appexecfwk_base",
41    "hisysevent_native:libhisysevent",
42    "ipc:ipc_core",
43  ]
44
45  cflags_cc = [
46    "-std=c++17",
47    "-fno-rtti",
48  ]
49
50  ldflags = [
51    "-fPIC",
52    "-Wl,-E",
53  ]
54
55  part_name = "wifi_standard"
56  subsystem_name = "communication"
57}
58