electron/patches
Keeley Hammond 6c17dd2296
fix: ensure native modules use the correct config (#35159)
* fix: ensure native modules are built with config.gypi

This works by patching node.h to check that two defines are set using the equivilant of an XNOR operation.  One define "ELECTRON_ENSURE_CONFIG_GYPI" is set via common.gypi which is _already_ used to build native modules and has been since the dawn of time.  Therefore this define will be set for all native module compilations targetting the Electron runtime.  The second define "USING_ELECTRON_CONFIG_GYPI" is only defined when the gypi argument "using_electron_config_gypi" is set to 1 which is only done so via config.gypi.  Only new enough versions of node-gyp correctly use the config.gypi file thus resulting in a compilation error on version of node-gyp that are too old.

* chore: fix lint

Co-authored-by: Samuel Attard <sattard@salesforce.com>
2022-08-01 07:52:26 -07:00
..
boringssl chore: bump chromium to 105.0.5129.0 (main) (#34403) 2022-06-27 15:50:08 -05:00
chromium chore: add electon deps to //src gitignore (#35065) 2022-07-27 13:15:34 +02:00
devtools_frontend chore: bump chromium to 102.0.4961.0 (main) (#33091) 2022-03-24 21:39:03 -04:00
Mantle chore: bump chromium to 096e5313aaf19dfa0c4710145c34d (master) (#26535) 2020-12-14 10:57:36 -08:00
nan chore: bump chromium to 105.0.5129.0 (main) (#34403) 2022-06-27 15:50:08 -05:00
node fix: ensure native modules use the correct config (#35159) 2022-08-01 07:52:26 -07:00
perfetto chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
ReactiveObjC chore: bump chromium to 94.0.4584.0 (main) (#30030) 2021-07-26 09:02:16 -07:00
squirrel.mac chore: bump chromium to 104.0.5073.0 (main) (#34272) 2022-06-01 08:12:47 +02:00
v8 chore: bump chromium to 105.0.5187.0 (main) (#34921) 2022-07-20 13:03:34 +02:00
webrtc chore: bump chromium to 99.0.4767.0 (main) (#31986) 2022-01-10 17:31:39 -05:00
config.json fix: webContents.openDevTools({mode}) not working (#32829) 2022-02-17 14:59:13 +09:00
README.md docs: add a dev doc describing the patch system (#20489) 2019-10-09 14:48:09 -07:00