summaryrefslogtreecommitdiff
path: root/tools/bit/make.cpp
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2019-02-27 20:42:37 -0500
committerJoe Onorato <joeo@google.com>2019-02-28 09:20:27 -0500
commit6c97f4908c99f26c7d59ac92bf74e7913a5333c8 (patch)
treeac9ad961c3f2e75304e9d552b919d83a1b64f888 /tools/bit/make.cpp
parentb953577b2784bebfc47ca8ad31fa55f2ea9808d1 (diff)
Make bit able to run gtest native tests.
The output parsing isn't ideal, so these are a bit more spammy than I'd like, but at least they build, install and run without the manual glop. Test: bit incidentd_test Change-Id: I3c34a4ebbf661f612b4b0f8b4e05cade8669b5a6
Diffstat (limited to 'tools/bit/make.cpp')
-rw-r--r--tools/bit/make.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/bit/make.cpp b/tools/bit/make.cpp
index 627091321b2e..df64a801e213 100644
--- a/tools/bit/make.cpp
+++ b/tools/bit/make.cpp
@@ -51,6 +51,18 @@ make_cache_filename(const string& outDir)
return filename + "/.bit_cache";
}
+bool
+Module::HasClass(const string& cl)
+{
+ for (vector<string>::const_iterator c = classes.begin(); c != classes.end(); c++) {
+ if (*c == cl) {
+ return true;
+ }
+ }
+ return false;
+}
+
+
BuildVars::BuildVars(const string& outDir, const string& buildProduct,
const string& buildVariant, const string& buildType)
:m_filename(),