Bug 1735252 [wpt PR 31197] - Regenerate WPT certificates, a=testonly
[gecko.git] / toolkit / components / remote / moz.build
blobc1853a9f4d980cfd6f5ac0d07e6dcca1de351cda
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 with Files("**"):
8     BUG_COMPONENT = ("Toolkit", "Startup and Profile System")
10 SOURCES += [
11     "nsRemoteService.cpp",
14 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
15     SOURCES += [
16         "nsUnixRemoteServer.cpp",
17         "RemoteUtils.cpp",
18     ]
19     if CONFIG["MOZ_ENABLE_DBUS"]:
20         SOURCES += [
21             "nsDBusRemoteClient.cpp",
22             "nsDBusRemoteServer.cpp",
23         ]
24         CXXFLAGS += CONFIG["MOZ_DBUS_GLIB_CFLAGS"]
25         EXPORTS += [
26             "nsUnixRemoteServer.h",
27             "RemoteUtils.h",
28         ]
29     else:
30         SOURCES += [
31             "nsGTKRemoteServer.cpp",
32             "nsXRemoteClient.cpp",
33             "nsXRemoteServer.cpp",
34         ]
35     CXXFLAGS += CONFIG["TK_CFLAGS"]
37 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
38     SOURCES += [
39         "nsWinRemoteClient.cpp",
40         "nsWinRemoteServer.cpp",
41         "WinRemoteMessage.cpp",
42     ]
43 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
44     SOURCES += [
45         "nsMacRemoteClient.mm",
46         "nsMacRemoteServer.mm",
47     ]
49 LOCAL_INCLUDES += [
50     "../../profile",
51     "../../xre",
53 FINAL_LIBRARY = "xul"