forked from firka/flutter
Remove unused build files
We don't use these anymore.
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
SKY_TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
SRC_ROOT = os.path.dirname(os.path.dirname(SKY_TOOLS_DIR))
|
||||
WORKBENCH = os.path.join(SRC_ROOT, 'sky', 'packages', 'workbench')
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Builds a Dart snapshot file')
|
||||
parser.add_argument('--main', type=str)
|
||||
parser.add_argument('--compiler', type=str)
|
||||
parser.add_argument('--package-root', type=str)
|
||||
parser.add_argument('--snapshot', type=str)
|
||||
args = parser.parse_args()
|
||||
|
||||
command = [
|
||||
os.path.abspath(args.compiler),
|
||||
'--package-root=%s' % os.path.abspath(args.package_root),
|
||||
'--snapshot=%s' % os.path.abspath(args.snapshot),
|
||||
os.path.abspath(args.main),
|
||||
]
|
||||
|
||||
subprocess.check_call(command, cwd=WORKBENCH)
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -1,52 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
SKY_TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
SRC_ROOT = os.path.dirname(os.path.dirname(SKY_TOOLS_DIR))
|
||||
DART_SDK = os.path.join(SRC_ROOT, 'third_party', 'dart-sdk', 'dart-sdk', 'bin')
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Packaging tool for Sky apps')
|
||||
parser.add_argument('--asset-base', type=str)
|
||||
parser.add_argument('--compiler', type=str)
|
||||
parser.add_argument('--main', type=str)
|
||||
parser.add_argument('--manifest', type=str)
|
||||
parser.add_argument('--output-file', type=str)
|
||||
parser.add_argument('--package-root', type=str)
|
||||
parser.add_argument('--snapshot', type=str)
|
||||
parser.add_argument('--precompiled', dest='precompiled', action='store_true')
|
||||
parser.set_defaults(precompiled=False)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
command = [
|
||||
'flutter',
|
||||
'build',
|
||||
'--asset-base', os.path.abspath(args.asset_base),
|
||||
'--compiler', os.path.abspath(args.compiler),
|
||||
'--main', os.path.abspath(args.main),
|
||||
'--output-file', os.path.abspath(args.output_file),
|
||||
'--package-root', os.path.abspath(args.package_root),
|
||||
'--snapshot', os.path.abspath(args.snapshot),
|
||||
'--private-key', os.path.abspath(os.path.join(args.package_root, '..', 'privatekey.der')),
|
||||
]
|
||||
|
||||
if args.precompiled:
|
||||
command += [
|
||||
'--precompiled'
|
||||
]
|
||||
|
||||
if args.manifest:
|
||||
command += ['--manifest', os.path.abspath(args.manifest)]
|
||||
|
||||
subprocess.check_call(command, cwd=os.path.join(args.package_root, '..'))
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -1,42 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import webbrowser
|
||||
|
||||
SKY_TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
SKY_ROOT = os.path.dirname(SKY_TOOLS_DIR)
|
||||
SRC_ROOT = os.path.dirname(SKY_ROOT)
|
||||
WORKBENCH_DIR = os.path.join(SRC_ROOT, 'sky', 'packages', 'workbench')
|
||||
SKY_PACKAGE = os.path.join(SRC_ROOT, 'sky', 'packages', 'sky')
|
||||
|
||||
DART_SDK = os.path.join(SRC_ROOT, 'third_party', 'dart-sdk', 'dart-sdk', 'bin')
|
||||
DARTDOC = os.path.join(DART_SDK, 'dartdoc')
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description='Sky Documentation Generator')
|
||||
parser.add_argument('--open', action='store_true',
|
||||
help='Open docs after building.')
|
||||
args = parser.parse_args()
|
||||
|
||||
doc_dir = os.path.join(SKY_PACKAGE, 'doc', 'api')
|
||||
|
||||
cmd = [
|
||||
DARTDOC,
|
||||
'--header', os.path.join(SKY_PACKAGE, 'doc', 'styles.html'),
|
||||
'--input', SKY_PACKAGE,
|
||||
'--output', doc_dir
|
||||
]
|
||||
subprocess.check_call(cmd, cwd=WORKBENCH_DIR)
|
||||
|
||||
if args.open:
|
||||
webbrowser.open(os.path.join(doc_dir, 'index.html'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user