widget/cocoa/moz.build

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial