BUILDssss.gn 743 B

1234567891011121314151617181920212223242526272829303132333435
  1. import("//build/ohos.gni")
  2. config("it3256_config") {
  3. include_dirs = [
  4. "include",
  5. ]
  6. }
  7. ohos_shared_library("it3256") {
  8. sources = [
  9. "src/uart.cpp",
  10. "src/it32567.cpp",
  11. "src/command.cpp"
  12. ]
  13. cflags = [
  14. "-Wno-error=delete-abstract-non-virtual-dtor",
  15. "-Wno-error=unused-variable",
  16. "-Wno-error=overloaded-virtual",
  17. "-frtti",
  18. "-Wno-error=pessimizing-move"
  19. ]
  20. cflags_c = []
  21. cflags_cc = [
  22. # "--verbose",
  23. "-std=c++17",
  24. ]
  25. ldflags = [
  26. "-lpthread"
  27. ]
  28. configs = [ ":it3256_config" ]
  29. external_deps = [
  30. "hilog:libhilog",
  31. "napi:ace_napi"
  32. ]
  33. part_name = "sony_camera"
  34. subsystem_name = "_mysubsystem"
  35. }