summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/libraries/gtest/library.dsc
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 21:39:19 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 21:39:19 +0000
commitc977df39e13461bf38ac3834e90f72742d6fd111 (patch)
treedf6edf9952dd1dadab03cd5fca0306ff40d4be34 /native_client_sdk/src/libraries/gtest/library.dsc
parent73d9999f6a92d5d075f9c0ada81d66750edd01eb (diff)
downloadchromium_src-c977df39e13461bf38ac3834e90f72742d6fd111.zip
chromium_src-c977df39e13461bf38ac3834e90f72742d6fd111.tar.gz
chromium_src-c977df39e13461bf38ac3834e90f72742d6fd111.tar.bz2
[NaCl SDK] Build gtest on buildbots, but don't include it in the SDK.
**For now, gtest is marked experimental because the NaCl fix to gtest has not yet been upstreamed and DEPS'd into chrome** * Test-only libraries and examples are build to the $(NACL_SDK_ROOT)testing/ directory. * Added INCLUDES to .dsc file, platform-generic way to add an include directory. BUG=none NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10824092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149929 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src/libraries/gtest/library.dsc')
-rw-r--r--native_client_sdk/src/libraries/gtest/library.dsc77
1 files changed, 77 insertions, 0 deletions
diff --git a/native_client_sdk/src/libraries/gtest/library.dsc b/native_client_sdk/src/libraries/gtest/library.dsc
new file mode 100644
index 0000000..a7405a8
--- /dev/null
+++ b/native_client_sdk/src/libraries/gtest/library.dsc
@@ -0,0 +1,77 @@
+{
+ 'TOOLS': ['newlib', 'glibc', 'pnacl', 'win'],
+ 'SEARCH': [
+ '../../../../testing/gtest/include/gtest',
+ '../../../../testing/gtest/include/gtest/internal',
+ '../../../../testing/gtest/src',
+ ],
+ 'TARGETS': [
+ {
+ 'NAME' : 'gtest',
+ 'TYPE' : 'lib',
+ 'SOURCES' : [
+ 'gtest.cc',
+ 'gtest-death-test.cc',
+ 'gtest-filepath.cc',
+ 'gtest_main.cc',
+ 'gtest-port.cc',
+ 'gtest-printers.cc',
+ 'gtest-test-part.cc',
+ 'gtest-typed-test.cc',
+ ],
+ # Ignore warning:
+ # gtest.cc:2555: error: enumeration value ‘COLOR_DEFAULT’ not handled in switch
+ 'CXXFLAGS': ['-Wno-switch-enum'],
+ 'INCLUDES': [
+ # See comment below about gtest-internal-inl.h
+ '$(NACL_SDK_ROOT)/include/gtest/internal',
+ ],
+ }
+ ],
+ 'HEADERS': [
+ {
+ 'FILES': [
+ 'gtest-death-test.h',
+ 'gtest.h',
+ 'gtest-message.h',
+ 'gtest-param-test.h',
+ 'gtest_pred_impl.h',
+ 'gtest-printers.h',
+ 'gtest_prod.h',
+ 'gtest-spi.h',
+ 'gtest-test-part.h',
+ 'gtest-typed-test.h',
+ ],
+ 'DEST': 'include/gtest',
+ },
+ {
+ 'FILES': [
+ 'gtest-death-test-internal.h',
+ 'gtest-filepath.h',
+ 'gtest-internal.h',
+ 'gtest-linked_ptr.h',
+ 'gtest-param-util-generated.h',
+ 'gtest-param-util.h',
+ 'gtest-port.h',
+ 'gtest-string.h',
+ 'gtest-tuple.h',
+ 'gtest-type-util.h',
+ ],
+ 'DEST': 'include/gtest/internal',
+ },
+ {
+ # This is cheesy, but gtest.cc includes "src/gtest-internal-inl.h". Since
+ # gtest is not installed in the SDK, I don't really care about the
+ # directory layout.
+ # TODO(binji): If we decide to include gtest, put this file in a better
+ # spot.
+ 'FILES': [
+ 'gtest-internal-inl.h',
+ ],
+ 'DEST': 'include/gtest/internal/src',
+ },
+ ],
+ 'DEST': 'testing',
+ 'NAME': 'gtest',
+ 'EXPERIMENTAL': True,
+}