Skip to content

Commit

Permalink
build,src: add PCH to node.gypi
Browse files Browse the repository at this point in the history
PR-URL: #25931
Reviewed-By: João Reis <[email protected]>
  • Loading branch information
refack committed Feb 14, 2019
1 parent 4698757 commit 6ac80f0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
11 changes: 9 additions & 2 deletions node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
},
'conditions': [
['clang==1', {
[ 'clang==1', {
'cflags': [ '-Werror=undefined-inline', ]
}],
[ 'node_shared=="false"', {
Expand Down Expand Up @@ -68,7 +68,14 @@
}, { # POSIX
'defines': [ '__POSIX__' ],
}],

[ 'node_use_pch=="true"', {
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
'sources': [
'<(_msvs_precompiled_header)',
'<(_msvs_precompiled_source)',
],
}],
[ 'node_enable_d8=="true"', {
'dependencies': [ 'deps/v8/gypfiles/d8.gyp:d8' ],
}],
Expand Down
1 change: 1 addition & 0 deletions tools/msvs/pch/node_pch.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "node_pch.h"
13 changes: 13 additions & 0 deletions tools/msvs/pch/node_pch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once
#include "aliased_buffer.h"
#include "base_object-inl.h"
#include "env-inl.h"
#include "node_internals.h"
#include "util-inl.h"
#include "uv.h"
#include "v8.h"

#include <list>
#include <memory>
#include <string>
#include <vector>

0 comments on commit 6ac80f0

Please sign in to comment.