Bug 1944416: Restore individual tabs from closed groups in closed windows r=dao,sessi...
[gecko.git] / browser / moz.configure
blobc3ebe718fdea69caa6dc9da4a4063e24eade9df2
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/.
7 imply_option("MOZ_PLACES", True)
8 imply_option("MOZ_SERVICES_HEALTHREPORT", True)
9 imply_option("MOZ_SERVICES_SYNC", True)
10 imply_option("MOZ_DEDICATED_PROFILES", True)
11 imply_option("MOZ_BLOCK_PROFILE_DOWNGRADE", True)
12 imply_option("MOZ_NORMANDY", True)
13 imply_option("MOZ_PROFILE_MIGRATOR", True)
16 imply_option("MOZ_APP_VENDOR", "Mozilla")
17 imply_option("MOZ_APP_ID", "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}")
18 # Include the DevTools client, not just the server (which is the default)
19 imply_option("MOZ_DEVTOOLS", "all")
20 imply_option("BROWSER_CHROME_URL", "chrome://browser/content/browser.xhtml")
22 option(
23     "--enable-browser-newtab-as-addon",
24     help="Enable packaging newtab as a built-in addon",
26 set_config("BROWSER_NEWTAB_AS_ADDON", True, when="--enable-browser-newtab-as-addon")
28 with only_when(target_has_linux_kernel & compile_environment):
29     option(env="MOZ_NO_PIE_COMPAT", help="Enable non-PIE wrapper")
31     set_config("MOZ_NO_PIE_COMPAT", depends_if("MOZ_NO_PIE_COMPAT")(lambda _: True))
34 @depends(target, update_channel, have_64_bit, moz_debug, "MOZ_AUTOMATION")
35 @imports(_from="os", _import="environ")
36 def requires_stub_installer(
37     target, update_channel, have_64_bit, moz_debug, moz_automation
39     if target.kernel != "WINNT":
40         return False
41     if have_64_bit:
42         return False
43     if update_channel not in ("nightly", "nightly-try", "aurora", "beta", "release"):
44         return False
46     if moz_debug:
47         return False
49     # Expect USE_STUB_INSTALLER from taskcluster for downstream task consistency
50     if moz_automation and not environ.get("USE_STUB_INSTALLER"):
51         die(
52             "STUB installer expected to be enabled but "
53             "USE_STUB_INSTALLER is not specified in the environment"
54         )
56     return True
59 imply_option("MOZ_STUB_INSTALLER", True, when=requires_stub_installer)
61 include("../toolkit/moz.configure")