1 { 2 'TOOLS': ['newlib', 'glibc', 'pnacl', 'win', 'linux'], 3 'SEARCH': [ 4 '.', 5 '../../../../testing/gtest/include/gtest', 6 '../../../../testing/gtest/include/gtest/internal', 7 '../../../../testing/gtest/src', 8 ], 9 'TARGETS': [ 10 { 11 'NAME' : 'gtest', 12 'TYPE' : 'lib', 13 'SOURCES' : [ 14 'gtest.cc', 15 'gtest-death-test.cc', 16 'gtest-filepath.cc', 17 'gtest_main.cc', 18 'gtest-port.cc', 19 'gtest-printers.cc', 20 'gtest-test-part.cc', 21 'gtest-typed-test.cc', 22 'nacl_gtest_dummy_sys.cc', 23 ], 24 # Ignore warnings: 25 # gtest.cc:2555: error: enumeration value COLOR_DEFAULT not handled in switch 26 # gtest-typed-test.h:239:47: error: anonymous variadic macros were introduced in C99 27 # gtest-internal-inl.h:213:8: error: private field 'pretty_' is not used 28 'CXXFLAGS': ['-Wno-switch-enum', '-Wno-variadic-macros', '-Wno-unused-private-field'], 29 'CFLAGS_GCC': ['-Wno-unused-local-typedefs'], 30 31 'INCLUDES': [ 32 # See comment below about gtest-internal-inl.h 33 '$(NACL_SDK_ROOT)/include/gtest/internal', 34 ], 35 } 36 ], 37 'HEADERS': [ 38 { 39 'FILES': [ 40 'gtest-death-test.h', 41 'gtest.h', 42 'gtest-message.h', 43 'gtest-param-test.h', 44 'gtest_pred_impl.h', 45 'gtest-printers.h', 46 'gtest_prod.h', 47 'gtest-spi.h', 48 'gtest-test-part.h', 49 'gtest-typed-test.h', 50 ], 51 'DEST': 'include/gtest', 52 }, 53 { 54 'FILES': [ 55 'gtest-death-test-internal.h', 56 'gtest-filepath.h', 57 'gtest-internal.h', 58 'gtest-linked_ptr.h', 59 'gtest-param-util-generated.h', 60 'gtest-param-util.h', 61 'gtest-port.h', 62 'gtest-string.h', 63 'gtest-tuple.h', 64 'gtest-type-util.h', 65 ], 66 'DEST': 'include/gtest/internal', 67 }, 68 { 69 # This is cheesy, but gtest.cc includes "src/gtest-internal-inl.h". Since 70 # gtest is not installed in the SDK, I don't really care about the 71 # directory layout. 72 # TODO(binji): If we decide to include gtest, put this file in a better 73 # spot. 74 'FILES': [ 75 'gtest-internal-inl.h', 76 ], 77 'DEST': 'include/gtest/internal/src', 78 }, 79 ], 80 'DEST': 'src', 81 'NAME': 'gtest', 82 } 83