|
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/. |
|
6 |
|
7 if CONFIG['MOZ_ZIPWRITER']: |
|
8 DIRS += ['zipwriter'] |
|
9 |
|
10 TEST_TOOL_DIRS += ['test'] |
|
11 |
|
12 XPIDL_SOURCES += [ |
|
13 'nsIJARChannel.idl', |
|
14 'nsIJARProtocolHandler.idl', |
|
15 'nsIJARURI.idl', |
|
16 'nsIZipReader.idl', |
|
17 ] |
|
18 |
|
19 XPIDL_MODULE = 'jar' |
|
20 LIBRARY_NAME = 'jar' |
|
21 |
|
22 EXPORTS += [ |
|
23 'nsJARURI.h', |
|
24 'nsZipArchive.h', |
|
25 'zipstruct.h', |
|
26 ] |
|
27 |
|
28 UNIFIED_SOURCES += [ |
|
29 'nsJARProtocolHandler.cpp', |
|
30 'nsJARURI.cpp', |
|
31 ] |
|
32 |
|
33 # These files cannot be built in unified mode because they rely on plarena.h. |
|
34 SOURCES += [ |
|
35 'nsJAR.cpp', |
|
36 'nsJARChannel.cpp', |
|
37 'nsJARFactory.cpp', |
|
38 'nsJARInputStream.cpp', |
|
39 'nsZipArchive.cpp', |
|
40 ] |
|
41 |
|
42 FAIL_ON_WARNINGS = True |
|
43 |
|
44 MSVC_ENABLE_PGO = True |
|
45 |
|
46 include('/ipc/chromium/chromium-config.mozbuild') |
|
47 |
|
48 FINAL_LIBRARY = 'xul' |