2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-04-14 09:54:36 +00:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Widget: Cocoa")
|
2020-05-15 18:48:38 +00:00
|
|
|
SCHEDULES.exclusive = ["macosx"]
|
2017-04-14 09:54:36 +00:00
|
|
|
|
2020-10-12 12:26:45 +00:00
|
|
|
with Files("*TextInput*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
2013-03-12 17:17:46 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
"nsPIWidgetCocoa.idl",
|
|
|
|
]
|
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = "widget_cocoa"
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
2019-07-17 20:46:04 +00:00
|
|
|
"CFTypeRefPtr.h",
|
2020-04-21 19:57:29 +00:00
|
|
|
"DesktopBackgroundImage.h",
|
2019-12-06 20:55:26 +00:00
|
|
|
"MediaHardwareKeysEventSourceMac.h",
|
2019-12-31 01:41:33 +00:00
|
|
|
"MediaHardwareKeysEventSourceMacMediaCenter.h",
|
2013-04-16 19:24:43 +00:00
|
|
|
"mozView.h",
|
2015-04-10 22:18:05 +00:00
|
|
|
"nsBidiKeyboard.h",
|
2013-04-16 19:24:43 +00:00
|
|
|
"nsChangeObserver.h",
|
|
|
|
"nsCocoaFeatures.h",
|
|
|
|
"nsCocoaUtils.h",
|
|
|
|
]
|
|
|
|
|
2021-02-11 19:43:58 +00:00
|
|
|
EXPORTS.mozilla.widget += [
|
|
|
|
"NativeMenuSupport.h",
|
|
|
|
]
|
|
|
|
|
2013-11-17 07:27:11 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-06 06:40:41 +00:00
|
|
|
"GfxInfo.mm",
|
2020-09-30 21:14:02 +00:00
|
|
|
"IconLoaderHelperCocoa.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"NativeKeyBindings.mm",
|
2021-02-11 19:43:58 +00:00
|
|
|
"NativeMenuSupport.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsAppShell.mm",
|
|
|
|
"nsBidiKeyboard.mm",
|
|
|
|
"nsCocoaFeatures.mm",
|
|
|
|
"nsCocoaUtils.mm",
|
|
|
|
"nsCocoaWindow.mm",
|
|
|
|
"nsColorPicker.mm",
|
|
|
|
"nsCursorManager.mm",
|
|
|
|
"nsDeviceContextSpecX.mm",
|
|
|
|
"nsFilePicker.mm",
|
|
|
|
"nsLookAndFeel.mm",
|
|
|
|
"nsMacCursor.mm",
|
|
|
|
"nsMacDockSupport.mm",
|
2019-06-19 18:48:49 +00:00
|
|
|
"nsMacFinderProgress.mm",
|
2018-03-12 09:16:51 +00:00
|
|
|
"nsMacSharingService.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsMacWebAppUtils.mm",
|
|
|
|
"nsMenuBarX.mm",
|
|
|
|
"nsMenuGroupOwnerX.mm",
|
|
|
|
"nsMenuItemIconX.mm",
|
|
|
|
"nsMenuItemX.mm",
|
|
|
|
"nsMenuUtilsX.mm",
|
|
|
|
"nsMenuX.mm",
|
2020-07-30 17:02:02 +00:00
|
|
|
"nsNativeBasicThemeCocoa.cpp",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsPrintDialogX.mm",
|
2017-12-19 10:06:39 +00:00
|
|
|
"nsPrintSettingsServiceX.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsPrintSettingsX.mm",
|
|
|
|
"nsSound.mm",
|
|
|
|
"nsStandaloneNativeMenu.mm",
|
2014-07-18 19:06:13 +00:00
|
|
|
"nsSystemStatusBarCocoa.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsToolkit.mm",
|
2019-01-22 17:13:33 +00:00
|
|
|
"nsTouchBar.mm",
|
2019-12-31 20:26:00 +00:00
|
|
|
"nsTouchBarInput.mm",
|
2019-10-07 18:37:15 +00:00
|
|
|
"nsTouchBarInputIcon.mm",
|
2019-01-22 17:13:33 +00:00
|
|
|
"nsTouchBarUpdater.mm",
|
2020-07-20 16:06:59 +00:00
|
|
|
"nsUserIdleServiceX.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
"nsWidgetFactory.mm",
|
|
|
|
"nsWindowMap.mm",
|
2013-12-05 23:05:10 +00:00
|
|
|
"OSXNotificationCenter.mm",
|
2017-03-09 11:34:49 +00:00
|
|
|
"ScreenHelperCocoa.mm",
|
2015-08-27 20:07:59 +00:00
|
|
|
"SwipeTracker.mm",
|
2014-10-08 20:19:14 +00:00
|
|
|
"TextInputHandler.mm",
|
2014-08-28 00:15:33 +00:00
|
|
|
"VibrancyManager.mm",
|
2016-07-16 21:07:45 +00:00
|
|
|
"ViewRegion.mm",
|
2013-10-23 23:05:43 +00:00
|
|
|
"WidgetTraceEvent.mm",
|
2013-09-06 06:40:41 +00:00
|
|
|
]
|
|
|
|
|
2014-10-08 20:19:14 +00:00
|
|
|
# These files cannot be built in unified mode because they cause symbol conflicts
|
2013-11-23 16:21:33 +00:00
|
|
|
SOURCES += [
|
2020-04-21 19:57:29 +00:00
|
|
|
"DesktopBackgroundImage.mm",
|
2019-12-06 20:55:26 +00:00
|
|
|
"MediaHardwareKeysEventSourceMac.mm",
|
2019-12-31 01:41:33 +00:00
|
|
|
"MediaHardwareKeysEventSourceMacMediaCenter.mm",
|
2019-12-06 20:55:26 +00:00
|
|
|
"MediaKeysEventSourceFactory.cpp",
|
2013-11-23 16:21:33 +00:00
|
|
|
"nsChildView.mm",
|
|
|
|
"nsClipboard.mm",
|
2015-08-27 20:07:59 +00:00
|
|
|
"nsDragService.mm",
|
|
|
|
"nsNativeThemeCocoa.mm",
|
2013-11-23 16:21:33 +00:00
|
|
|
]
|
|
|
|
|
2016-10-08 09:14:49 +00:00
|
|
|
if not CONFIG["RELEASE_OR_BETA"] or CONFIG["MOZ_DEBUG"]:
|
2015-07-28 20:19:55 +00:00
|
|
|
SOURCES += [
|
|
|
|
"nsSandboxViolationSink.mm",
|
|
|
|
]
|
|
|
|
|
2020-07-09 21:42:25 +00:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
"components.conf",
|
|
|
|
]
|
|
|
|
|
2014-01-23 14:31:12 +00:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = "xul"
|
2013-11-28 14:17:25 +00:00
|
|
|
LOCAL_INCLUDES += [
|
2019-09-17 22:13:36 +00:00
|
|
|
"/dom/media/platforms/apple",
|
2018-12-10 22:41:46 +00:00
|
|
|
"/layout/base",
|
2013-11-28 14:17:25 +00:00
|
|
|
"/layout/forms",
|
|
|
|
"/layout/generic",
|
2015-10-26 21:37:32 +00:00
|
|
|
"/layout/style",
|
2013-12-04 01:06:16 +00:00
|
|
|
"/layout/xul",
|
2014-10-23 17:16:45 +00:00
|
|
|
"/widget",
|
2017-07-03 22:33:16 +00:00
|
|
|
"/widget/headless",
|
2013-11-28 14:17:25 +00:00
|
|
|
]
|
|
|
|
|
2016-11-29 07:55:19 +00:00
|
|
|
if CONFIG["MOZ_ENABLE_SKIA_PDF"]:
|
2018-10-31 02:17:34 +00:00
|
|
|
# Skia includes because widget code includes PrintTargetSkPDF.h, and that
|
|
|
|
# includes skia headers.
|
|
|
|
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
2016-11-29 07:55:19 +00:00
|
|
|
|
2013-11-05 18:37:54 +00:00
|
|
|
RESOURCE_FILES.cursors += [
|
|
|
|
"cursors/arrowN.png",
|
|
|
|
"cursors/arrowN@2x.png",
|
|
|
|
"cursors/arrowS.png",
|
|
|
|
"cursors/arrowS@2x.png",
|
|
|
|
"cursors/cell.png",
|
|
|
|
"cursors/cell@2x.png",
|
|
|
|
"cursors/colResize.png",
|
|
|
|
"cursors/colResize@2x.png",
|
|
|
|
"cursors/help.png",
|
|
|
|
"cursors/help@2x.png",
|
|
|
|
"cursors/move.png",
|
|
|
|
"cursors/move@2x.png",
|
|
|
|
"cursors/rowResize.png",
|
|
|
|
"cursors/rowResize@2x.png",
|
|
|
|
"cursors/sizeNE.png",
|
|
|
|
"cursors/sizeNE@2x.png",
|
|
|
|
"cursors/sizeNESW.png",
|
|
|
|
"cursors/sizeNESW@2x.png",
|
|
|
|
"cursors/sizeNS.png",
|
|
|
|
"cursors/sizeNS@2x.png",
|
|
|
|
"cursors/sizeNW.png",
|
|
|
|
"cursors/sizeNW@2x.png",
|
|
|
|
"cursors/sizeNWSE.png",
|
|
|
|
"cursors/sizeNWSE@2x.png",
|
|
|
|
"cursors/sizeSE.png",
|
|
|
|
"cursors/sizeSE@2x.png",
|
|
|
|
"cursors/sizeSW.png",
|
|
|
|
"cursors/sizeSW@2x.png",
|
|
|
|
"cursors/vtIBeam.png",
|
|
|
|
"cursors/vtIBeam@2x.png",
|
|
|
|
"cursors/zoomIn.png",
|
|
|
|
"cursors/zoomIn@2x.png",
|
|
|
|
"cursors/zoomOut.png",
|
|
|
|
"cursors/zoomOut@2x.png",
|
|
|
|
]
|
|
|
|
|
|
|
|
# These resources go in $(DIST)/bin/res/MainMenu.nib, but we can't use a magic
|
|
|
|
# RESOURCE_FILES.MainMenu.nib attribute, since that would put the files in
|
|
|
|
# $(DIST)/bin/res/MainMenu/nib. Instead, we call __setattr__ directly to create
|
|
|
|
# an attribute with the correct name.
|
|
|
|
RESOURCE_FILES.__setattr__(
|
|
|
|
"MainMenu.nib",
|
|
|
|
[
|
|
|
|
"resources/MainMenu.nib/classes.nib",
|
|
|
|
"resources/MainMenu.nib/info.nib",
|
|
|
|
"resources/MainMenu.nib/keyedobjects.nib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2014-07-24 15:55:33 +00:00
|
|
|
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
2019-08-16 01:13:35 +00:00
|
|
|
|
|
|
|
OS_LIBS += [
|
|
|
|
"-framework IOSurface",
|
|
|
|
]
|
2020-06-08 21:41:04 +00:00
|
|
|
|
|
|
|
SPHINX_TREES["/widget/cocoa"] = "docs"
|