BUILD.gn 1.3 KB

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