|
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 EXPORTS += [ |
|
8 'nsNetCID.h', |
|
9 ] |
|
10 |
|
11 SOURCES += [ |
|
12 'nsNetModule.cpp', |
|
13 ] |
|
14 |
|
15 FAIL_ON_WARNINGS = True |
|
16 |
|
17 MSVC_ENABLE_PGO = True |
|
18 |
|
19 LIBRARY_NAME = 'necko' |
|
20 |
|
21 include('/ipc/chromium/chromium-config.mozbuild') |
|
22 |
|
23 FINAL_LIBRARY = 'xul' |
|
24 |
|
25 LOCAL_INCLUDES += [ |
|
26 '../base/src', |
|
27 '../cache', |
|
28 '../dns', |
|
29 '../mime', |
|
30 '../protocol/about', |
|
31 '../protocol/app', |
|
32 '../socket', |
|
33 '../streamconv/converters', |
|
34 '../streamconv/src', |
|
35 ] |
|
36 |
|
37 protocols = CONFIG['NECKO_PROTOCOLS'].copy() |
|
38 protocols.remove("about") |
|
39 LOCAL_INCLUDES += sorted([ |
|
40 '../protocol/%s' % d for d in protocols |
|
41 ]) |
|
42 |
|
43 if CONFIG['OS_ARCH'] == 'WINNT': |
|
44 LOCAL_INCLUDES += [ |
|
45 '../system/win32', |
|
46 ] |
|
47 |
|
48 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
|
49 LOCAL_INCLUDES += [ |
|
50 '../system/mac', |
|
51 ] |
|
52 |
|
53 if CONFIG['MOZ_ENABLE_QTNETWORK']: |
|
54 LOCAL_INCLUDES += [ |
|
55 '../system/qt', |
|
56 ] |
|
57 |
|
58 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
|
59 LOCAL_INCLUDES += [ |
|
60 '../system/android', |
|
61 ] |
|
62 |
|
63 if CONFIG['NECKO_COOKIES']: |
|
64 LOCAL_INCLUDES += [ |
|
65 '../cookie', |
|
66 ] |
|
67 |
|
68 if CONFIG['NECKO_WIFI']: |
|
69 LOCAL_INCLUDES += [ |
|
70 '../wifi', |
|
71 ] |
|
72 |
|
73 if CONFIG['MOZ_RTSP']: |
|
74 LOCAL_INCLUDES += [ |
|
75 '../protocol/rtsp', |
|
76 ] |
|
77 |
|
78 GENERATED_INCLUDES += [ |
|
79 '../dns', |
|
80 ] |