2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:05:39 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.gtest += [
|
2014-04-07 23:23:03 +04:00
|
|
|
'MozGtestFriend.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2018-06-22 14:32:05 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Testing", "GTest")
|
|
|
|
SCHEDULES.exclusive = ['gtest']
|
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
2017-03-27 22:51:16 +03:00
|
|
|
gtest_exports = [
|
2017-10-10 09:48:26 +03:00
|
|
|
'benchmark/BlackBox.h',
|
2014-04-07 23:23:03 +04:00
|
|
|
'gtest/include/gtest/gtest-death-test.h',
|
|
|
|
'gtest/include/gtest/gtest-message.h',
|
|
|
|
'gtest/include/gtest/gtest-param-test.h',
|
|
|
|
'gtest/include/gtest/gtest-printers.h',
|
|
|
|
'gtest/include/gtest/gtest-spi.h',
|
|
|
|
'gtest/include/gtest/gtest-test-part.h',
|
|
|
|
'gtest/include/gtest/gtest-typed-test.h',
|
|
|
|
'gtest/include/gtest/gtest.h',
|
|
|
|
'gtest/include/gtest/gtest_pred_impl.h',
|
|
|
|
'gtest/include/gtest/gtest_prod.h',
|
2016-03-16 21:20:33 +03:00
|
|
|
'mozilla/MozGTestBench.h',
|
2014-04-07 23:23:03 +04:00
|
|
|
]
|
2017-03-27 22:51:16 +03:00
|
|
|
EXPORTS.gtest += gtest_exports
|
|
|
|
|
|
|
|
# webrtc.org unit tests use this include path
|
|
|
|
EXPORTS.testing.gtest.include.gtest += gtest_exports
|
2013-04-16 23:24:43 +04:00
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
# GTest internal are exposed in gtest.h. See comment in gtest.h
|
|
|
|
EXPORTS.gtest.internal += [
|
|
|
|
'gtest/include/gtest/internal/gtest-death-test-internal.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-filepath.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-internal.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-linked_ptr.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-param-util-generated.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-param-util.h',
|
2017-03-03 22:54:05 +03:00
|
|
|
'gtest/include/gtest/internal/gtest-port-arch.h',
|
2014-04-07 23:23:03 +04:00
|
|
|
'gtest/include/gtest/internal/gtest-port.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-string.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-tuple.h',
|
|
|
|
'gtest/include/gtest/internal/gtest-type-util.h',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
2017-03-03 22:54:05 +03:00
|
|
|
EXPORTS.gtest.internal.custom += [
|
|
|
|
'gtest/include/gtest/internal/custom/gtest-port.h',
|
|
|
|
'gtest/include/gtest/internal/custom/gtest-printers.h',
|
|
|
|
]
|
|
|
|
|
2017-03-27 22:51:16 +03:00
|
|
|
gmock_exports = [
|
2014-04-07 23:23:03 +04:00
|
|
|
'gmock/include/gmock/gmock-actions.h',
|
|
|
|
'gmock/include/gmock/gmock-cardinalities.h',
|
|
|
|
'gmock/include/gmock/gmock-generated-actions.h',
|
|
|
|
'gmock/include/gmock/gmock-generated-function-mockers.h',
|
|
|
|
'gmock/include/gmock/gmock-generated-matchers.h',
|
|
|
|
'gmock/include/gmock/gmock-generated-nice-strict.h',
|
|
|
|
'gmock/include/gmock/gmock-matchers.h',
|
|
|
|
'gmock/include/gmock/gmock-more-actions.h',
|
2017-03-03 22:54:05 +03:00
|
|
|
'gmock/include/gmock/gmock-more-matchers.h',
|
2014-04-07 23:23:03 +04:00
|
|
|
'gmock/include/gmock/gmock-spec-builders.h',
|
|
|
|
'gmock/include/gmock/gmock.h',
|
|
|
|
]
|
2017-03-27 22:51:16 +03:00
|
|
|
EXPORTS.gmock += gmock_exports
|
|
|
|
|
|
|
|
# webrtc.org unit tests use this include path
|
|
|
|
EXPORTS.testing.gmock.include.gmock += gmock_exports
|
2013-04-16 23:24:43 +04:00
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
# gmock also includes internal interfaces in it's public header
|
|
|
|
EXPORTS.gmock.internal += [
|
|
|
|
'gmock/include/gmock/internal/gmock-generated-internal-utils.h',
|
|
|
|
'gmock/include/gmock/internal/gmock-internal-utils.h',
|
|
|
|
'gmock/include/gmock/internal/gmock-port.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2017-03-03 22:54:05 +03:00
|
|
|
EXPORTS.gmock.internal.custom += [
|
|
|
|
'gmock/include/gmock/internal/custom/gmock-generated-actions.h',
|
|
|
|
'gmock/include/gmock/internal/custom/gmock-matchers.h',
|
|
|
|
'gmock/include/gmock/internal/custom/gmock-port.h',
|
|
|
|
]
|
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
SOURCES += [
|
|
|
|
'gmock/src/gmock-all.cc',
|
|
|
|
'gtest/src/gtest-all.cc',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('gtest')
|
2013-06-22 18:33:31 +04:00
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'gmock',
|
|
|
|
'gmock/include',
|
|
|
|
'gtest',
|
|
|
|
'gtest/include',
|
|
|
|
]
|
2014-02-16 00:24:59 +04:00
|
|
|
|
2015-11-26 03:50:52 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/security/sandbox/chromium',
|
2017-03-03 22:54:05 +03:00
|
|
|
]
|
|
|
|
|
2017-10-10 09:48:26 +03:00
|
|
|
DIRS += ['benchmark', 'mozilla']
|
2017-03-03 22:54:05 +03:00
|
|
|
|
2014-04-07 23:23:03 +04:00
|
|
|
FINAL_LIBRARY = 'xul-gtest'
|