1{ 2 'targets': [ 3 { 4 'target_name': 'gtest', 5 'type': 'static_library', 6 'sources': [ 7 'include/gtest/gtest-assertion-result.h', 8 'include/gtest/gtest-death-test.h', 9 'include/gtest/gtest-matchers.h', 10 'include/gtest/gtest-message.h', 11 'include/gtest/gtest-param-test.h', 12 'include/gtest/gtest-printers.h', 13 'include/gtest/gtest-spi.h', 14 'include/gtest/gtest-test-part.h', 15 'include/gtest/gtest-typed-test.h', 16 'include/gtest/gtest.h', 17 'include/gtest/gtest_pred_impl.h', 18 'include/gtest/internal/custom/gtest-port.h', 19 'include/gtest/internal/custom/gtest-printers.h', 20 'include/gtest/internal/custom/gtest.h', 21 'include/gtest/internal/gtest-death-test-internal.h', 22 'include/gtest/internal/gtest-filepath.h', 23 'include/gtest/internal/gtest-internal.h', 24 'include/gtest/internal/gtest-param-util.h', 25 'include/gtest/internal/gtest-port-arch.h', 26 'include/gtest/internal/gtest-port.h', 27 'include/gtest/internal/gtest-string.h', 28 'include/gtest/internal/gtest-type-util.h', 29 'src/gtest-all.cc', 30 'src/gtest-assertion-result.cc', 31 'src/gtest-death-test.cc', 32 'src/gtest-filepath.cc', 33 'src/gtest-internal-inl.h', 34 'src/gtest-matchers.cc', 35 'src/gtest-port.cc', 36 'src/gtest-printers.cc', 37 'src/gtest-test-part.cc', 38 'src/gtest-typed-test.cc', 39 'src/gtest.cc', 40 ], 41 'sources!': [ 42 'src/gtest-all.cc', # Not needed by our build. 43 ], 44 'include_dirs': [ 45 '.', # src 46 'include', 47 ], 48 'dependencies': [ 49 'gtest_prod', 50 ], 51 'defines': [ 52 # In order to allow regex matches in gtest to be shared between Windows 53 # and other systems, we tell gtest to always use it's internal engine. 54 'GTEST_HAS_POSIX_RE=0', 55 'GTEST_LANG_CXX11=1', 56 ], 57 'all_dependent_settings': { 58 'defines': [ 59 'GTEST_HAS_POSIX_RE=0', 60 'GTEST_LANG_CXX11=1', 61 ], 62 }, 63 'conditions': [ 64 ['OS=="android"', { 65 'defines': [ 66 'GTEST_HAS_CLONE=0', 67 ], 68 'direct_dependent_settings': { 69 'defines': [ 70 'GTEST_HAS_CLONE=0', 71 ], 72 }, 73 }], 74 ], 75 'direct_dependent_settings': { 76 'defines': [ 77 'UNIT_TEST', 78 ], 79 'include_dirs': [ 80 'include', 81 ], 82 }, 83 }, 84 { 85 'target_name': 'gtest_main', 86 'type': 'static_library', 87 'dependencies': [ 88 'gtest', 89 ], 90 'sources': [ 91 'src/gtest_main.cc', 92 ], 93 }, 94 { 95 'target_name': 'gtest_prod', 96 'type': 'none', 97 'sources': [ 98 'include/gtest/gtest_prod.h', 99 ], 100 'direct_dependent_settings': { 101 'include_dirs': [ 102 'include', 103 ], 104 }, 105 }, 106 ], 107} 108