mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
parent
1f6f2f5cae
commit
bfe08aa462
10 changed files with 20 additions and 21 deletions
6
BUILD.gn
6
BUILD.gn
|
@ -68,11 +68,11 @@ static_library("libdeno") {
|
|||
|
||||
v8_source_set("deno_nosnapshot") {
|
||||
sources = [
|
||||
"src/deno.cc",
|
||||
"src/deno_internal.h",
|
||||
"src/binding.cc",
|
||||
"src/internal.h",
|
||||
"src/file_util.cc",
|
||||
"src/file_util.h",
|
||||
"src/include/deno.h",
|
||||
"src/deno.h",
|
||||
]
|
||||
deps = [
|
||||
"third_party/v8:v8_monolith",
|
||||
|
|
|
@ -28,8 +28,8 @@ IN THE SOFTWARE.
|
|||
#include "third_party/v8/include/v8.h"
|
||||
#include "third_party/v8/src/base/logging.h"
|
||||
|
||||
#include "./deno_internal.h"
|
||||
#include "include/deno.h"
|
||||
#include "internal.h"
|
||||
#include "deno.h"
|
||||
|
||||
namespace deno {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
||||
// All rights reserved. MIT License.
|
||||
#ifndef INCLUDE_DENO_H_
|
||||
#define INCLUDE_DENO_H_
|
||||
#ifndef DENO_H_
|
||||
#define DENO_H_
|
||||
// Neither Rust nor Go support calling directly into C++ functions, therefore
|
||||
// the public interface to libdeno is done in C.
|
||||
#ifdef __cplusplus
|
||||
|
@ -50,4 +50,4 @@ void deno_terminate_execution(Deno* d);
|
|||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
#endif // INCLUDE_DENO_H_
|
||||
#endif // DENO_H_
|
|
@ -8,8 +8,8 @@
|
|||
#include "third_party/v8/include/v8.h"
|
||||
#include "third_party/v8/src/base/logging.h"
|
||||
|
||||
#include "./deno_internal.h"
|
||||
#include "include/deno.h"
|
||||
#include "internal.h"
|
||||
#include "deno.h"
|
||||
|
||||
#ifdef DENO_MOCK_RUNTIME
|
||||
#include "snapshot_mock_runtime.cc"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
||||
// All rights reserved. MIT License.
|
||||
#ifndef DENO_INTERNAL_H_
|
||||
#define DENO_INTERNAL_H_
|
||||
#ifndef INTERNAL_H_
|
||||
#define INTERNAL_H_
|
||||
|
||||
#include <string>
|
||||
#include "include/deno.h"
|
||||
#include "deno.h"
|
||||
#include "third_party/v8/include/v8.h"
|
||||
|
||||
extern "C" {
|
||||
|
@ -41,4 +41,4 @@ void InitializeContext(v8::Isolate* isolate, v8::Local<v8::Context> context,
|
|||
void AddIsolate(Deno* d, v8::Isolate* isolate);
|
||||
|
||||
} // namespace deno
|
||||
#endif // DENO_INTERNAL_H_
|
||||
#endif // INTERNAL_H_
|
|
@ -11,7 +11,7 @@
|
|||
#endif
|
||||
|
||||
#include "flatbuffers/flatbuffers.h"
|
||||
#include "include/deno.h"
|
||||
#include "deno.h"
|
||||
#include "src/msg_generated.h"
|
||||
#include "third_party/v8/src/base/logging.h"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// All rights reserved. MIT License.
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
#include "include/deno.h"
|
||||
#include "deno.h"
|
||||
|
||||
TEST(MockRuntimeTest, InitializesCorrectly) {
|
||||
Deno* d = deno_new(nullptr, nullptr);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
||||
// All rights reserved. MIT License.
|
||||
// Hint: --trace_serializer is a useful debugging flag.
|
||||
#include "deno_internal.h"
|
||||
#include "internal.h"
|
||||
#include "file_util.h"
|
||||
#include "include/deno.h"
|
||||
#include "deno.h"
|
||||
#include "third_party/v8/include/v8.h"
|
||||
#include "third_party/v8/src/base/logging.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
cd `dirname "$0"`/..
|
||||
clang-format -i -style Google src/*.cc src/*.h src/include/*.h
|
||||
clang-format -i -style Google src/*.cc src/*.h
|
||||
|
||||
gn format BUILD.gn
|
||||
gn format deno.gni
|
||||
|
|
|
@ -6,7 +6,6 @@ cd `dirname "$0"`/..
|
|||
--filter=-build/include_subdir \
|
||||
--repository=src \
|
||||
src/*.cc \
|
||||
src/*.h \
|
||||
src/include/*.h
|
||||
src/*.h
|
||||
node third_party/node_modules/.bin/tslint -p . \
|
||||
--exclude js/msg_generated.ts
|
||||
|
|
Loading…
Reference in a new issue