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