Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
928d49dc
Commit
928d49dc
authored
Oct 01, 2016
by
P.Y. Laligand
Committed by
GitHub
Oct 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dedicated executable to build flx files for Fuchsia. (#6159)
parent
16e34248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
fuchsia_builder.dart
packages/flutter_tools/bin/fuchsia_builder.dart
+63
-0
No files found.
packages/flutter_tools/bin/fuchsia_builder.dart
0 → 100644
View file @
928d49dc
// Copyright 2016 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
'dart:async'
;
import
'dart:io'
;
import
'package:args/args.dart'
;
import
'../lib/src/base/context.dart'
;
import
'../lib/src/base/logger.dart'
;
import
'../lib/src/flx.dart'
;
import
'../lib/src/globals.dart'
;
const
String
_kOptionSnapshotter
=
'snapshotter-path'
;
const
String
_kOptionTarget
=
'target'
;
const
String
_kOptionPackages
=
'packages'
;
const
String
_kOptionOutput
=
'output-file'
;
const
String
_kOptionSnapshot
=
'snapshot'
;
const
String
_kOptionDepfile
=
'depfile'
;
const
String
_kOptionWorking
=
'working-dir'
;
const
List
<
String
>
_kOptions
=
const
<
String
>[
_kOptionSnapshotter
,
_kOptionTarget
,
_kOptionPackages
,
_kOptionOutput
,
_kOptionSnapshot
,
_kOptionDepfile
,
_kOptionWorking
,
];
Future
<
Null
>
main
(
List
<
String
>
args
)
async
{
context
[
Logger
]
=
new
StdoutLogger
();
final
ArgParser
parser
=
new
ArgParser
()
..
addOption
(
_kOptionSnapshotter
,
help:
'The snapshotter executable'
)
..
addOption
(
_kOptionTarget
,
help:
'The entry point into the app'
)
..
addOption
(
_kOptionPackages
,
help:
'The .packages file'
)
..
addOption
(
_kOptionOutput
,
help:
'The generated flx file'
)
..
addOption
(
_kOptionSnapshot
,
help:
'The generated snapshot file'
)
..
addOption
(
_kOptionDepfile
,
help:
'The generated dependency file'
)
..
addOption
(
_kOptionWorking
,
help:
'The directory where to put temporary files'
);
final
ArgResults
argResults
=
parser
.
parse
(
args
);
if
(
_kOptions
.
any
((
String
option
)
=>
!
argResults
.
options
.
contains
(
option
)))
{
printError
(
'Missing option! All options must be specified.'
);
exit
(
1
);
}
String
outputPath
=
argResults
[
_kOptionOutput
];
final
int
result
=
await
build
(
snapshotterPath:
argResults
[
_kOptionSnapshotter
],
mainPath:
argResults
[
_kOptionTarget
],
outputPath:
outputPath
,
snapshotPath:
argResults
[
_kOptionSnapshot
],
depfilePath:
argResults
[
_kOptionDepfile
],
workingDirPath:
argResults
[
_kOptionWorking
],
packagesPath:
argResults
[
_kOptionPackages
],
includeRobotoFonts:
true
,
);
if
(
result
!=
0
)
{
printError
(
'Error building
$outputPath
:
$result
.'
);
}
exit
(
result
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment