Collect variable information during endFunction() instead of beginFunction().
[oota-llvm.git] / utils / unittest / googletest / Makefile
1 ##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL := ../../..
11
12 include $(LEVEL)/Makefile.config
13
14 LIBRARYNAME = GoogleTest
15 BUILD_ARCHIVE = 1
16 REQUIRES_RTTI = 1
17
18 # Note that these flags are duplicated when building individual tests in
19 # unittests/Makefile.unittest and ../UnitTestMain/Makefile; ensure that any
20 # changes are made to both.
21 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
22 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
23 CPP.Flags += -DGTEST_HAS_RTTI=0
24 # libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not
25 # supported by Clang, so force googletest to use its own tuple implementation.
26 # When we import googletest >=1.4.0, we can drop this line.
27 CPP.Flags += -DGTEST_HAS_TR1_TUPLE=0
28
29
30 ifeq ($(HOST_OS),MingW)
31   CPP.Flags += -DGTEST_OS_WINDOWS=1
32 endif
33
34 NO_INSTALL = 1
35
36 include $(LEVEL)/Makefile.common