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
d5b502bb
Commit
d5b502bb
authored
Mar 06, 2017
by
Michael Goderbauer
Committed by
GitHub
Mar 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new --print-deps option (#8577)
parent
25714747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
dependencies.dart
packages/flutter_tools/lib/src/dart/dependencies.dart
+5
-18
No files found.
packages/flutter_tools/lib/src/dart/dependencies.dart
View file @
d5b502bb
...
@@ -69,10 +69,6 @@ class _GenSnapshotDartDependencySetBuilder implements DartDependencySetBuilder {
...
@@ -69,10 +69,6 @@ class _GenSnapshotDartDependencySetBuilder implements DartDependencySetBuilder {
Artifacts
.
instance
.
getArtifactPath
(
Artifact
.
isolateSnapshotData
);
Artifacts
.
instance
.
getArtifactPath
(
Artifact
.
isolateSnapshotData
);
assert
(
fs
.
path
.
isAbsolute
(
this
.
projectRootPath
));
assert
(
fs
.
path
.
isAbsolute
(
this
.
projectRootPath
));
// TODO(goderbauer): Implement --print-deps in gen_snapshot so we don't have to parse the Makefile
final
Directory
tempDir
=
fs
.
systemTempDirectory
.
createTempSync
(
'dart_dependency_set_builder_'
);
final
String
depfilePath
=
fs
.
path
.
join
(
tempDir
.
path
,
'snapshot_blob.bin.d'
);
final
List
<
String
>
args
=
<
String
>[
final
List
<
String
>
args
=
<
String
>[
snapshotterPath
,
snapshotterPath
,
'--snapshot_kind=script'
,
'--snapshot_kind=script'
,
...
@@ -80,24 +76,15 @@ class _GenSnapshotDartDependencySetBuilder implements DartDependencySetBuilder {
...
@@ -80,24 +76,15 @@ class _GenSnapshotDartDependencySetBuilder implements DartDependencySetBuilder {
'--vm_snapshot_data=
$vmSnapshotData
'
,
'--vm_snapshot_data=
$vmSnapshotData
'
,
'--isolate_snapshot_data=
$isolateSnapshotData
'
,
'--isolate_snapshot_data=
$isolateSnapshotData
'
,
'--packages=
$packagesFilePath
'
,
'--packages=
$packagesFilePath
'
,
'--
dependencies=
$depfilePath
'
,
'--
print-dependencies
'
,
'--script_snapshot=snapshot_blob.bin'
,
'--script_snapshot=snapshot_blob.bin'
,
mainScriptPath
mainScriptPath
];
];
runSyncAndThrowStdErrOnError
(
args
);
final
String
output
=
runSyncAndThrowStdErrOnError
(
args
);
String
output
=
fs
.
file
(
depfilePath
).
readAsStringSync
();
tempDir
.
deleteSync
(
recursive:
true
);
final
int
splitIndex
=
output
.
indexOf
(
':'
);
if
(
splitIndex
==
-
1
)
throw
new
Exception
(
'Unexpected output
$output
'
);
output
=
output
.
substring
(
splitIndex
+
1
);
return
new
Set
<
String
>.
from
(
LineSplitter
.
split
(
output
).
map
(
// Note: next line means we cannot process anything with spaces in the path
(
String
path
)
=>
fs
.
path
.
canonicalize
(
path
))
// because Makefiles don't support spaces in paths :(
);
return
new
Set
<
String
>.
from
(
output
.
trim
().
split
(
' '
).
map
(
(
String
path
)
=>
fs
.
path
.
canonicalize
(
path
)
));
}
}
}
}
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