Bug 1796551 [wpt PR 36570] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / toolkit / profile / moz.build
blob5eb7a3053d5d329734b64fb1dd2c192564512b9a
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.ini"]
9 XPCSHELL_TESTS_MANIFESTS += ["xpcshell/xpcshell.ini"]
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 JAR_MANIFESTS += ["jar.mn"]
44 with Files("**"):
45     BUG_COMPONENT = ("Toolkit", "Startup and Profile System")