BUILD.gn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright (c) 2023 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. "iot_wifi/libs/libnetcfgdevicesdk.a",
  15. "iot_wifi/libs/libhilinkadapter_3861.a",
  16. "iot_wifi/libs/libHwKeystoreSDK.a",
  17. ]
  18. copy("config") {
  19. sources = config_file
  20. outputs = [ "$root_build_dir/libs/{{source_file_part}}" ]
  21. }
  22. static_library("smart_environment") {
  23. sources = [
  24. "hispark_expansion_board/aht20.c",
  25. "hispark_expansion_board/HiSpark_WiFi_IoT_EM_VER.c",
  26. "hispark_expansion_board/oled_ssd1306.c",
  27. "iot_main/iot_deal_command.c",
  28. "iot_main/iot_main.c",
  29. "iot_main/iot_report_message.c",
  30. "iot_wifi/iot_wifi.c",
  31. "iot_wifi/iot_softap.c",
  32. "iot_wifi/iot_netcfg.c",
  33. "iot_wifi/iot_netcfg_nan.c",
  34. "nfc_network/nfc_network.c",
  35. "profile_package/profile_package.c",
  36. ]
  37. include_dirs = [
  38. "include",
  39. "//base/iot_hardware/peripheral/interfaces/kits",
  40. "//third_party/cJSON",
  41. "//vendor/bearpi/common/inc",
  42. "//foundation/communication/wifi_lite/interfaces/wifiservice",
  43. "//third_party/mbedtls/include/mbedtls",
  44. "//kernel/liteos_m/kal/cmsis",
  45. ]
  46. deps = [
  47. ":config",
  48. ]
  49. }