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", "Widget: Cocoa")
9 SCHEDULES.exclusive = ["macosx"]
11 with Files("*TextInput*"):
12 BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
15 "DesktopBackgroundImage.h",
16 "MediaHardwareKeysEventSourceMac.h",
17 "MediaHardwareKeysEventSourceMacMediaCenter.h",
26 "AppearanceOverride.mm",
29 "MOZMenuOpeningCoordinator.mm",
30 "NativeKeyBindings.mm",
32 "NativeMenuSupport.mm",
40 "nsDeviceContextSpecX.mm",
44 "nsMacDockSupport.mm",
45 "nsMacFinderProgress.mm",
46 "nsMacSharingService.mm",
47 "nsMacUserActivityUpdater.mm",
48 "nsMacWebAppUtils.mm",
50 "nsMenuGroupOwnerX.mm",
56 "nsPrintSettingsServiceX.mm",
57 "nsPrintSettingsX.mm",
59 "nsStandaloneNativeMenu.mm",
60 "nsSystemStatusBarCocoa.mm",
64 "nsTouchBarInputIcon.mm",
65 "nsTouchBarUpdater.mm",
66 "nsUserIdleServiceX.mm",
69 "OSXNotificationCenter.mm",
70 "ScreenHelperCocoa.mm",
71 "TextInputHandler.mm",
75 "WidgetTraceEvent.mm",
78 # These files cannot be built in unified mode because they cause symbol conflicts
80 "DesktopBackgroundImage.mm",
81 "MediaHardwareKeysEventSourceMac.mm",
82 "MediaHardwareKeysEventSourceMacMediaCenter.mm",
83 "MediaKeysEventSourceFactory.cpp",
87 "nsNativeThemeCocoa.mm",
90 if not CONFIG["RELEASE_OR_BETA"] or CONFIG["MOZ_DEBUG"]:
92 "nsSandboxViolationSink.mm",
99 include("/ipc/chromium/chromium-config.mozbuild")
101 FINAL_LIBRARY = "xul"
104 "/dom/media/platforms/apple",
114 if CONFIG["MOZ_ENABLE_SKIA_PDF"]:
115 # Skia includes because widget code includes PrintTargetSkPDF.h, and that
116 # includes skia headers.
117 LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
119 RESOURCE_FILES.cursors += [
120 "cursors/arrowN.png",
121 "cursors/arrowN@2x.png",
122 "cursors/arrowS.png",
123 "cursors/arrowS@2x.png",
125 "cursors/cell@2x.png",
126 "cursors/colResize.png",
127 "cursors/colResize@2x.png",
129 "cursors/help@2x.png",
131 "cursors/move@2x.png",
132 "cursors/rowResize.png",
133 "cursors/rowResize@2x.png",
134 "cursors/sizeNE.png",
135 "cursors/sizeNE@2x.png",
136 "cursors/sizeNESW.png",
137 "cursors/sizeNESW@2x.png",
138 "cursors/sizeNS.png",
139 "cursors/sizeNS@2x.png",
140 "cursors/sizeNW.png",
141 "cursors/sizeNW@2x.png",
142 "cursors/sizeNWSE.png",
143 "cursors/sizeNWSE@2x.png",
144 "cursors/sizeSE.png",
145 "cursors/sizeSE@2x.png",
146 "cursors/sizeSW.png",
147 "cursors/sizeSW@2x.png",
148 "cursors/vtIBeam.png",
149 "cursors/vtIBeam@2x.png",
150 "cursors/zoomIn.png",
151 "cursors/zoomIn@2x.png",
152 "cursors/zoomOut.png",
153 "cursors/zoomOut@2x.png",
156 # These resources go in $(DIST)/bin/res/MainMenu.nib, but we can't use a magic
157 # RESOURCE_FILES.MainMenu.nib attribute, since that would put the files in
158 # $(DIST)/bin/res/MainMenu/nib. Instead, we call __setattr__ directly to create
159 # an attribute with the correct name.
160 RESOURCE_FILES.__setattr__(
163 "resources/MainMenu.nib/classes.nib",
164 "resources/MainMenu.nib/info.nib",
165 "resources/MainMenu.nib/keyedobjects.nib",
170 "-framework IOSurface",
174 SPHINX_TREES["/widget/cocoa"] = "docs"