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', 'Document Navigation')
9
10with Files('crashtests/430628*'):
11    BUG_COMPONENT = ('Core', 'Editor')
12
13with Files('crashtests/432114*'):
14    BUG_COMPONENT = ('Core', 'Editor')
15
16with Files('crashtests/500328*'):
17    BUG_COMPONENT = ('Firefox', 'Bookmarks & History')
18
19with Files('IHistory.h'):
20    BUG_COMPONENT = ('Toolkit', 'Places')
21
22with Files('*LoadContext.*'):
23    BUG_COMPONENT = ('Core', 'Networking')
24
25with Files('nsAboutRedirector.*'):
26    BUG_COMPONENT = ('Core', 'General')
27
28with Files('nsILinkHandler.*'):
29    BUG_COMPONENT = ('Core', 'DOM: Core & HTML')
30
31with Files('nsIScrollObserver.*'):
32    BUG_COMPONENT = ('Core', 'Panning and Zooming')
33
34DIRS += [
35    'timeline',
36]
37
38XPIDL_SOURCES += [
39    'nsCDefaultURIFixup.idl',
40    'nsIClipboardCommands.idl',
41    'nsIContentViewer.idl',
42    'nsIContentViewerEdit.idl',
43    'nsIDocShell.idl',
44    'nsIDocShellLoadInfo.idl',
45    'nsIDocShellTreeItem.idl',
46    'nsIDocShellTreeOwner.idl',
47    'nsIDocumentLoaderFactory.idl',
48    'nsIDownloadHistory.idl',
49    'nsIGlobalHistory2.idl',
50    'nsILoadContext.idl',
51    'nsIPrivacyTransitionObserver.idl',
52    'nsIReflowObserver.idl',
53    'nsIRefreshURI.idl',
54    'nsIScrollable.idl',
55    'nsITextScroll.idl',
56    'nsITooltipListener.idl',
57    'nsITooltipTextProvider.idl',
58    'nsIURIFixup.idl',
59    'nsIWebNavigation.idl',
60    'nsIWebNavigationInfo.idl',
61    'nsIWebPageDescriptor.idl',
62]
63
64XPIDL_MODULE = 'docshell'
65
66EXPORTS += [
67    'nsCTooltipTextProvider.h',
68    'nsDocShellLoadTypes.h',
69    'nsDocShellTreeOwner.h',
70    'nsILinkHandler.h',
71    'nsIScrollObserver.h',
72    'nsIWebShellServices.h',
73    'SerializedLoadContext.h',
74]
75
76EXPORTS.mozilla += [
77    'IHistory.h',
78    'LoadContext.h',
79]
80
81UNIFIED_SOURCES += [
82    'LoadContext.cpp',
83    'nsAboutRedirector.cpp',
84    'nsDefaultURIFixup.cpp',
85    'nsDocShell.cpp',
86    'nsDocShellEditorData.cpp',
87    'nsDocShellEnumerator.cpp',
88    'nsDocShellLoadInfo.cpp',
89    'nsDocShellTransferableHooks.cpp',
90    'nsDocShellTreeOwner.cpp',
91    'nsDSURIContentListener.cpp',
92    'nsPingListener.cpp',
93    'nsRefreshTimer.cpp',
94    'nsWebNavigationInfo.cpp',
95    'SerializedLoadContext.cpp',
96]
97
98if not CONFIG['MOZ_PLACES']:
99    UNIFIED_SOURCES += ['nsDownloadHistory.cpp']
100
101include('/ipc/chromium/chromium-config.mozbuild')
102
103FINAL_LIBRARY = 'xul'
104LOCAL_INCLUDES += [
105    '/docshell/shistory',
106    '/dom/base',
107    '/layout/base',
108    '/layout/generic',
109    '/layout/style',
110    '/layout/xul',
111    '/netwerk/base',
112    '/netwerk/protocol/viewsource',
113    '/toolkit/components/browser',
114    '/tools/profiler',
115]
116
117if CONFIG['MOZ_TOOLKIT_SEARCH']:
118    DEFINES['MOZ_TOOLKIT_SEARCH'] = True
119
120if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
121    CXXFLAGS += ['-Wno-error=shadow']
122