BUILD.gn 892 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import("//build/ohos.gni")
  2. config("it3256_core_config") {
  3. include_dirs = [
  4. "include"
  5. ]
  6. }
  7. ohos_shared_library("it3256IO_core") {
  8. sources = [
  9. "src/it3256_stub.cpp",
  10. "src/it3256_proxy.cpp",
  11. "src/it3256.cpp",
  12. "src/it3256_death_recipient.cpp",
  13. "src/it3256_manager.cpp"
  14. ]
  15. cflags = [
  16. "-Wno-error=delete-abstract-non-virtual-dtor",
  17. "-Wno-error=unused-variable",
  18. "-Wno-error=overloaded-virtual",
  19. "-frtti",
  20. "-Wno-error=pessimizing-move"
  21. ]
  22. cflags_c = []
  23. cflags_cc = [
  24. # "--verbose",
  25. "-std=c++17",
  26. ]
  27. ldflags = [
  28. "-lpthread"
  29. ]
  30. external_deps = [
  31. "hilog:libhilog",
  32. "ipc:ipc_core",
  33. "c_utils:utils",
  34. "samgr:samgr_proxy"
  35. ]
  36. configs = [ ":it3256_core_config" ]
  37. part_name = "sony_camera"
  38. subsystem_name = "_mysubsystem"
  39. }