mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Rename sky_packager to sky_snapshot
This program just creates a snapshot, not the whole package.
This commit is contained in:
parent
473632d687
commit
21a9fd1524
@ -10,7 +10,7 @@ group("sky") {
|
||||
"//sky/engine/wtf:unittests",
|
||||
"//sky/sdk/example",
|
||||
"//sky/tools/imagediff",
|
||||
"//sky/tools/packager($host_toolchain)",
|
||||
"//sky/tools/sky_snapshot($host_toolchain)",
|
||||
":sky_dev",
|
||||
]
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ import sys
|
||||
import os
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Sky Packager')
|
||||
parser = argparse.ArgumentParser(description='Snapshots Sky applications')
|
||||
parser.add_argument('executable', type=str)
|
||||
parser.add_argument('main', type=str)
|
||||
parser.add_argument('--package-root', type=str)
|
||||
@ -2,9 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
executable("packager") {
|
||||
output_name = "sky_packager"
|
||||
|
||||
executable("sky_snapshot") {
|
||||
sources = [
|
||||
"loader.cc",
|
||||
"loader.h",
|
||||
@ -2,16 +2,16 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/tools/packager/loader.h"
|
||||
#include "sky/tools/sky_snapshot/loader.h"
|
||||
|
||||
#include "base/command_line.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "sky/tools/packager/logging.h"
|
||||
#include "sky/tools/packager/scope.h"
|
||||
#include "sky/tools/packager/switches.h"
|
||||
#include "sky/tools/sky_snapshot/logging.h"
|
||||
#include "sky/tools/sky_snapshot/scope.h"
|
||||
#include "sky/tools/sky_snapshot/switches.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_TOOLS_PACKAGER_LOADER_H_
|
||||
#define SKY_TOOLS_PACKAGER_LOADER_H_
|
||||
#ifndef SKY_TOOLS_SKY_SNAPSHOT_LOADER_H_
|
||||
#define SKY_TOOLS_SKY_SNAPSHOT_LOADER_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -14,4 +14,4 @@ Dart_Handle HandleLibraryTag(Dart_LibraryTag tag,
|
||||
Dart_Handle url);
|
||||
void LoadScript(const std::string& url);
|
||||
|
||||
#endif // SKY_TOOLS_PACKAGER_LOADER_H_
|
||||
#endif // SKY_TOOLS_SKY_SNAPSHOT_LOADER_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/tools/packager/logging.h"
|
||||
#include "sky/tools/sky_snapshot/logging.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_TOOLS_PACKAGER_LOGGING_H_
|
||||
#define SKY_TOOLS_PACKAGER_LOGGING_H_
|
||||
#ifndef SKY_TOOLS_SKY_SNAPSHOT_LOGGING_H_
|
||||
#define SKY_TOOLS_SKY_SNAPSHOT_LOGGING_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -13,4 +13,4 @@ bool LogIfError(Dart_Handle handle);
|
||||
std::string StringFromDart(Dart_Handle string);
|
||||
Dart_Handle StringToDart(const std::string& string);
|
||||
|
||||
#endif // SKY_TOOLS_PACKAGER_LOGGING_H_
|
||||
#endif // SKY_TOOLS_SKY_SNAPSHOT_LOGGING_H_
|
||||
@ -12,11 +12,11 @@
|
||||
#include "base/logging.h"
|
||||
#include "base/process/memory.h"
|
||||
#include "dart/runtime/include/dart_api.h"
|
||||
#include "sky/tools/packager/loader.h"
|
||||
#include "sky/tools/packager/logging.h"
|
||||
#include "sky/tools/packager/scope.h"
|
||||
#include "sky/tools/packager/switches.h"
|
||||
#include "sky/tools/packager/vm.h"
|
||||
#include "sky/tools/sky_snapshot/loader.h"
|
||||
#include "sky/tools/sky_snapshot/logging.h"
|
||||
#include "sky/tools/sky_snapshot/scope.h"
|
||||
#include "sky/tools/sky_snapshot/switches.h"
|
||||
#include "sky/tools/sky_snapshot/vm.h"
|
||||
|
||||
void Usage() {
|
||||
std::cerr << "Usage: sky_packager"
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_TOOLS_PACKAGER_SCOPE_H_
|
||||
#define SKY_TOOLS_PACKAGER_SCOPE_H_
|
||||
#ifndef SKY_TOOLS_SKY_SNAPSHOT_SCOPE_H_
|
||||
#define SKY_TOOLS_SKY_SNAPSHOT_SCOPE_H_
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/logging.h"
|
||||
@ -30,4 +30,4 @@ class DartApiScope {
|
||||
DISALLOW_COPY_AND_ASSIGN(DartApiScope);
|
||||
};
|
||||
|
||||
#endif // SKY_TOOLS_PACKAGER_SCOPE_H_
|
||||
#endif // SKY_TOOLS_SKY_SNAPSHOT_SCOPE_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/tools/packager/switches.h"
|
||||
#include "sky/tools/sky_snapshot/switches.h"
|
||||
|
||||
namespace switches {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_TOOLS_PACKAGER_SWITCHES_H_
|
||||
#define SKY_TOOLS_PACKAGER_SWITCHES_H_
|
||||
#ifndef SKY_TOOLS_SKY_SNAPSHOT_SWITCHES_H_
|
||||
#define SKY_TOOLS_SKY_SNAPSHOT_SWITCHES_H_
|
||||
|
||||
namespace switches {
|
||||
|
||||
@ -13,4 +13,4 @@ extern const char kSnapshot[];
|
||||
|
||||
} // namespace switches
|
||||
|
||||
#endif // SKY_TOOLS_PACKAGER_SWITCHES_H_
|
||||
#endif // SKY_TOOLS_SKY_SNAPSHOT_SWITCHES_H_
|
||||
@ -2,11 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/tools/packager/vm.h"
|
||||
#include "sky/tools/sky_snapshot/vm.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "sky/tools/packager/loader.h"
|
||||
#include "sky/tools/packager/logging.h"
|
||||
#include "sky/tools/sky_snapshot/loader.h"
|
||||
#include "sky/tools/sky_snapshot/logging.h"
|
||||
|
||||
namespace blink {
|
||||
extern const uint8_t* kDartVmIsolateSnapshotBuffer;
|
||||
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_TOOLS_PACKAGER_VM_H_
|
||||
#define SKY_TOOLS_PACKAGER_VM_H_
|
||||
#ifndef SKY_TOOLS_SKY_SNAPSHOT_VM_H_
|
||||
#define SKY_TOOLS_SKY_SNAPSHOT_VM_H_
|
||||
|
||||
#include "dart/runtime/include/dart_api.h"
|
||||
|
||||
void InitDartVM();
|
||||
Dart_Isolate CreateDartIsolate();
|
||||
|
||||
#endif // SKY_TOOLS_PACKAGER_VM_H_
|
||||
#endif // SKY_TOOLS_SKY_SNAPSHOT_VM_H_
|
||||
Loading…
x
Reference in New Issue
Block a user