[api] Assume that v8/include is in the include path for all public headers
Probably easier to use for embedders. BUG= R=ulan@chromium.org Review URL: https://codereview.chromium.org/1749663002 Cr-Commit-Position: refs/heads/master@{#34357}
This commit is contained in:
parent
d5cb0ce4e9
commit
e8c914f18f
9
BUILD.gn
9
BUILD.gn
@ -77,6 +77,11 @@ config("internal_config_base") {
|
|||||||
include_dirs = [ "." ]
|
include_dirs = [ "." ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This config should be applied to code using the libplatform.
|
||||||
|
config("libplatform_config") {
|
||||||
|
include_dirs = [ "include" ]
|
||||||
|
}
|
||||||
|
|
||||||
# This config should only be applied to code using V8 and not any V8 code
|
# This config should only be applied to code using V8 and not any V8 code
|
||||||
# itself.
|
# itself.
|
||||||
config("external_config") {
|
config("external_config") {
|
||||||
@ -1865,6 +1870,7 @@ if (current_toolchain == snapshot_toolchain) {
|
|||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||||
configs += [
|
configs += [
|
||||||
":internal_config",
|
":internal_config",
|
||||||
|
":libplatform_config",
|
||||||
":features",
|
":features",
|
||||||
":toolchain",
|
":toolchain",
|
||||||
]
|
]
|
||||||
@ -1977,6 +1983,7 @@ source_set("json_fuzzer") {
|
|||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||||
configs += [
|
configs += [
|
||||||
":internal_config",
|
":internal_config",
|
||||||
|
":libplatform_config",
|
||||||
":features",
|
":features",
|
||||||
":toolchain",
|
":toolchain",
|
||||||
]
|
]
|
||||||
@ -1995,6 +2002,7 @@ source_set("parser_fuzzer") {
|
|||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||||
configs += [
|
configs += [
|
||||||
":internal_config",
|
":internal_config",
|
||||||
|
":libplatform_config",
|
||||||
":features",
|
":features",
|
||||||
":toolchain",
|
":toolchain",
|
||||||
]
|
]
|
||||||
@ -2013,6 +2021,7 @@ source_set("regexp_fuzzer") {
|
|||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||||
configs += [
|
configs += [
|
||||||
":internal_config",
|
":internal_config",
|
||||||
|
":libplatform_config",
|
||||||
":features",
|
":features",
|
||||||
":toolchain",
|
":toolchain",
|
||||||
]
|
]
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
|
#ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
|
||||||
#define V8_LIBPLATFORM_LIBPLATFORM_H_
|
#define V8_LIBPLATFORM_LIBPLATFORM_H_
|
||||||
|
|
||||||
#include "include/v8-platform.h"
|
#include "v8-platform.h" // NOLINT(build/include)
|
||||||
|
|
||||||
namespace v8 {
|
namespace v8 {
|
||||||
namespace platform {
|
namespace platform {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#ifndef V8_INCLUDE_V8_EXPERIMENTAL_H_
|
#ifndef V8_INCLUDE_V8_EXPERIMENTAL_H_
|
||||||
#define V8_INCLUDE_V8_EXPERIMENTAL_H_
|
#define V8_INCLUDE_V8_EXPERIMENTAL_H_
|
||||||
|
|
||||||
#include "include/v8.h"
|
#include "v8.h" // NOLINT(build/include)
|
||||||
|
|
||||||
namespace v8 {
|
namespace v8 {
|
||||||
namespace experimental {
|
namespace experimental {
|
||||||
|
@ -1912,6 +1912,11 @@
|
|||||||
'toolsets': ['target'],
|
'toolsets': ['target'],
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
|
'direct_dependent_settings': {
|
||||||
|
'include_dirs': [
|
||||||
|
'../../include',
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'target_name': 'natives_blob',
|
'target_name': 'natives_blob',
|
||||||
|
Loading…
Reference in New Issue
Block a user