moz.build 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. EXPORTS.gtest += [
  6. 'MozGtestFriend.h',
  7. ]
  8. if CONFIG['ENABLE_TESTS']:
  9. EXPORTS.gtest += [
  10. 'gtest/include/gtest/gtest-death-test.h',
  11. 'gtest/include/gtest/gtest-message.h',
  12. 'gtest/include/gtest/gtest-param-test.h',
  13. 'gtest/include/gtest/gtest-printers.h',
  14. 'gtest/include/gtest/gtest-spi.h',
  15. 'gtest/include/gtest/gtest-test-part.h',
  16. 'gtest/include/gtest/gtest-typed-test.h',
  17. 'gtest/include/gtest/gtest.h',
  18. 'gtest/include/gtest/gtest_pred_impl.h',
  19. 'gtest/include/gtest/gtest_prod.h',
  20. 'mozilla/MozGTestBench.h',
  21. ]
  22. # GTest internal are exposed in gtest.h. See comment in gtest.h
  23. EXPORTS.gtest.internal += [
  24. 'gtest/include/gtest/internal/gtest-death-test-internal.h',
  25. 'gtest/include/gtest/internal/gtest-filepath.h',
  26. 'gtest/include/gtest/internal/gtest-internal.h',
  27. 'gtest/include/gtest/internal/gtest-linked_ptr.h',
  28. 'gtest/include/gtest/internal/gtest-param-util-generated.h',
  29. 'gtest/include/gtest/internal/gtest-param-util.h',
  30. 'gtest/include/gtest/internal/gtest-port.h',
  31. 'gtest/include/gtest/internal/gtest-string.h',
  32. 'gtest/include/gtest/internal/gtest-tuple.h',
  33. 'gtest/include/gtest/internal/gtest-type-util.h',
  34. ]
  35. EXPORTS.gmock += [
  36. 'gmock/include/gmock/gmock-actions.h',
  37. 'gmock/include/gmock/gmock-cardinalities.h',
  38. 'gmock/include/gmock/gmock-generated-actions.h',
  39. 'gmock/include/gmock/gmock-generated-function-mockers.h',
  40. 'gmock/include/gmock/gmock-generated-matchers.h',
  41. 'gmock/include/gmock/gmock-generated-nice-strict.h',
  42. 'gmock/include/gmock/gmock-matchers.h',
  43. 'gmock/include/gmock/gmock-more-actions.h',
  44. 'gmock/include/gmock/gmock-spec-builders.h',
  45. 'gmock/include/gmock/gmock.h',
  46. ]
  47. # gmock also includes internal interfaces in it's public header
  48. EXPORTS.gmock.internal += [
  49. 'gmock/include/gmock/internal/gmock-generated-internal-utils.h',
  50. 'gmock/include/gmock/internal/gmock-internal-utils.h',
  51. 'gmock/include/gmock/internal/gmock-port.h',
  52. ]
  53. SOURCES += [
  54. 'gmock/src/gmock-all.cc',
  55. 'gtest/src/gtest-all.cc',
  56. 'mozilla/GTestRunner.cpp',
  57. 'mozilla/MozGTestBench.cpp',
  58. ]
  59. Library('gtest')
  60. SOURCES += [
  61. 'mozilla/SanityTest.cpp',
  62. ]
  63. LOCAL_INCLUDES += [
  64. 'gmock',
  65. 'gmock/include',
  66. 'gtest',
  67. 'gtest/include',
  68. ]
  69. FINAL_LIBRARY = 'xul-gtest'