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: if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'cocoa': michael@0: TEST_DIRS += ['tests'] michael@0: michael@0: EXPORTS += [ michael@0: 'nsICachedFileDescriptorListener.h', michael@0: 'PCOMContentPermissionRequestChild.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom.ipc += [ michael@0: 'Blob.h', michael@0: 'nsIRemoteBlob.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'ContentChild.h', michael@0: 'ContentParent.h', michael@0: 'ContentProcess.h', michael@0: 'CrashReporterChild.h', michael@0: 'CrashReporterParent.h', michael@0: 'FileDescriptorSetChild.h', michael@0: 'FileDescriptorSetParent.h', michael@0: 'FilePickerParent.h', michael@0: 'PermissionMessageUtils.h', michael@0: 'StructuredCloneUtils.h', michael@0: 'TabChild.h', michael@0: 'TabContext.h', michael@0: 'TabMessageUtils.h', michael@0: 'TabParent.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'AppProcessChecker.h', michael@0: 'PreallocatedProcessManager.h', michael@0: 'ProcessPriorityManager.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'AppProcessChecker.cpp', michael@0: 'ColorPickerParent.cpp', michael@0: 'ContentParent.cpp', michael@0: 'ContentProcess.cpp', michael@0: 'CrashReporterParent.cpp', michael@0: 'FileDescriptorSetChild.cpp', michael@0: 'FileDescriptorSetParent.cpp', michael@0: 'FilePickerParent.cpp', michael@0: 'PermissionMessageUtils.cpp', michael@0: 'PreallocatedProcessManager.cpp', michael@0: 'ProcessPriorityManager.cpp', michael@0: 'StructuredCloneUtils.cpp', michael@0: 'TabChild.cpp', michael@0: 'TabContext.cpp', michael@0: 'TabMessageUtils.cpp', michael@0: 'TabParent.cpp', michael@0: ] michael@0: michael@0: # Blob.cpp cannot be compiled in unified mode because it triggers a fatal gcc warning. michael@0: # ContentChild.cpp cannot be compiled in unified mode because it forces NSPR logging. michael@0: # CrashReporterChild.cpp cannot be compiled in unified mode because of name clashes michael@0: # in OS X headers. michael@0: SOURCES += [ michael@0: 'Blob.cpp', michael@0: 'ContentChild.cpp', michael@0: 'CrashReporterChild.cpp', michael@0: ] michael@0: michael@0: IPDL_SOURCES += [ michael@0: 'DOMTypes.ipdlh', michael@0: 'PBlob.ipdl', michael@0: 'PBlobStream.ipdl', michael@0: 'PBrowser.ipdl', michael@0: 'PColorPicker.ipdl', michael@0: 'PContent.ipdl', michael@0: 'PContentPermission.ipdlh', michael@0: 'PContentPermissionRequest.ipdl', michael@0: 'PCrashReporter.ipdl', michael@0: 'PDocumentRenderer.ipdl', michael@0: 'PFileDescriptorSet.ipdl', michael@0: 'PFilePicker.ipdl', michael@0: 'PMemoryReportRequest.ipdl', michael@0: 'PTabContext.ipdlh', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: LOCAL_INCLUDES += [ michael@0: '../src/base', michael@0: '../src/geolocation', michael@0: '../src/storage', michael@0: '/chrome/src', michael@0: '/content/base/src', michael@0: '/content/media/webspeech/synth/ipc', michael@0: '/docshell/base', michael@0: '/dom/base', michael@0: '/dom/bluetooth', michael@0: '/dom/bluetooth/ipc', michael@0: '/dom/devicestorage', michael@0: '/dom/filesystem', michael@0: '/dom/fmradio/ipc', michael@0: '/dom/indexedDB', michael@0: '/dom/indexedDB/ipc', michael@0: '/dom/mobilemessage/src/ipc', michael@0: '/extensions/cookie', michael@0: '/hal/sandbox', michael@0: '/js/ipc', michael@0: '/layout/base', michael@0: '/netwerk/base/src', michael@0: '/toolkit/xre', michael@0: '/uriloader/exthandler', michael@0: '/widget/xpwidgets', michael@0: '/xpcom/base', michael@0: '/xpcom/threads', michael@0: ] michael@0: michael@0: DEFINES['BIN_SUFFIX'] = '"%s"' % CONFIG['BIN_SUFFIX'] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gonk', 'qt'): michael@0: DEFINES['MOZ_ENABLE_FREETYPE'] = True michael@0: michael@0: for var in ('MOZ_PERMISSIONS', 'MOZ_CHILD_PERMISSIONS'): michael@0: if CONFIG[var]: michael@0: DEFINES[var] = True michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: DEFINES['ENABLE_TESTS'] = 1 michael@0: LOCAL_INCLUDES += [ michael@0: 'ipc/glue', michael@0: ] michael@0: michael@0: JAR_MANIFESTS += ['jar.mn'] michael@0: