Bug 1867190 - Add prefs for PHC probablities r=glandium
[gecko.git] / toolkit / profile / moz.build
blobd898c909a3daacbe3d1c8521776f64ededdf2432
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 MOCHITEST_CHROME_MANIFESTS += ["test/chrome.toml"]
9 XPCSHELL_TESTS_MANIFESTS += ["xpcshell/xpcshell.toml"]
11 if CONFIG["ENABLE_TESTS"]:
12     DIRS += ["gtest"]
14 XPIDL_SOURCES += [
15     "nsIProfileMigrator.idl",
16     "nsIProfileUnlocker.idl",
17     "nsIToolkitProfile.idl",
18     "nsIToolkitProfileService.idl",
21 XPIDL_MODULE = "toolkitprofile"
23 UNIFIED_SOURCES += ["nsProfileLock.cpp"]
25 if CONFIG["OS_ARCH"] == "WINNT":
26     UNIFIED_SOURCES += ["ProfileUnlockerWin.cpp"]
28 if CONFIG["OS_TARGET"] == "Android":
29     UNIFIED_SOURCES += ["ProfileUnlockerAndroid.cpp"]
31 UNIFIED_SOURCES += ["nsToolkitProfileService.cpp"]
33 LOCAL_INCLUDES += [
34     "../xre",
37 FINAL_LIBRARY = "xul"
39 for var in ("MOZ_APP_NAME", "MOZ_APP_BASENAME"):
40     DEFINES[var] = '"%s"' % CONFIG[var]
42 for var in ("MOZ_CREATE_LEGACY_PROFILE",):
43     if CONFIG[var]:
44         DEFINES[var] = True
46 JAR_MANIFESTS += ["jar.mn"]
48 with Files("**"):
49     BUG_COMPONENT = ("Toolkit", "Startup and Profile System")