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/.
8 BUG_COMPONENT = ("Core", "DOM: Geolocation")
10 with Files("GeolocationSystemWin.cpp"):
11 BUG_COMPONENT = ("Core", "Widget: Win32")
14 "nsGeoPositionIPCSerialiser.h",
17 EXPORTS.mozilla.dom += [
19 "GeolocationCoordinates.h",
20 "GeolocationIPCUtils.h",
21 "GeolocationPosition.h",
22 "GeolocationPositionError.h",
23 "GeolocationSystem.h",
28 "GeolocationCoordinates.cpp",
29 "GeolocationPosition.cpp",
30 "GeolocationPositionError.cpp",
37 # MinGW is missing the headers needed to build the Windows Geolocation System
38 # Permission UI so it uses the platform-agnostic version.
40 CONFIG["OS_TARGET"] == "WINNT"
41 and CONFIG["CC_TYPE"] == "clang-cl"
42 and CONFIG["MOZ_BUILD_APP"] == "browser"
45 "GeolocationSystemWin.cpp",
48 "GeolocationUIUtilsWin.sys.mjs",
53 XPIDL_SOURCES += ["nsIGeolocationUIUtilsWin.idl"]
54 XPIDL_MODULE = "dom_geolocation"
57 "GeolocationSystem.cpp",
60 include("/ipc/chromium/chromium-config.mozbuild")
68 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
70 "/dom/system/android",
72 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
76 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
78 "/dom/system/windows/location",
80 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
81 if CONFIG["MOZ_ENABLE_DBUS"]:
82 LOCAL_INCLUDES += ["/dom/system/linux"]
83 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]