@@ -1168,9 +1168,6 @@ FILE: ../../../flutter/third_party/tonic/logging/dart_invoke.cc
|
||||
FILE: ../../../flutter/third_party/tonic/logging/dart_invoke.h
|
||||
FILE: ../../../flutter/third_party/tonic/parsers/packages_map.cc
|
||||
FILE: ../../../flutter/third_party/tonic/parsers/packages_map.h
|
||||
FILE: ../../../flutter/third_party/tonic/platform/platform_utils.h
|
||||
FILE: ../../../flutter/third_party/tonic/platform/platform_utils_posix.cc
|
||||
FILE: ../../../flutter/third_party/tonic/platform/platform_utils_win.cc
|
||||
FILE: ../../../flutter/third_party/tonic/scopes/dart_api_scope.h
|
||||
FILE: ../../../flutter/third_party/tonic/scopes/dart_isolate_scope.cc
|
||||
FILE: ../../../flutter/third_party/tonic/scopes/dart_isolate_scope.h
|
||||
|
||||
@@ -39,7 +39,6 @@ source_set("tonic") {
|
||||
"converter",
|
||||
"file_loader",
|
||||
"logging",
|
||||
"platform",
|
||||
"scopes",
|
||||
"typed_data",
|
||||
"//third_party/dart/runtime:dart_api",
|
||||
|
||||
@@ -25,7 +25,6 @@ source_set("file_loader") {
|
||||
"../converter",
|
||||
"../filesystem",
|
||||
"../parsers",
|
||||
"../platform",
|
||||
"//third_party/dart/runtime:dart_api",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "tonic/common/macros.h"
|
||||
#include "tonic/converter/dart_converter.h"
|
||||
#include "tonic/parsers/packages_map.h"
|
||||
#include "tonic/platform/platform_utils.h"
|
||||
|
||||
namespace tonic {
|
||||
namespace {
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
source_set("platform") {
|
||||
visibility = [ "../*" ]
|
||||
|
||||
configs += [ "../:config" ]
|
||||
|
||||
if (is_win) {
|
||||
set_sources_assignment_filter([ "*_posix.cc" ])
|
||||
} else {
|
||||
set_sources_assignment_filter([ "*_win.cc" ])
|
||||
}
|
||||
|
||||
deps = [
|
||||
"../common",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"platform_utils.h",
|
||||
"platform_utils_posix.cc",
|
||||
"platform_utils_win.cc",
|
||||
]
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef LIB_TONIC_PLATFORM_UTILS_H_
|
||||
#define LIB_TONIC_PLATFORM_UTILS_H_
|
||||
|
||||
namespace tonic {
|
||||
|
||||
// Calls the equivalent of exit(status) for a given platform.
|
||||
void PlatformExit(int status);
|
||||
|
||||
} // namespace tonic
|
||||
|
||||
#endif // LIB_TONIC_PLATFORM_UTILS_H_
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <cstdlib>
|
||||
#include "platform_utils.h"
|
||||
|
||||
namespace tonic {
|
||||
|
||||
void PlatformExit(int status) {
|
||||
exit(status);
|
||||
}
|
||||
|
||||
} // namespace tonic
|
||||
@@ -1,15 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "platform_utils.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
namespace tonic {
|
||||
|
||||
void PlatformExit(int status) {
|
||||
::ExitProcess(status);
|
||||
}
|
||||
|
||||
} // namespace tonic
|
||||
Reference in New Issue
Block a user