summaryrefslogtreecommitdiffstats
path: root/third_party/googletest/moz.build
blob: 2d36b89489f1d2139e76fde3365307f06d30737f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# !!! THIS FILE IS AUTOGENERATED USING gen_moz_build.py DO NOT EDIT !!!

with Files("**"):
    BUG_COMPONENT = ("Testing", "GTest")
    SCHEDULES.exclusive = ["gtest"]

if CONFIG["ENABLE_TESTS"]:

    EXPORTS.gtest.internal += [
        "googletest/include/gtest/internal/gtest-death-test-internal.h",
        "googletest/include/gtest/internal/gtest-filepath.h",
        "googletest/include/gtest/internal/gtest-internal.h",
        "googletest/include/gtest/internal/gtest-param-util.h",
        "googletest/include/gtest/internal/gtest-port-arch.h",
        "googletest/include/gtest/internal/gtest-port.h",
        "googletest/include/gtest/internal/gtest-string.h",
        "googletest/include/gtest/internal/gtest-type-util.h",
    ]
    EXPORTS.gtest += [
        "googletest/include/gtest/gtest-assertion-result.h",
        "googletest/include/gtest/gtest-death-test.h",
        "googletest/include/gtest/gtest-matchers.h",
        "googletest/include/gtest/gtest-message.h",
        "googletest/include/gtest/gtest-param-test.h",
        "googletest/include/gtest/gtest-printers.h",
        "googletest/include/gtest/gtest-spi.h",
        "googletest/include/gtest/gtest-test-part.h",
        "googletest/include/gtest/gtest-typed-test.h",
        "googletest/include/gtest/gtest.h",
        "googletest/include/gtest/gtest_pred_impl.h",
        "googletest/include/gtest/gtest_prod.h",
    ]
    
    EXPORTS.gmock.internal += [
        "googlemock/include/gmock/internal/gmock-internal-utils.h",
        "googlemock/include/gmock/internal/gmock-port.h",
        "googlemock/include/gmock/internal/gmock-pp.h",
    ]
    EXPORTS.gmock += [
        "googlemock/include/gmock/gmock-actions.h",
        "googlemock/include/gmock/gmock-cardinalities.h",
        "googlemock/include/gmock/gmock-function-mocker.h",
        "googlemock/include/gmock/gmock-matchers.h",
        "googlemock/include/gmock/gmock-more-actions.h",
        "googlemock/include/gmock/gmock-more-matchers.h",
        "googlemock/include/gmock/gmock-nice-strict.h",
        "googlemock/include/gmock/gmock-spec-builders.h",
        "googlemock/include/gmock/gmock.h",
    ]
    
    EXPORTS.testing.gtest.include.gtest.internal += [
        "googletest/include/gtest/internal/gtest-death-test-internal.h",
        "googletest/include/gtest/internal/gtest-filepath.h",
        "googletest/include/gtest/internal/gtest-internal.h",
        "googletest/include/gtest/internal/gtest-param-util.h",
        "googletest/include/gtest/internal/gtest-port-arch.h",
        "googletest/include/gtest/internal/gtest-port.h",
        "googletest/include/gtest/internal/gtest-string.h",
        "googletest/include/gtest/internal/gtest-type-util.h",
    ]
    EXPORTS.testing.gtest.include.gtest += [
        "googletest/include/gtest/gtest-assertion-result.h",
        "googletest/include/gtest/gtest-death-test.h",
        "googletest/include/gtest/gtest-matchers.h",
        "googletest/include/gtest/gtest-message.h",
        "googletest/include/gtest/gtest-param-test.h",
        "googletest/include/gtest/gtest-printers.h",
        "googletest/include/gtest/gtest-spi.h",
        "googletest/include/gtest/gtest-test-part.h",
        "googletest/include/gtest/gtest-typed-test.h",
        "googletest/include/gtest/gtest.h",
        "googletest/include/gtest/gtest_pred_impl.h",
        "googletest/include/gtest/gtest_prod.h",
    ]
    
    EXPORTS.testing.gmock.include.gmock.internal += [
        "googlemock/include/gmock/internal/gmock-internal-utils.h",
        "googlemock/include/gmock/internal/gmock-port.h",
        "googlemock/include/gmock/internal/gmock-pp.h",
    ]
    EXPORTS.testing.gmock.include.gmock += [
        "googlemock/include/gmock/gmock-actions.h",
        "googlemock/include/gmock/gmock-cardinalities.h",
        "googlemock/include/gmock/gmock-function-mocker.h",
        "googlemock/include/gmock/gmock-matchers.h",
        "googlemock/include/gmock/gmock-more-actions.h",
        "googlemock/include/gmock/gmock-more-matchers.h",
        "googlemock/include/gmock/gmock-nice-strict.h",
        "googlemock/include/gmock/gmock-spec-builders.h",
        "googlemock/include/gmock/gmock.h",
    ]
    

    SOURCES += [
        "googlemock/src/gmock-all.cc",
        "googletest/src/gtest-all.cc",
    ]

    Library("gtest")

    LOCAL_INCLUDES += [
        "googlemock",
        "googletest",
    ]

    if CONFIG["OS_ARCH"] == "WINNT":
        DEFINES["UNICODE"] = True

    FINAL_LIBRARY = "xul-gtest"