tor-browser

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

moz.build (1468B)


      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 Library("winlauncher")
      8 
      9 FORCE_STATIC_LIB = True
     10 
     11 UNIFIED_SOURCES += [
     12     "/ipc/mscom/COMWrappers.cpp",
     13     "/ipc/mscom/ProcessRuntime.cpp",
     14     "/toolkit/xre/WinTokenUtils.cpp",
     15     "/widget/windows/WindowsConsole.cpp",
     16     "DllBlocklistInit.cpp",
     17     "ErrorHandler.cpp",
     18     "LauncherProcessWin.cpp",
     19     "LaunchUnelevated.cpp",
     20     "NtLoaderAPI.cpp",
     21 ]
     22 
     23 OS_LIBS += [
     24     "oleaut32",
     25     "ole32",
     26     "rpcrt4",
     27     "shlwapi",
     28     "version",
     29 ]
     30 
     31 DIRS += [
     32     "freestanding",
     33 ]
     34 
     35 USE_LIBS += [
     36     "winlauncher-freestanding",
     37 ]
     38 
     39 TEST_DIRS += [
     40     "test",
     41 ]
     42 
     43 if CONFIG["MOZ_LAUNCHER_PROCESS"]:
     44     LOCAL_INCLUDES += [
     45         "/other-licenses/nsis/Contrib/CityHash/cityhash",
     46         "/toolkit/mozapps/update/common",
     47     ]
     48     UNIFIED_SOURCES += [
     49         "/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp",
     50         "/toolkit/mozapps/update/common/commonupdatedir.cpp",
     51         "/toolkit/xre/LauncherRegistryInfo.cpp",
     52     ]
     53 
     54 for var in ("MOZ_APP_BASENAME", "MOZ_APP_VENDOR", "MOZ_APP_DISPLAYNAME"):
     55     DEFINES[var] = '"%s"' % CONFIG[var]
     56 
     57 DEFINES["MOZ_USE_LAUNCHER_ERROR"] = 1
     58 
     59 DisableStlWrapping()
     60 
     61 with Files("**"):
     62     BUG_COMPONENT = ("Firefox", "Launcher Process")