widget/cocoa/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 XPIDL_SOURCES += [
michael@0 8 'nsPIWidgetCocoa.idl',
michael@0 9 ]
michael@0 10
michael@0 11 XPIDL_MODULE = 'widget_cocoa'
michael@0 12
michael@0 13 EXPORTS += [
michael@0 14 'mozView.h',
michael@0 15 'nsChangeObserver.h',
michael@0 16 'nsCocoaFeatures.h',
michael@0 17 'nsCocoaUtils.h',
michael@0 18 ]
michael@0 19
michael@0 20 LIBRARY_NAME = 'widget_mac'
michael@0 21
michael@0 22 UNIFIED_SOURCES += [
michael@0 23 'GfxInfo.mm',
michael@0 24 'NativeKeyBindings.mm',
michael@0 25 'nsAppShell.mm',
michael@0 26 'nsBidiKeyboard.mm',
michael@0 27 'nsCocoaFeatures.mm',
michael@0 28 'nsCocoaUtils.mm',
michael@0 29 'nsCocoaWindow.mm',
michael@0 30 'nsColorPicker.mm',
michael@0 31 'nsCursorManager.mm',
michael@0 32 'nsDeviceContextSpecX.mm',
michael@0 33 'nsFilePicker.mm',
michael@0 34 'nsIdleServiceX.mm',
michael@0 35 'nsLookAndFeel.mm',
michael@0 36 'nsMacCursor.mm',
michael@0 37 'nsMacDockSupport.mm',
michael@0 38 'nsMacWebAppUtils.mm',
michael@0 39 'nsMenuBarX.mm',
michael@0 40 'nsMenuGroupOwnerX.mm',
michael@0 41 'nsMenuItemIconX.mm',
michael@0 42 'nsMenuItemX.mm',
michael@0 43 'nsMenuUtilsX.mm',
michael@0 44 'nsMenuX.mm',
michael@0 45 'nsNativeThemeCocoa.mm',
michael@0 46 'nsPrintDialogX.mm',
michael@0 47 'nsPrintOptionsX.mm',
michael@0 48 'nsPrintSettingsX.mm',
michael@0 49 'nsScreenCocoa.mm',
michael@0 50 'nsScreenManagerCocoa.mm',
michael@0 51 'nsSound.mm',
michael@0 52 'nsStandaloneNativeMenu.mm',
michael@0 53 'nsToolkit.mm',
michael@0 54 'nsWidgetFactory.mm',
michael@0 55 'nsWindowMap.mm',
michael@0 56 'OSXNotificationCenter.mm',
michael@0 57 'WidgetTraceEvent.mm',
michael@0 58 ]
michael@0 59
michael@0 60 # These files cannot be built in unified mode because they force NSPR logging.
michael@0 61 SOURCES += [
michael@0 62 'nsChildView.mm',
michael@0 63 'nsClipboard.mm',
michael@0 64 'nsDragService.mm',
michael@0 65 'TextInputHandler.mm',
michael@0 66 ]
michael@0 67
michael@0 68 if CONFIG['TARGET_CPU'] == 'x86_64':
michael@0 69 UNIFIED_SOURCES += [
michael@0 70 'ComplexTextInputPanel.mm',
michael@0 71 ]
michael@0 72
michael@0 73 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 74
michael@0 75 FINAL_LIBRARY = 'xul'
michael@0 76 LOCAL_INCLUDES += [
michael@0 77 '../shared',
michael@0 78 '../xpwidgets',
michael@0 79 '/layout/forms',
michael@0 80 '/layout/generic',
michael@0 81 '/layout/xul',
michael@0 82 ]
michael@0 83
michael@0 84 RESOURCE_FILES.cursors += [
michael@0 85 'cursors/arrowN.png',
michael@0 86 'cursors/arrowN@2x.png',
michael@0 87 'cursors/arrowS.png',
michael@0 88 'cursors/arrowS@2x.png',
michael@0 89 'cursors/cell.png',
michael@0 90 'cursors/cell@2x.png',
michael@0 91 'cursors/colResize.png',
michael@0 92 'cursors/colResize@2x.png',
michael@0 93 'cursors/help.png',
michael@0 94 'cursors/help@2x.png',
michael@0 95 'cursors/move.png',
michael@0 96 'cursors/move@2x.png',
michael@0 97 'cursors/rowResize.png',
michael@0 98 'cursors/rowResize@2x.png',
michael@0 99 'cursors/sizeNE.png',
michael@0 100 'cursors/sizeNE@2x.png',
michael@0 101 'cursors/sizeNESW.png',
michael@0 102 'cursors/sizeNESW@2x.png',
michael@0 103 'cursors/sizeNS.png',
michael@0 104 'cursors/sizeNS@2x.png',
michael@0 105 'cursors/sizeNW.png',
michael@0 106 'cursors/sizeNW@2x.png',
michael@0 107 'cursors/sizeNWSE.png',
michael@0 108 'cursors/sizeNWSE@2x.png',
michael@0 109 'cursors/sizeSE.png',
michael@0 110 'cursors/sizeSE@2x.png',
michael@0 111 'cursors/sizeSW.png',
michael@0 112 'cursors/sizeSW@2x.png',
michael@0 113 'cursors/vtIBeam.png',
michael@0 114 'cursors/vtIBeam@2x.png',
michael@0 115 'cursors/zoomIn.png',
michael@0 116 'cursors/zoomIn@2x.png',
michael@0 117 'cursors/zoomOut.png',
michael@0 118 'cursors/zoomOut@2x.png',
michael@0 119 ]
michael@0 120
michael@0 121 # These resources go in $(DIST)/bin/res/MainMenu.nib, but we can't use a magic
michael@0 122 # RESOURCE_FILES.MainMenu.nib attribute, since that would put the files in
michael@0 123 # $(DIST)/bin/res/MainMenu/nib. Instead, we call __setattr__ directly to create
michael@0 124 # an attribute with the correct name.
michael@0 125 RESOURCE_FILES.__setattr__('MainMenu.nib', [
michael@0 126 'resources/MainMenu.nib/classes.nib',
michael@0 127 'resources/MainMenu.nib/info.nib',
michael@0 128 'resources/MainMenu.nib/keyedobjects.nib',
michael@0 129 ])
michael@0 130

mercurial