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 += [
|
2021-09-20 13:09:01 +03:00
|
|
|
"/ipc/mscom/COMWrappers.cpp",
|
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"]:
|
2022-12-30 23:10:04 +03:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
"/other-licenses/nsis/Contrib/CityHash/cityhash",
|
2023-01-05 15:39:51 +03:00
|
|
|
"/toolkit/mozapps/update/common",
|
2022-12-30 23:10:04 +03:00
|
|
|
]
|
2019-01-18 02:45:37 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2022-12-30 23:10:04 +03:00
|
|
|
"/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp",
|
|
|
|
"/toolkit/mozapps/update/common/commonupdatedir.cpp",
|
2019-01-18 02:45:37 +03:00
|
|
|
"/toolkit/xre/LauncherRegistryInfo.cpp",
|
|
|
|
]
|
2021-11-18 02:03:27 +03:00
|
|
|
|
2022-06-17 03:09:49 +03:00
|
|
|
for var in ("MOZ_APP_BASENAME", "MOZ_APP_VENDOR", "MOZ_APP_DISPLAYNAME"):
|
2021-11-18 02:03:27 +03:00
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
2019-01-16 02:10:00 +03:00
|
|
|
|
2023-04-18 16:43:19 +03:00
|
|
|
DEFINES["MOZ_USE_LAUNCHER_ERROR"] = 1
|
|
|
|
|
2018-06-06 00:18:13 +03:00
|
|
|
DisableStlWrapping()
|
2019-08-30 19:34:10 +03:00
|
|
|
|
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Firefox", "Launcher Process")
|