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