1# -*- Mode: python; 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/. 6 7with Files('**'): 8 BUG_COMPONENT = ('Core', 'Networking: File') 9 10EXPORTS.mozilla.net += [ 11 'FileChannelParent.h', 12 'nsFileProtocolHandler.h', 13] 14 15XPIDL_SOURCES += [ 16 'nsIFileChannel.idl', 17 'nsIFileProtocolHandler.idl', 18] 19 20XPIDL_MODULE = 'necko_file' 21 22UNIFIED_SOURCES += [ 23 'FileChannelChild.cpp', 24 'FileChannelParent.cpp', 25 'nsFileChannel.cpp', 26 'nsFileProtocolHandler.cpp', 27] 28 29include('/ipc/chromium/chromium-config.mozbuild') 30 31FINAL_LIBRARY = 'xul' 32 33LOCAL_INCLUDES += [ 34 '/netwerk/base', 35] 36 37if CONFIG['CC_TYPE'] in ('clang', 'gcc'): 38 CXXFLAGS += ['-Wno-error=shadow'] 39