From 6c97f4908c99f26c7d59ac92bf74e7913a5333c8 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 27 Feb 2019 20:42:37 -0500 Subject: 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 --- tools/bit/make.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tools/bit/make.cpp') 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::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(), -- cgit v1.2.3-59-g8ed1b