aboutsummaryrefslogtreecommitdiff
path: root/checkbuild.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-10-23 17:14:21 -0700
committerDan Albert <danalbert@google.com>2015-10-26 14:09:08 -0700
commit25056b86c1a0c46ed9f8564780725d7b1425acf2 (patch)
treeaefc22458a33b05ea14d2771f84d441781bedcd3 /checkbuild.py
parent9ab54144efd48197cc5ec3659f983e5c40d70d10 (diff)
downloadndk-25056b86c1a0c46ed9f8564780725d7b1425acf2.tar.gz
Build gtest package.
Bug: http://b/23362228 Change-Id: Ifc36687ffa5509c97f775456a94ffaa580f7cdab
Diffstat (limited to 'checkbuild.py')
-rw-r--r--checkbuild.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/checkbuild.py b/checkbuild.py
index 6c014e2d7..1d4005050 100644
--- a/checkbuild.py
+++ b/checkbuild.py
@@ -45,6 +45,7 @@ ALL_MODULES = {
'gcclibs',
'gdbserver',
'gnustl',
+ 'gtest',
'host-tools',
'libc++',
'platforms',
@@ -412,6 +413,13 @@ def build_cpufeatures(out_dir, _):
root_dir=build_support.ndk_path())
+def build_gtest(out_dir, _):
+ archive_name = os.path.join(out_dir, 'gtest')
+ shutil.make_archive(archive_name, 'bztar',
+ base_dir='sources/third_party/googletest',
+ root_dir=build_support.ndk_path())
+
+
def main():
args, package_args = ArgParser().parse_known_args()
@@ -479,6 +487,7 @@ def main():
('gcclibs', build_gcc_libs),
('gdbserver', build_gdbserver),
('gnustl', build_gnustl),
+ ('gtest', build_gtest),
('host-tools', build_host_tools),
('libc++', build_libcxx),
('platforms', build_platforms),