all.gn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. is_electron_build = true
  2. root_extra_deps = [ "//electron" ]
  3. # Registry of NMVs --> https://github.com/nodejs/node/blob/main/doc/abi_version_registry.json
  4. node_module_version = 128
  5. v8_promise_internal_field_count = 1
  6. v8_embedder_string = "-electron.0"
  7. # TODO: this breaks mksnapshot
  8. v8_enable_snapshot_native_code_counters = false
  9. # we use this api
  10. v8_enable_javascript_promise_hooks = true
  11. enable_cdm_host_verification = false
  12. proprietary_codecs = true
  13. ffmpeg_branding = "Chrome"
  14. enable_printing = true
  15. # Removes DLLs from the build, which are only meant to be used for Chromium development.
  16. # See https://github.com/electron/electron/pull/17985
  17. angle_enable_vulkan_validation_layers = false
  18. dawn_enable_vulkan_validation_layers = false
  19. # Removes dxc dll's that are only used experimentally.
  20. # See https://bugs.chromium.org/p/chromium/issues/detail?id=1474897
  21. dawn_use_built_dxc = false
  22. # These are disabled because they cause the zip manifest to differ between
  23. # testing and release builds.
  24. # See https://chromium-review.googlesource.com/c/chromium/src/+/2774898.
  25. enable_pseudolocales = false
  26. # Make application name configurable at runtime for cookie crypto
  27. allow_runtime_configurable_key_storage = true
  28. # CET shadow stack is incompatible with v8, until v8 is CET compliant
  29. # enabling this flag causes main process crashes where CET is enabled
  30. # Ref: https://source.chromium.org/chromium/chromium/src/+/45fba672185aae233e75d6ddc81ea1e0b30db050:v8/BUILD.gn;l=357
  31. enable_cet_shadow_stack = false
  32. # For similar reasons, disable CFI, which is not well supported in V8.
  33. # Chromium doesn't have any problems with this because they do not run
  34. # V8 in the browser process.
  35. # Ref: https://source.chromium.org/chromium/chromium/src/+/45fba672185aae233e75d6ddc81ea1e0b30db050:v8/BUILD.gn;l=281
  36. is_cfi = false
  37. # TODO: fix this once sysroots have been updated.
  38. use_qt = false
  39. # Disables the builtins PGO for V8
  40. v8_builtins_profiling_log_file = ""
  41. # https://chromium.googlesource.com/chromium/src/+/main/docs/dangling_ptr.md
  42. # TODO(vertedinde): hunt down dangling pointers on Linux
  43. enable_dangling_raw_ptr_checks = false
  44. enable_dangling_raw_ptr_feature_flag = false
  45. # This flag speeds up the performance of fork/execve on linux systems.
  46. # Ref: https://chromium-review.googlesource.com/c/v8/v8/+/4602858
  47. v8_enable_private_mapping_fork_optimization = true
  48. # Expose public V8 symbols for native modules.
  49. v8_expose_public_symbols = true
  50. # Disables unsafe-buffers-usage plugin due to incompatibilities with our reclient implementation
  51. # Ref: https://chromium-review.googlesource.com/c/chromium/src/+/5426599
  52. # Ref: https://github.com/electron/electron/commit/8e20f16ea35eeaeb149ae63bad3703d782665f6a
  53. clang_unsafe_buffers_paths = ""
  54. # Disable snapshotting a page when printing for its content to be analyzed for
  55. # sensitive content by enterprise users.
  56. enterprise_cloud_content_analysis = false