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