Added infrastructure for adding gtest-based tests. I need to use it for the new preprocessor.
Review URL: https://codereview.appspot.com/5988069
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1024 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/DEPS b/DEPS
index b50d4e3..b918c71 100644
--- a/DEPS
+++ b/DEPS
@@ -1,6 +1,9 @@
deps = {
"trunk/third_party/gyp":
"http://gyp.googlecode.com/svn/trunk@1080",
+
+ "trunk/third_party/googletest":
+ "http://googletest.googlecode.com/svn/trunk@573", #release 1.6.0
}
hooks = [
diff --git a/build/all.gyp b/build/all.gyp
index fbc8eca..fff9998 100644
--- a/build/all.gyp
+++ b/build/all.gyp
@@ -14,7 +14,7 @@
# manually maintained ones.
'../samples/build_samples.gyp:*',
'../src/build_angle.gyp:*',
- # '../tests/tests.gyp:*',
+ '../tests/build_tests.gyp:*',
],
},
],
diff --git a/tests/build_tests.gyp b/tests/build_tests.gyp
new file mode 100644
index 0000000..4c9f840
--- /dev/null
+++ b/tests/build_tests.gyp
@@ -0,0 +1,36 @@
+# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'gtest',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../third_party/googletest',
+ '../third_party/googletest/include',
+ ],
+ 'sources': [
+ '../third_party/googletest/src/gtest-all.cc',
+ ],
+ },
+ {
+ 'target_name': 'pp_tests',
+ 'type': 'executable',
+ 'dependencies': ['gtest'],
+ 'include_dirs': [
+ '../third_party/googletest/include',
+ ],
+ 'sources': [
+ '../third_party/googletest/src/gtest_main.cc',
+ ],
+ },
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: