Bug 1732409 let fake:true getUserMedia() parameter override loopback prefs r=jib
[gecko.git] / dom / geolocation / moz.build
blob5c7f7471818cf21e310c6a736a909426d7a578f8
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 = ("Core", "DOM: Geolocation")
10 EXPORTS += [
11     "nsGeoPositionIPCSerialiser.h",
14 EXPORTS.mozilla.dom += [
15     "Geolocation.h",
16     "GeolocationCoordinates.h",
17     "GeolocationPosition.h",
18     "GeolocationPositionError.h",
21 SOURCES += [
22     "Geolocation.cpp",
23     "GeolocationCoordinates.cpp",
24     "GeolocationPosition.cpp",
25     "GeolocationPositionError.cpp",
28 UNIFIED_SOURCES += [
29     "MLSFallback.cpp",
32 include("/ipc/chromium/chromium-config.mozbuild")
34 FINAL_LIBRARY = "xul"
35 LOCAL_INCLUDES += [
36     "/dom/base",
37     "/dom/ipc",
40 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
41     LOCAL_INCLUDES += [
42         "/dom/system/android",
43     ]
44 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
45     LOCAL_INCLUDES += [
46         "/dom/system/mac",
47     ]
48 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
49     LOCAL_INCLUDES += [
50         "/dom/system/windows",
51     ]
52 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
53     if CONFIG["MOZ_GPSD"]:
54         LOCAL_INCLUDES += [
55             "/dom/system/linux",
56         ]
57         DEFINES["MOZ_GPSD"] = True