diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-01-01 01:29:44 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-01-01 01:29:44 +0000 |
commit | 3aae44e19f4179819599dc154dfcee95e6879eb1 (patch) | |
tree | 50f8b9425a085515ec6e90d2929cdf5c206ec1f0 /utils | |
parent | 94f0a38a000425e1e941a54c56a6268454b37160 (diff) | |
download | llvm-3aae44e19f4179819599dc154dfcee95e6879eb1.tar.gz llvm-3aae44e19f4179819599dc154dfcee95e6879eb1.tar.bz2 llvm-3aae44e19f4179819599dc154dfcee95e6879eb1.tar.xz |
Moved Google Test code up one directory so that we can use a standard LLVM
Makefile with it, without resorting to the use of VPATH.
Also added Makefiles at every level of the directory tree to properly recurse
to Google Test and build it as a library (original Makefiles by Talin).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 2 | ||||
-rw-r--r-- | utils/unittest/Makefile | 13 | ||||
-rw-r--r-- | utils/unittest/googletest/Makefile | 20 | ||||
-rw-r--r-- | utils/unittest/googletest/README.LLVM | 4 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-all.cc (renamed from utils/unittest/googletest/src/gtest-all.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-death-test.cc (renamed from utils/unittest/googletest/src/gtest-death-test.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-filepath.cc (renamed from utils/unittest/googletest/src/gtest-filepath.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-internal-inl.h (renamed from utils/unittest/googletest/src/gtest-internal-inl.h) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-port.cc (renamed from utils/unittest/googletest/src/gtest-port.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-test-part.cc (renamed from utils/unittest/googletest/src/gtest-test-part.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest-typed-test.cc (renamed from utils/unittest/googletest/src/gtest-typed-test.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest.cc (renamed from utils/unittest/googletest/src/gtest.cc) | 0 | ||||
-rw-r--r-- | utils/unittest/googletest/gtest_main.cc (renamed from utils/unittest/googletest/src/gtest_main.cc) | 0 |
13 files changed, 36 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile index 0cfaf1846d..c43086ba21 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -8,7 +8,7 @@ ##===----------------------------------------------------------------------===## LEVEL = .. -PARALLEL_DIRS := TableGen fpcmp PerfectShuffle +PARALLEL_DIRS := TableGen fpcmp PerfectShuffle unittest EXTRA_DIST := cgiplotNLT.pl check-each-file codegen-diff countloc.sh cvsupdate \ DSAclean.py DSAextract.py emacs findsym.pl GenLibDeps.pl \ diff --git a/utils/unittest/Makefile b/utils/unittest/Makefile new file mode 100644 index 0000000000..2f3e601b41 --- /dev/null +++ b/utils/unittest/Makefile @@ -0,0 +1,13 @@ +##===- utils/unittest/Makefile -----------------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../.. +PARALLEL_DIRS = googletest + +include $(LEVEL)/Makefile.common diff --git a/utils/unittest/googletest/Makefile b/utils/unittest/googletest/Makefile new file mode 100644 index 0000000000..d73e85a543 --- /dev/null +++ b/utils/unittest/googletest/Makefile @@ -0,0 +1,20 @@ +##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL := ../../.. +include $(LEVEL)/Makefile.config + +LIBRARYNAME = GoogleTest +BUILD_ARCHIVE = 1 +SOURCES = gtest-all.cc +CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/ +CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/ +CPP.Flags += -Wno-missing-field-initializers -Wno-variadic-macros + +include $(LEVEL)/Makefile.common diff --git a/utils/unittest/googletest/README.LLVM b/utils/unittest/googletest/README.LLVM index 87b810838b..38a77c0178 100644 --- a/utils/unittest/googletest/README.LLVM +++ b/utils/unittest/googletest/README.LLVM @@ -7,8 +7,8 @@ the actual source code, to minimize the addition to the LLVM distribution. Cleaned up as follows: $ rm -f aclocal* configure* Makefile* CHANGES CONTRIBUTORS README $ rm -rf build-aux m4 make msvc samples scons scripts test xcode - -# Clean up source files used for generating headers $ rm -f `find . -name \*\.pump` +$ mv src/* . +$ rmdir src For the license, see the file COPYING in this directory. diff --git a/utils/unittest/googletest/src/gtest-all.cc b/utils/unittest/googletest/gtest-all.cc index a67ea0fa0f..a67ea0fa0f 100644 --- a/utils/unittest/googletest/src/gtest-all.cc +++ b/utils/unittest/googletest/gtest-all.cc diff --git a/utils/unittest/googletest/src/gtest-death-test.cc b/utils/unittest/googletest/gtest-death-test.cc index b667682fb9..b667682fb9 100644 --- a/utils/unittest/googletest/src/gtest-death-test.cc +++ b/utils/unittest/googletest/gtest-death-test.cc diff --git a/utils/unittest/googletest/src/gtest-filepath.cc b/utils/unittest/googletest/gtest-filepath.cc index 640c27c313..640c27c313 100644 --- a/utils/unittest/googletest/src/gtest-filepath.cc +++ b/utils/unittest/googletest/gtest-filepath.cc diff --git a/utils/unittest/googletest/src/gtest-internal-inl.h b/utils/unittest/googletest/gtest-internal-inl.h index b8f67c1865..b8f67c1865 100644 --- a/utils/unittest/googletest/src/gtest-internal-inl.h +++ b/utils/unittest/googletest/gtest-internal-inl.h diff --git a/utils/unittest/googletest/src/gtest-port.cc b/utils/unittest/googletest/gtest-port.cc index 9878cae05d..9878cae05d 100644 --- a/utils/unittest/googletest/src/gtest-port.cc +++ b/utils/unittest/googletest/gtest-port.cc diff --git a/utils/unittest/googletest/src/gtest-test-part.cc b/utils/unittest/googletest/gtest-test-part.cc index dcd30b2584..dcd30b2584 100644 --- a/utils/unittest/googletest/src/gtest-test-part.cc +++ b/utils/unittest/googletest/gtest-test-part.cc diff --git a/utils/unittest/googletest/src/gtest-typed-test.cc b/utils/unittest/googletest/gtest-typed-test.cc index d42a1596d5..d42a1596d5 100644 --- a/utils/unittest/googletest/src/gtest-typed-test.cc +++ b/utils/unittest/googletest/gtest-typed-test.cc diff --git a/utils/unittest/googletest/src/gtest.cc b/utils/unittest/googletest/gtest.cc index a9ca334ac1..a9ca334ac1 100644 --- a/utils/unittest/googletest/src/gtest.cc +++ b/utils/unittest/googletest/gtest.cc diff --git a/utils/unittest/googletest/src/gtest_main.cc b/utils/unittest/googletest/gtest_main.cc index d20c02fdfb..d20c02fdfb 100644 --- a/utils/unittest/googletest/src/gtest_main.cc +++ b/utils/unittest/googletest/gtest_main.cc |