Index: native_client_sdk/src/libraries/gtest/library.dsc |
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 0000000000000000000000000000000000000000..539b8f90044bd4f4762c66bed6e5ab2ec821deec |
--- /dev/null |
+++ b/native_client_sdk/src/libraries/gtest/library.dsc |
@@ -0,0 +1,76 @@ |
+{ |
+ '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', |
+} |