2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04: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/.
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsPIWidgetCocoa.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'widget_cocoa'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'mozView.h',
|
2015-04-11 01:18:05 +03:00
|
|
|
'nsBidiKeyboard.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsChangeObserver.h',
|
2015-04-30 22:41:21 +03:00
|
|
|
'nsCocoaDebugUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsCocoaFeatures.h',
|
|
|
|
'nsCocoaUtils.h',
|
|
|
|
]
|
|
|
|
|
2013-11-17 11:27:11 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-12-11 17:44:07 +03:00
|
|
|
'ComplexTextInputPanel.mm',
|
2013-09-06 10:40:41 +04:00
|
|
|
'GfxInfo.mm',
|
|
|
|
'NativeKeyBindings.mm',
|
|
|
|
'nsAppShell.mm',
|
|
|
|
'nsBidiKeyboard.mm',
|
|
|
|
'nsCocoaFeatures.mm',
|
|
|
|
'nsCocoaUtils.mm',
|
|
|
|
'nsCocoaWindow.mm',
|
|
|
|
'nsColorPicker.mm',
|
|
|
|
'nsCursorManager.mm',
|
|
|
|
'nsDeviceContextSpecX.mm',
|
|
|
|
'nsFilePicker.mm',
|
|
|
|
'nsIdleServiceX.mm',
|
|
|
|
'nsLookAndFeel.mm',
|
|
|
|
'nsMacCursor.mm',
|
|
|
|
'nsMacDockSupport.mm',
|
|
|
|
'nsMacWebAppUtils.mm',
|
|
|
|
'nsMenuBarX.mm',
|
|
|
|
'nsMenuGroupOwnerX.mm',
|
|
|
|
'nsMenuItemIconX.mm',
|
|
|
|
'nsMenuItemX.mm',
|
|
|
|
'nsMenuUtilsX.mm',
|
|
|
|
'nsMenuX.mm',
|
|
|
|
'nsPrintDialogX.mm',
|
|
|
|
'nsPrintOptionsX.mm',
|
|
|
|
'nsPrintSettingsX.mm',
|
|
|
|
'nsScreenCocoa.mm',
|
|
|
|
'nsScreenManagerCocoa.mm',
|
|
|
|
'nsSound.mm',
|
|
|
|
'nsStandaloneNativeMenu.mm',
|
2014-07-18 23:06:13 +04:00
|
|
|
'nsSystemStatusBarCocoa.mm',
|
2013-09-06 10:40:41 +04:00
|
|
|
'nsToolkit.mm',
|
|
|
|
'nsWidgetFactory.mm',
|
|
|
|
'nsWindowMap.mm',
|
2013-12-06 03:05:10 +04:00
|
|
|
'OSXNotificationCenter.mm',
|
2015-08-27 23:07:59 +03:00
|
|
|
'SwipeTracker.mm',
|
2014-10-09 00:19:14 +04:00
|
|
|
'TextInputHandler.mm',
|
2014-08-28 04:15:33 +04:00
|
|
|
'VibrancyManager.mm',
|
2013-10-24 03:05:43 +04:00
|
|
|
'WidgetTraceEvent.mm',
|
2013-09-06 10:40:41 +04:00
|
|
|
]
|
|
|
|
|
2014-10-09 00:19:14 +04:00
|
|
|
# These files cannot be built in unified mode because they cause symbol conflicts
|
2013-11-23 20:21:33 +04:00
|
|
|
SOURCES += [
|
|
|
|
'nsChildView.mm',
|
|
|
|
'nsClipboard.mm',
|
2015-04-30 22:41:21 +03:00
|
|
|
'nsCocoaDebugUtils.mm',
|
2015-08-27 23:07:59 +03:00
|
|
|
'nsDragService.mm',
|
|
|
|
'nsNativeThemeCocoa.mm',
|
2013-11-23 20:21:33 +04:00
|
|
|
]
|
|
|
|
|
2015-07-28 23:19:55 +03:00
|
|
|
if not CONFIG['RELEASE_BUILD'] or CONFIG['DEBUG']:
|
|
|
|
SOURCES += [
|
|
|
|
'nsSandboxViolationSink.mm',
|
|
|
|
]
|
|
|
|
|
2014-01-23 18:31:12 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/layout/forms',
|
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2014-10-23 21:16:45 +04:00
|
|
|
'/widget',
|
2013-11-28 18:17:25 +04:00
|
|
|
]
|
|
|
|
|
2013-11-05 22:37:54 +04: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 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|