aboutsummaryrefslogtreecommitdiff
path: root/Coordinator.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2018-02-08 18:50:18 -0800
committerSteven Moreland <smoreland@google.com>2018-02-12 09:59:51 -0800
commit5abcf0119872582fe447adf207c3fdd2f998ac0f (patch)
tree5da8d57a34b76ea79824ed559c53cc371b8f4e0e /Coordinator.cpp
parent771db724abd89fa8739736f4b80754f9336b3a5a (diff)
downloadhidl-5abcf0119872582fe447adf207c3fdd2f998ac0f.tar.gz
hidl-gen knows what files its outputting.
hidl-gen outputFormat data structure now looks like: - list of output targets - "-L option" value to invoke - description - where to output files - how to build directory structure for output - to generate per package, per file, or per type - list of files to output (run w/ above options) - predicate to generate or not for a specific file - file name for a specific output target - how to generate the file Also, now all output files are maintained by main.cpp. This opens up the possibilities for generating dep files. Bug: 73001417 Test: hidl's run_all_host_tests.sh Change-Id: Ie433d3e2d34dffa802c6f63b6ad030ae13d4e101
Diffstat (limited to 'Coordinator.cpp')
-rw-r--r--Coordinator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 0d0ecdb5..9f1877e0 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -98,6 +98,10 @@ void Coordinator::addDefaultPackagePath(const std::string& root, const std::stri
Formatter Coordinator::getFormatter(const FQName& fqName, Location location,
const std::string& fileName) const {
+ if (location == Location::STANDARD_OUT) {
+ return Formatter(stdout);
+ }
+
std::string filepath = getFilepath(fqName, location, fileName);
onFileAccess(filepath, "w");