Browse Source

Add a few new node defines

Cheng Zhao 8 years ago
parent
commit
567714f07c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      electron.gyp

+ 3 - 0
electron.gyp

@@ -207,6 +207,9 @@
         'vendor/node/node.gyp:node',
       ],
       'defines': [
+        # We need to access internal implementations of Node.
+        'NODE_WANT_INTERNALS=1',
+        'NODE_SHARED_MODE',
         # This is defined in skia/skia_common.gypi.
         'SK_SUPPORT_LEGACY_GETTOPDEVICE',
         # Disable warnings for g_settings_list_schemas.