moz.build (1173B)
1 # -*- Mode: python; 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/. 6 if CONFIG["ENABLE_TESTS"]: 7 # Export the gtest-custom files so we can override configuration options as 8 # recommended by gtest. 9 EXPORTS.gtest.internal.custom += [ 10 "gtest-custom/gtest-port.h", 11 "gtest-custom/gtest-printers.h", 12 "gtest-custom/gtest.h", 13 ] 14 EXPORTS.gmock.internal.custom += [ 15 "gmock-custom/gmock-generated-actions.h", 16 "gmock-custom/gmock-matchers.h", 17 "gmock-custom/gmock-port.h", 18 ] 19 20 EXPORTS.mozilla.gtest += [ 21 "MozAssertions.h", 22 "MozHelpers.h", 23 "WaitFor.h", 24 ] 25 26 SOURCES += [ 27 "GTestRunner.cpp", 28 "MozAssertions.cpp", 29 "MozGTestBench.cpp", 30 "MozHelpers.cpp", 31 "SanityTest.cpp", 32 ] 33 34 if CONFIG["OS_ARCH"] == "WINNT": 35 LOCAL_INCLUDES += [ 36 "/security/sandbox/chromium", 37 ] 38 39 FINAL_LIBRARY = "xul-gtest"