Source code

Revision control

Copy as Markdown

Other Tools

# 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/.↩
# Try to sort out our building/branding model into something a C↩
# preprocessor can understand↩
if CONFIG["MOZ_BRANDING_DIRECTORY"] == "browser/branding/official":↩
if CONFIG["MOZ_UPDATE_CHANNEL"] == "beta":↩
DEFINES["MOZ_BRANDING_IS_BETA"] = 1↩
else:↩
DEFINES["MOZ_BRANDING_IS_OFFICIAL"] = 1↩
elif CONFIG["MOZ_BRANDING_DIRECTORY"] == "browser/branding/nightly":↩
DEFINES["MOZ_BRANDING_IS_NIGHTLY"] = 1↩
elif CONFIG["MOZ_BRANDING_DIRECTORY"] == "browser/branding/aurora":↩
DEFINES["MOZ_BRANDING_IS_DEVEDITION"] = 1↩
else:↩
DEFINES["MOZ_BRANDING_IS_UNOFFICIAL"] = 1↩
# Only build on platforms that have WinHTTP.h (i.e. not mingw)↩
if CONFIG["OS_ARCH"] == "WINNT" and CONFIG["HAVE_WINHTTP_H"]:↩
UNIFIED_SOURCES += [↩
"../../download_firefox.cpp",↩
"../../file_sink.cpp",↩
"../../find_firefox.cpp",↩
"../../main.cpp",↩
"../../tempfile_name.cpp",↩
]↩
OS_LIBS += [↩
"advapi32",↩
"rpcrt4",↩
"shell32",↩
"winhttp",↩
]↩
DEFFILE = "desktop-launcher-test.def"
Library("desktop-launcher-test")↩
DisableStlWrapping()↩
FINAL_LIBRARY = "xul-gtest"