Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'cocoa': |
michael@0 | 8 | TEST_DIRS += ['tests'] |
michael@0 | 9 | |
michael@0 | 10 | EXPORTS += [ |
michael@0 | 11 | 'nsICachedFileDescriptorListener.h', |
michael@0 | 12 | 'PCOMContentPermissionRequestChild.h', |
michael@0 | 13 | ] |
michael@0 | 14 | |
michael@0 | 15 | EXPORTS.mozilla.dom.ipc += [ |
michael@0 | 16 | 'Blob.h', |
michael@0 | 17 | 'nsIRemoteBlob.h', |
michael@0 | 18 | ] |
michael@0 | 19 | |
michael@0 | 20 | EXPORTS.mozilla.dom += [ |
michael@0 | 21 | 'ContentChild.h', |
michael@0 | 22 | 'ContentParent.h', |
michael@0 | 23 | 'ContentProcess.h', |
michael@0 | 24 | 'CrashReporterChild.h', |
michael@0 | 25 | 'CrashReporterParent.h', |
michael@0 | 26 | 'FileDescriptorSetChild.h', |
michael@0 | 27 | 'FileDescriptorSetParent.h', |
michael@0 | 28 | 'FilePickerParent.h', |
michael@0 | 29 | 'PermissionMessageUtils.h', |
michael@0 | 30 | 'StructuredCloneUtils.h', |
michael@0 | 31 | 'TabChild.h', |
michael@0 | 32 | 'TabContext.h', |
michael@0 | 33 | 'TabMessageUtils.h', |
michael@0 | 34 | 'TabParent.h', |
michael@0 | 35 | ] |
michael@0 | 36 | |
michael@0 | 37 | EXPORTS.mozilla += [ |
michael@0 | 38 | 'AppProcessChecker.h', |
michael@0 | 39 | 'PreallocatedProcessManager.h', |
michael@0 | 40 | 'ProcessPriorityManager.h', |
michael@0 | 41 | ] |
michael@0 | 42 | |
michael@0 | 43 | UNIFIED_SOURCES += [ |
michael@0 | 44 | 'AppProcessChecker.cpp', |
michael@0 | 45 | 'ColorPickerParent.cpp', |
michael@0 | 46 | 'ContentParent.cpp', |
michael@0 | 47 | 'ContentProcess.cpp', |
michael@0 | 48 | 'CrashReporterParent.cpp', |
michael@0 | 49 | 'FileDescriptorSetChild.cpp', |
michael@0 | 50 | 'FileDescriptorSetParent.cpp', |
michael@0 | 51 | 'FilePickerParent.cpp', |
michael@0 | 52 | 'PermissionMessageUtils.cpp', |
michael@0 | 53 | 'PreallocatedProcessManager.cpp', |
michael@0 | 54 | 'ProcessPriorityManager.cpp', |
michael@0 | 55 | 'StructuredCloneUtils.cpp', |
michael@0 | 56 | 'TabChild.cpp', |
michael@0 | 57 | 'TabContext.cpp', |
michael@0 | 58 | 'TabMessageUtils.cpp', |
michael@0 | 59 | 'TabParent.cpp', |
michael@0 | 60 | ] |
michael@0 | 61 | |
michael@0 | 62 | # Blob.cpp cannot be compiled in unified mode because it triggers a fatal gcc warning. |
michael@0 | 63 | # ContentChild.cpp cannot be compiled in unified mode because it forces NSPR logging. |
michael@0 | 64 | # CrashReporterChild.cpp cannot be compiled in unified mode because of name clashes |
michael@0 | 65 | # in OS X headers. |
michael@0 | 66 | SOURCES += [ |
michael@0 | 67 | 'Blob.cpp', |
michael@0 | 68 | 'ContentChild.cpp', |
michael@0 | 69 | 'CrashReporterChild.cpp', |
michael@0 | 70 | ] |
michael@0 | 71 | |
michael@0 | 72 | IPDL_SOURCES += [ |
michael@0 | 73 | 'DOMTypes.ipdlh', |
michael@0 | 74 | 'PBlob.ipdl', |
michael@0 | 75 | 'PBlobStream.ipdl', |
michael@0 | 76 | 'PBrowser.ipdl', |
michael@0 | 77 | 'PColorPicker.ipdl', |
michael@0 | 78 | 'PContent.ipdl', |
michael@0 | 79 | 'PContentPermission.ipdlh', |
michael@0 | 80 | 'PContentPermissionRequest.ipdl', |
michael@0 | 81 | 'PCrashReporter.ipdl', |
michael@0 | 82 | 'PDocumentRenderer.ipdl', |
michael@0 | 83 | 'PFileDescriptorSet.ipdl', |
michael@0 | 84 | 'PFilePicker.ipdl', |
michael@0 | 85 | 'PMemoryReportRequest.ipdl', |
michael@0 | 86 | 'PTabContext.ipdlh', |
michael@0 | 87 | ] |
michael@0 | 88 | |
michael@0 | 89 | FAIL_ON_WARNINGS = True |
michael@0 | 90 | |
michael@0 | 91 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 92 | |
michael@0 | 93 | FINAL_LIBRARY = 'xul' |
michael@0 | 94 | LOCAL_INCLUDES += [ |
michael@0 | 95 | '../src/base', |
michael@0 | 96 | '../src/geolocation', |
michael@0 | 97 | '../src/storage', |
michael@0 | 98 | '/chrome/src', |
michael@0 | 99 | '/content/base/src', |
michael@0 | 100 | '/content/media/webspeech/synth/ipc', |
michael@0 | 101 | '/docshell/base', |
michael@0 | 102 | '/dom/base', |
michael@0 | 103 | '/dom/bluetooth', |
michael@0 | 104 | '/dom/bluetooth/ipc', |
michael@0 | 105 | '/dom/devicestorage', |
michael@0 | 106 | '/dom/filesystem', |
michael@0 | 107 | '/dom/fmradio/ipc', |
michael@0 | 108 | '/dom/indexedDB', |
michael@0 | 109 | '/dom/indexedDB/ipc', |
michael@0 | 110 | '/dom/mobilemessage/src/ipc', |
michael@0 | 111 | '/extensions/cookie', |
michael@0 | 112 | '/hal/sandbox', |
michael@0 | 113 | '/js/ipc', |
michael@0 | 114 | '/layout/base', |
michael@0 | 115 | '/netwerk/base/src', |
michael@0 | 116 | '/toolkit/xre', |
michael@0 | 117 | '/uriloader/exthandler', |
michael@0 | 118 | '/widget/xpwidgets', |
michael@0 | 119 | '/xpcom/base', |
michael@0 | 120 | '/xpcom/threads', |
michael@0 | 121 | ] |
michael@0 | 122 | |
michael@0 | 123 | DEFINES['BIN_SUFFIX'] = '"%s"' % CONFIG['BIN_SUFFIX'] |
michael@0 | 124 | |
michael@0 | 125 | if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gonk', 'qt'): |
michael@0 | 126 | DEFINES['MOZ_ENABLE_FREETYPE'] = True |
michael@0 | 127 | |
michael@0 | 128 | for var in ('MOZ_PERMISSIONS', 'MOZ_CHILD_PERMISSIONS'): |
michael@0 | 129 | if CONFIG[var]: |
michael@0 | 130 | DEFINES[var] = True |
michael@0 | 131 | |
michael@0 | 132 | if CONFIG['ENABLE_TESTS']: |
michael@0 | 133 | DEFINES['ENABLE_TESTS'] = 1 |
michael@0 | 134 | LOCAL_INCLUDES += [ |
michael@0 | 135 | 'ipc/glue', |
michael@0 | 136 | ] |
michael@0 | 137 | |
michael@0 | 138 | JAR_MANIFESTS += ['jar.mn'] |
michael@0 | 139 |