aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/gtest/Makefile
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-03-04 14:09:36 +1000
committerfuzzard <fuzzard@kodi.tv>2022-03-07 20:07:34 +1000
commit780aebfbd2e13a21fa09f3a65144c2162b0bfee8 (patch)
tree2eb189d304659b78902ebc524adbc60b17c1ca1e /tools/depends/target/gtest/Makefile
parentff2648720c4943ba66de516a57f51bb63d2a3dcc (diff)
[tools/depends] rename googletest to gtest
rename googletest to just gtest. This brings some consistency to naming in other parts of kodi cmake (eg target gtest)
Diffstat (limited to 'tools/depends/target/gtest/Makefile')
-rw-r--r--tools/depends/target/gtest/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/depends/target/gtest/Makefile b/tools/depends/target/gtest/Makefile
new file mode 100644
index 0000000000..9a54702aec
--- /dev/null
+++ b/tools/depends/target/gtest/Makefile
@@ -0,0 +1,25 @@
+include ../../Makefile.include GTEST-VERSION ../../download-files.include
+DEPS = ../../Makefile.include Makefile GTEST-VERSION ../../download-files.include
+
+LIBDYLIB=$(PLATFORM)/build/lib/libgtest.a
+
+all: .installed-$(PLATFORM)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); $(CMAKE) -B build -DBUILD_GMOCK:BOOL=OFF
+
+$(LIBDYLIB): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/build
+
+.installed-$(PLATFORM): $(LIBDYLIB)
+ $(MAKE) -C $(PLATFORM)/build install
+ touch $@
+
+clean:
+ $(MAKE) -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)