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: JAR')
9
10if CONFIG['MOZ_ZIPWRITER']:
11    DIRS += ['zipwriter']
12
13MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
14
15XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
16
17XPIDL_SOURCES += [
18    'nsIJARChannel.idl',
19    'nsIJARURI.idl',
20    'nsIZipReader.idl',
21]
22
23XPIDL_MODULE = 'jar'
24
25EXPORTS += [
26    'nsJARProtocolHandler.h',
27    'nsJARURI.h',
28    'nsZipArchive.h',
29    'zipstruct.h',
30]
31
32UNIFIED_SOURCES += [
33    'nsJAR.cpp',
34    'nsJARChannel.cpp',
35    'nsJARInputStream.cpp',
36    'nsJARProtocolHandler.cpp',
37    'nsJARURI.cpp',
38    'nsZipArchive.cpp',
39]
40
41XPCOM_MANIFESTS += [
42    'components.conf',
43]
44
45include('/ipc/chromium/chromium-config.mozbuild')
46
47FINAL_LIBRARY = 'xul'
48