gtest/gmock: build checked out copy
Now that gtest/gmock are part of the manifest, build them directly
and store the results in out/.
BUG=b/27707648
TEST+`make` still works, as does the unittests
Change-Id: I8a8235b4bc0100731168a44c6553859a5d85bbe1
Reviewed-on: https://weave-review.googlesource.com/2952
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
diff --git a/Makefile b/Makefile
index 70f7ee7..00f237c 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,8 @@
-Iinclude \
-Ithird_party/chromium \
-Ithird_party/include \
+ -Ithird_party/googletest/googletest/include \
+ -Ithird_party/googletest/googlemock/include \
-Ithird_party/libuweave \
-Ithird_party/modp_b64/modp_b64
@@ -90,7 +92,10 @@
rm -f $@
$(AR) crsT $@ $^
-all : out/$(BUILD_MODE)/libweave.so all-examples out/$(BUILD_MODE)/libweave_exports_testrunner out/$(BUILD_MODE)/libweave_testrunner
+all-libs : out/$(BUILD_MODE)/libweave.so
+all-tests : out/$(BUILD_MODE)/libweave_exports_testrunner out/$(BUILD_MODE)/libweave_testrunner
+
+all : all-libs all-examples all-tests
clean :
rm -rf out