node_override.gypi 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. 'variables': {
  3. # Node disables the inspector unless icu is enabled. But node doesn't know
  4. # that we're building v8 with icu, so force it on.
  5. 'v8_enable_inspector': 1,
  6. # By default, node will build a dylib called something like
  7. # libnode.$node_module_version.dylib, which is inconvenient for our
  8. # purposes (since it makes the library's name unpredictable). This forces
  9. # it to drop the module_version from the filename and just produce
  10. # `libnode.dylib`.
  11. 'shlib_suffix': 'dylib',
  12. },
  13. 'target_defaults': {
  14. 'target_conditions': [
  15. ['_target_name=="node_lib"', {
  16. 'include_dirs': [
  17. '../../../v8',
  18. '../../../v8/include',
  19. '../../../third_party/icu/source/common',
  20. '../../../third_party/icu/source/i18n',
  21. ],
  22. 'libraries': [
  23. '../../../../../../libv8.dylib',
  24. '../../../../../../libv8_libbase.dylib',
  25. '../../../../../../libv8_libplatform.dylib',
  26. '../../../../../../libicuuc.dylib',
  27. ],
  28. 'defines': [
  29. # These will no longer be necessary once
  30. # https://github.com/google/boringssl/commit/a02ed04d527e1b57b4efaa0b4f9bdbc1ed5975b2
  31. # is in the past for Electron
  32. 'EVP_CIPH_CCM_MODE=0',
  33. 'EVP_CIPH_WRAP_MODE=0',
  34. 'EVP_CIPHER_CTX_FLAG_WRAP_ALLOW=0',
  35. 'EVP_CIPHER_CTX_set_flags(...)',
  36. ],
  37. }],
  38. ],
  39. },
  40. }