BUILD.gn 1.6 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 = [ "//out/hispark_pegasus/wifiiot_hispark_pegasus/libs/{{source_file_part}}" ]
  20. }
  21. static_library("winder") {
  22. sources = [
  23. "src/sensor.c",
  24. "src/oled.c",
  25. "src/netcfg.c",
  26. "src/pwm.c",
  27. "src/led.c",
  28. "src/keypad.c",
  29. "src/common.c",
  30. "src/winder.c"
  31. ]
  32. include_dirs = [
  33. "//applications/sample/wifi-iot/app/winder/include",
  34. "//applications/sample/wifi-iot/app/hals/include",
  35. "//base/iot_hardware/peripheral/interfaces/kits",
  36. "//foundation/communication/wifi_lite/interfaces/wifiservice",
  37. "//kernel/liteos_m/kal",
  38. "//kernel/liteos_m/cmsis",
  39. "//third_party/mbedtls/include/mbedtls",
  40. "//utils/native/lite/include",
  41. "//device/hisilicon/hispark_pegasus/sdk_liteos/third_party/lwip_sack/include",
  42. "//device/hisilicon/hispark_pegasus/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libsec/include",
  43. ]
  44. }