Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / cocoa / moz.build
blobd0939d34c7eb196016dbc4d59144c73e29170135
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", "Widget: Cocoa")
9     SCHEDULES.exclusive = ["macosx"]
11 with Files("*TextInput*"):
12     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
14 EXPORTS += [
15     "DesktopBackgroundImage.h",
16     "MediaHardwareKeysEventSourceMac.h",
17     "MediaHardwareKeysEventSourceMacMediaCenter.h",
18     "mozView.h",
19     "nsBidiKeyboard.h",
20     "nsChangeObserver.h",
21     "nsCocoaFeatures.h",
22     "nsCocoaUtils.h",
25 UNIFIED_SOURCES += [
26     "AppearanceOverride.mm",
27     "GfxInfo.mm",
28     "MOZIconHelper.mm",
29     "MOZMenuOpeningCoordinator.mm",
30     "NativeKeyBindings.mm",
31     "NativeMenuMac.mm",
32     "NativeMenuSupport.mm",
33     "nsAppShell.mm",
34     "nsBidiKeyboard.mm",
35     "nsCocoaFeatures.mm",
36     "nsCocoaUtils.mm",
37     "nsCocoaWindow.mm",
38     "nsColorPicker.mm",
39     "nsCursorManager.mm",
40     "nsDeviceContextSpecX.mm",
41     "nsFilePicker.mm",
42     "nsLookAndFeel.mm",
43     "nsMacCursor.mm",
44     "nsMacDockSupport.mm",
45     "nsMacFinderProgress.mm",
46     "nsMacSharingService.mm",
47     "nsMacUserActivityUpdater.mm",
48     "nsMacWebAppUtils.mm",
49     "nsMenuBarX.mm",
50     "nsMenuGroupOwnerX.mm",
51     "nsMenuItemIconX.mm",
52     "nsMenuItemX.mm",
53     "nsMenuUtilsX.mm",
54     "nsMenuX.mm",
55     "nsPrintDialogX.mm",
56     "nsPrintSettingsServiceX.mm",
57     "nsPrintSettingsX.mm",
58     "nsSound.mm",
59     "nsStandaloneNativeMenu.mm",
60     "nsSystemStatusBarCocoa.mm",
61     "nsToolkit.mm",
62     "nsTouchBar.mm",
63     "nsTouchBarInput.mm",
64     "nsTouchBarInputIcon.mm",
65     "nsTouchBarUpdater.mm",
66     "nsUserIdleServiceX.mm",
67     "nsWidgetFactory.mm",
68     "nsWindowMap.mm",
69     "OSXNotificationCenter.mm",
70     "ScreenHelperCocoa.mm",
71     "TextInputHandler.mm",
72     "TextRecognition.mm",
73     "VibrancyManager.mm",
74     "ViewRegion.mm",
75     "WidgetTraceEvent.mm",
78 # These files cannot be built in unified mode because they cause symbol conflicts
79 SOURCES += [
80     "DesktopBackgroundImage.mm",
81     "MediaHardwareKeysEventSourceMac.mm",
82     "MediaHardwareKeysEventSourceMacMediaCenter.mm",
83     "MediaKeysEventSourceFactory.cpp",
84     "nsChildView.mm",
85     "nsClipboard.mm",
86     "nsDragService.mm",
87     "nsNativeThemeCocoa.mm",
90 if not CONFIG["RELEASE_OR_BETA"] or CONFIG["MOZ_DEBUG"]:
91     SOURCES += [
92         "nsSandboxViolationSink.mm",
93     ]
95 XPCOM_MANIFESTS += [
96     "components.conf",
99 include("/ipc/chromium/chromium-config.mozbuild")
101 FINAL_LIBRARY = "xul"
102 LOCAL_INCLUDES += [
103     "/dom/events",
104     "/dom/media/platforms/apple",
105     "/layout/base",
106     "/layout/forms",
107     "/layout/generic",
108     "/layout/style",
109     "/layout/xul",
110     "/widget",
111     "/widget/headless",
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",
124     "cursors/cell.png",
125     "cursors/cell@2x.png",
126     "cursors/colResize.png",
127     "cursors/colResize@2x.png",
128     "cursors/help.png",
129     "cursors/help@2x.png",
130     "cursors/move.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__(
161     "MainMenu.nib",
162     [
163         "resources/MainMenu.nib/classes.nib",
164         "resources/MainMenu.nib/info.nib",
165         "resources/MainMenu.nib/keyedobjects.nib",
166     ],
169 OS_LIBS += [
170     "-framework IOSurface",
171     "-framework Vision",
174 SPHINX_TREES["/widget/cocoa"] = "docs"