michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsPIWidgetCocoa.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'widget_cocoa' michael@0: michael@0: EXPORTS += [ michael@0: 'mozView.h', michael@0: 'nsChangeObserver.h', michael@0: 'nsCocoaFeatures.h', michael@0: 'nsCocoaUtils.h', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'widget_mac' michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'GfxInfo.mm', michael@0: 'NativeKeyBindings.mm', michael@0: 'nsAppShell.mm', michael@0: 'nsBidiKeyboard.mm', michael@0: 'nsCocoaFeatures.mm', michael@0: 'nsCocoaUtils.mm', michael@0: 'nsCocoaWindow.mm', michael@0: 'nsColorPicker.mm', michael@0: 'nsCursorManager.mm', michael@0: 'nsDeviceContextSpecX.mm', michael@0: 'nsFilePicker.mm', michael@0: 'nsIdleServiceX.mm', michael@0: 'nsLookAndFeel.mm', michael@0: 'nsMacCursor.mm', michael@0: 'nsMacDockSupport.mm', michael@0: 'nsMacWebAppUtils.mm', michael@0: 'nsMenuBarX.mm', michael@0: 'nsMenuGroupOwnerX.mm', michael@0: 'nsMenuItemIconX.mm', michael@0: 'nsMenuItemX.mm', michael@0: 'nsMenuUtilsX.mm', michael@0: 'nsMenuX.mm', michael@0: 'nsNativeThemeCocoa.mm', michael@0: 'nsPrintDialogX.mm', michael@0: 'nsPrintOptionsX.mm', michael@0: 'nsPrintSettingsX.mm', michael@0: 'nsScreenCocoa.mm', michael@0: 'nsScreenManagerCocoa.mm', michael@0: 'nsSound.mm', michael@0: 'nsStandaloneNativeMenu.mm', michael@0: 'nsToolkit.mm', michael@0: 'nsWidgetFactory.mm', michael@0: 'nsWindowMap.mm', michael@0: 'OSXNotificationCenter.mm', michael@0: 'WidgetTraceEvent.mm', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'nsChildView.mm', michael@0: 'nsClipboard.mm', michael@0: 'nsDragService.mm', michael@0: 'TextInputHandler.mm', michael@0: ] michael@0: michael@0: if CONFIG['TARGET_CPU'] == 'x86_64': michael@0: UNIFIED_SOURCES += [ michael@0: 'ComplexTextInputPanel.mm', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: LOCAL_INCLUDES += [ michael@0: '../shared', michael@0: '../xpwidgets', michael@0: '/layout/forms', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: ] michael@0: michael@0: RESOURCE_FILES.cursors += [ michael@0: 'cursors/arrowN.png', michael@0: 'cursors/arrowN@2x.png', michael@0: 'cursors/arrowS.png', michael@0: 'cursors/arrowS@2x.png', michael@0: 'cursors/cell.png', michael@0: 'cursors/cell@2x.png', michael@0: 'cursors/colResize.png', michael@0: 'cursors/colResize@2x.png', michael@0: 'cursors/help.png', michael@0: 'cursors/help@2x.png', michael@0: 'cursors/move.png', michael@0: 'cursors/move@2x.png', michael@0: 'cursors/rowResize.png', michael@0: 'cursors/rowResize@2x.png', michael@0: 'cursors/sizeNE.png', michael@0: 'cursors/sizeNE@2x.png', michael@0: 'cursors/sizeNESW.png', michael@0: 'cursors/sizeNESW@2x.png', michael@0: 'cursors/sizeNS.png', michael@0: 'cursors/sizeNS@2x.png', michael@0: 'cursors/sizeNW.png', michael@0: 'cursors/sizeNW@2x.png', michael@0: 'cursors/sizeNWSE.png', michael@0: 'cursors/sizeNWSE@2x.png', michael@0: 'cursors/sizeSE.png', michael@0: 'cursors/sizeSE@2x.png', michael@0: 'cursors/sizeSW.png', michael@0: 'cursors/sizeSW@2x.png', michael@0: 'cursors/vtIBeam.png', michael@0: 'cursors/vtIBeam@2x.png', michael@0: 'cursors/zoomIn.png', michael@0: 'cursors/zoomIn@2x.png', michael@0: 'cursors/zoomOut.png', michael@0: 'cursors/zoomOut@2x.png', michael@0: ] michael@0: michael@0: # These resources go in $(DIST)/bin/res/MainMenu.nib, but we can't use a magic michael@0: # RESOURCE_FILES.MainMenu.nib attribute, since that would put the files in michael@0: # $(DIST)/bin/res/MainMenu/nib. Instead, we call __setattr__ directly to create michael@0: # an attribute with the correct name. michael@0: RESOURCE_FILES.__setattr__('MainMenu.nib', [ michael@0: 'resources/MainMenu.nib/classes.nib', michael@0: 'resources/MainMenu.nib/info.nib', michael@0: 'resources/MainMenu.nib/keyedobjects.nib', michael@0: ]) michael@0: