BUILD.gn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright (c) 2021 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. config_file = [
  14. "libs/libnetcfgdevicesdk.a",
  15. "libs/libhilinkadapter_3861.a"
  16. ]
  17. copy("config") {
  18. sources = config_file
  19. outputs = [ "$root_build_dir/libs/{{source_file_part}}" ]
  20. }
  21. static_library("iot_wifi") {
  22. sources = [
  23. "iot_wifi.c",
  24. "iot_softap.c",
  25. "iot_netcfg.c",
  26. "iot_netcfg_nan.c"
  27. ]
  28. cflags = [ "-Wno-unused-variable" ]
  29. cflags += [ "-Wno-unused-but-set-variable" ]
  30. cflags += [ "-Wno-unused-parameter" ]
  31. include_dirs = [
  32. "//foundation/communication/wifi_lite/interfaces/wifiservice",
  33. "//third_party/mbedtls/include/mbedtls",
  34. "//kernel/liteos_m/kal/cmsis",
  35. "//third_party/cJSON",
  36. "../inc",
  37. ]
  38. deps = [
  39. ]
  40. }