2018-06-06 00:18:13 +03:00
|
|
|
# -*- 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/.
|
|
|
|
|
|
|
|
Library("winlauncher")
|
|
|
|
|
|
|
|
FORCE_STATIC_LIB = True
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2019-02-26 00:14:07 +03:00
|
|
|
"/ipc/mscom/ProcessRuntime.cpp",
|
2021-03-13 02:38:01 +03:00
|
|
|
"/toolkit/xre/WinTokenUtils.cpp",
|
2019-03-29 22:49:22 +03:00
|
|
|
"/widget/windows/WindowsConsole.cpp",
|
2019-09-23 23:17:10 +03:00
|
|
|
"DllBlocklistInit.cpp",
|
2018-11-21 02:49:36 +03:00
|
|
|
"ErrorHandler.cpp",
|
2018-06-06 00:18:13 +03:00
|
|
|
"LauncherProcessWin.cpp",
|
|
|
|
"LaunchUnelevated.cpp",
|
2019-09-23 23:17:10 +03:00
|
|
|
"NtLoaderAPI.cpp",
|
2018-06-06 00:18:13 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
OS_LIBS += [
|
|
|
|
"oleaut32",
|
|
|
|
"ole32",
|
2019-02-26 00:14:07 +03:00
|
|
|
"rpcrt4",
|
|
|
|
"version",
|
2018-06-06 00:18:13 +03:00
|
|
|
]
|
|
|
|
|
2019-09-23 23:17:10 +03:00
|
|
|
DIRS += [
|
|
|
|
"freestanding",
|
|
|
|
]
|
|
|
|
|
|
|
|
USE_LIBS += [
|
|
|
|
"winlauncher-freestanding",
|
|
|
|
]
|
|
|
|
|
2018-06-06 00:19:30 +03:00
|
|
|
TEST_DIRS += [
|
|
|
|
"test",
|
|
|
|
]
|
|
|
|
|
2019-01-18 02:45:37 +03:00
|
|
|
if CONFIG["MOZ_LAUNCHER_PROCESS"]:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"/toolkit/xre/LauncherRegistryInfo.cpp",
|
|
|
|
]
|
|
|
|
for var in ("MOZ_APP_BASENAME", "MOZ_APP_VENDOR"):
|
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
2019-01-16 02:10:00 +03:00
|
|
|
|
2018-06-06 00:18:13 +03:00
|
|
|
DisableStlWrapping()
|
2019-08-30 19:34:10 +03:00
|
|
|
|
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Firefox", "Launcher Process")
|
2021-08-25 13:46:17 +03:00
|
|
|
|
|
|
|
REQUIRES_UNIFIED_BUILD = True
|