BUILD.gn 838 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import("//build/ohos.gni")
  2. config("it3256_napi_config") {
  3. include_dirs = [
  4. "include",
  5. "//_mysubsystem/it3256/core/include"
  6. ]
  7. }
  8. ohos_shared_library("it3256") {
  9. sources = [
  10. "src/it3256_napi.cpp",
  11. "src/uart.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_napi_config" ]
  29. external_deps = [
  30. "napi:ace_napi",
  31. "hilog:libhilog"
  32. ]
  33. deps = ["//_mysubsystem/it3256/core:it3256IO_core"]
  34. part_name = "sony_camera"
  35. subsystem_name = "_mysubsystem"
  36. }