1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/cocoa/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,130 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +XPIDL_SOURCES += [ 1.11 + 'nsPIWidgetCocoa.idl', 1.12 +] 1.13 + 1.14 +XPIDL_MODULE = 'widget_cocoa' 1.15 + 1.16 +EXPORTS += [ 1.17 + 'mozView.h', 1.18 + 'nsChangeObserver.h', 1.19 + 'nsCocoaFeatures.h', 1.20 + 'nsCocoaUtils.h', 1.21 +] 1.22 + 1.23 +LIBRARY_NAME = 'widget_mac' 1.24 + 1.25 +UNIFIED_SOURCES += [ 1.26 + 'GfxInfo.mm', 1.27 + 'NativeKeyBindings.mm', 1.28 + 'nsAppShell.mm', 1.29 + 'nsBidiKeyboard.mm', 1.30 + 'nsCocoaFeatures.mm', 1.31 + 'nsCocoaUtils.mm', 1.32 + 'nsCocoaWindow.mm', 1.33 + 'nsColorPicker.mm', 1.34 + 'nsCursorManager.mm', 1.35 + 'nsDeviceContextSpecX.mm', 1.36 + 'nsFilePicker.mm', 1.37 + 'nsIdleServiceX.mm', 1.38 + 'nsLookAndFeel.mm', 1.39 + 'nsMacCursor.mm', 1.40 + 'nsMacDockSupport.mm', 1.41 + 'nsMacWebAppUtils.mm', 1.42 + 'nsMenuBarX.mm', 1.43 + 'nsMenuGroupOwnerX.mm', 1.44 + 'nsMenuItemIconX.mm', 1.45 + 'nsMenuItemX.mm', 1.46 + 'nsMenuUtilsX.mm', 1.47 + 'nsMenuX.mm', 1.48 + 'nsNativeThemeCocoa.mm', 1.49 + 'nsPrintDialogX.mm', 1.50 + 'nsPrintOptionsX.mm', 1.51 + 'nsPrintSettingsX.mm', 1.52 + 'nsScreenCocoa.mm', 1.53 + 'nsScreenManagerCocoa.mm', 1.54 + 'nsSound.mm', 1.55 + 'nsStandaloneNativeMenu.mm', 1.56 + 'nsToolkit.mm', 1.57 + 'nsWidgetFactory.mm', 1.58 + 'nsWindowMap.mm', 1.59 + 'OSXNotificationCenter.mm', 1.60 + 'WidgetTraceEvent.mm', 1.61 +] 1.62 + 1.63 +# These files cannot be built in unified mode because they force NSPR logging. 1.64 +SOURCES += [ 1.65 + 'nsChildView.mm', 1.66 + 'nsClipboard.mm', 1.67 + 'nsDragService.mm', 1.68 + 'TextInputHandler.mm', 1.69 +] 1.70 + 1.71 +if CONFIG['TARGET_CPU'] == 'x86_64': 1.72 + UNIFIED_SOURCES += [ 1.73 + 'ComplexTextInputPanel.mm', 1.74 + ] 1.75 + 1.76 +include('/ipc/chromium/chromium-config.mozbuild') 1.77 + 1.78 +FINAL_LIBRARY = 'xul' 1.79 +LOCAL_INCLUDES += [ 1.80 + '../shared', 1.81 + '../xpwidgets', 1.82 + '/layout/forms', 1.83 + '/layout/generic', 1.84 + '/layout/xul', 1.85 +] 1.86 + 1.87 +RESOURCE_FILES.cursors += [ 1.88 + 'cursors/arrowN.png', 1.89 + 'cursors/arrowN@2x.png', 1.90 + 'cursors/arrowS.png', 1.91 + 'cursors/arrowS@2x.png', 1.92 + 'cursors/cell.png', 1.93 + 'cursors/cell@2x.png', 1.94 + 'cursors/colResize.png', 1.95 + 'cursors/colResize@2x.png', 1.96 + 'cursors/help.png', 1.97 + 'cursors/help@2x.png', 1.98 + 'cursors/move.png', 1.99 + 'cursors/move@2x.png', 1.100 + 'cursors/rowResize.png', 1.101 + 'cursors/rowResize@2x.png', 1.102 + 'cursors/sizeNE.png', 1.103 + 'cursors/sizeNE@2x.png', 1.104 + 'cursors/sizeNESW.png', 1.105 + 'cursors/sizeNESW@2x.png', 1.106 + 'cursors/sizeNS.png', 1.107 + 'cursors/sizeNS@2x.png', 1.108 + 'cursors/sizeNW.png', 1.109 + 'cursors/sizeNW@2x.png', 1.110 + 'cursors/sizeNWSE.png', 1.111 + 'cursors/sizeNWSE@2x.png', 1.112 + 'cursors/sizeSE.png', 1.113 + 'cursors/sizeSE@2x.png', 1.114 + 'cursors/sizeSW.png', 1.115 + 'cursors/sizeSW@2x.png', 1.116 + 'cursors/vtIBeam.png', 1.117 + 'cursors/vtIBeam@2x.png', 1.118 + 'cursors/zoomIn.png', 1.119 + 'cursors/zoomIn@2x.png', 1.120 + 'cursors/zoomOut.png', 1.121 + 'cursors/zoomOut@2x.png', 1.122 +] 1.123 + 1.124 +# These resources go in $(DIST)/bin/res/MainMenu.nib, but we can't use a magic 1.125 +# RESOURCE_FILES.MainMenu.nib attribute, since that would put the files in 1.126 +# $(DIST)/bin/res/MainMenu/nib. Instead, we call __setattr__ directly to create 1.127 +# an attribute with the correct name. 1.128 +RESOURCE_FILES.__setattr__('MainMenu.nib', [ 1.129 + 'resources/MainMenu.nib/classes.nib', 1.130 + 'resources/MainMenu.nib/info.nib', 1.131 + 'resources/MainMenu.nib/keyedobjects.nib', 1.132 +]) 1.133 +