1 ##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 include $(LEVEL)/Makefile.config
14 LIBRARYNAME = GoogleTest
18 # Note that these flags are duplicated when building individual tests in
19 # unittests/Makefile.unittest; ensure that any changes are made to both.
20 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
21 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
22 CPP.Flags += -DGTEST_HAS_RTTI=0
23 # libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not
24 # supported by Clang, so force googletest to use its own tuple implementation.
25 # When we import googletest >=1.4.0, we can drop this line.
26 CPP.Flags += -DGTEST_HAS_TR1_TUPLE=0
29 ifeq ($(HOST_OS),MingW)
30 CPP.Flags += -DGTEST_OS_WINDOWS=1
35 include $(LEVEL)/Makefile.common