tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1230B)


      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 
      7 DisableStlWrapping()
      8 
      9 # Important: for CppUnitTests to be run, they also need to be added
     10 # to testing/cppunittest.ini.
     11 
     12 GeckoCppUnitTests(
     13     [
     14         "ShowSSEConfig",
     15     ],
     16     linkage=None,
     17 )
     18 
     19 CppUnitTests(
     20     [
     21         "TestBaseProfiler",
     22         "TestIntegerPrintfMacros",
     23         "TestPrintf",
     24     ]
     25 )
     26 
     27 with Files("TestBaseProfiler.cpp"):
     28     BUG_COMPONENT = ("Core", "Gecko Profiler")
     29 
     30 if CONFIG["OS_ARCH"] == "WINNT":
     31     GeckoCppUnitTests(
     32         [
     33             "TestNativeNt",
     34             "TestPEExportSection",
     35             "TestSharedMappingCommit",
     36             "TestStackCookie",
     37             "TestTimeStampWin",
     38         ],
     39         linkage=None,
     40     )
     41     OS_LIBS += [
     42         "ntdll",
     43         "version",
     44     ]
     45 
     46 if CONFIG["OS_TARGET"] == "WINNT" and CONFIG["CC_TYPE"] in ("gcc", "clang"):
     47     # This allows us to use wmain as the entry point on mingw
     48     LDFLAGS += [
     49         "-municode",
     50     ]
     51 
     52 TEST_DIRS += [
     53     "gtest",
     54 ]