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