Skip to content

Commit

Permalink
build,src: add PCH to node_base
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Oct 30, 2018
1 parent 3a7fdce commit 27d769b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,14 @@
[ 'node_shared_http_parser=="false"', {
'defines': [ 'HTTP_PARSER_STRICT=0', ],
}],
['node_use_pch=="true"', {
'msvs_precompiled_header': 'src/node_pch.h',
'msvs_precompiled_source': 'src/node_pch.cc',
'sources': [
'<(_msvs_precompiled_header)',
'<(_msvs_precompiled_source)',
],
}],
],
}, # node_base
{
Expand Down
1 change: 1 addition & 0 deletions src/node_pch.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "node_pch.h"
15 changes: 15 additions & 0 deletions src/node_pch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
#define NAPI_EXPERIMENTAL
#include "node.h"
#include "node_internals.h"
#include "aliased_buffer.h"
#include "base_object-inl.h"
#include "env-inl.h"
#include "util-inl.h"
#include "uv.h"
#include "v8.h"

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

0 comments on commit 27d769b

Please sign in to comment.