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', 'Web Painting')
9
10EXPORTS += [
11    'ActiveLayerTracker.h',
12    'DisplayItemClip.h',
13    'DisplayItemClipChain.h',
14    'DisplayListClipState.h',
15    'FrameLayerBuilder.h',
16    'LayerState.h',
17    'MatrixStack.h',
18    'nsCSSRenderingBorders.h',
19    'nsCSSRenderingGradients.h',
20    'nsDisplayItemTypes.h',
21    'nsDisplayItemTypesList.h',
22    'nsDisplayList.h',
23    'nsDisplayListArenaTypes.h',
24    'nsDisplayListInvalidation.h',
25    'nsImageRenderer.h',
26    'RetainedDisplayListBuilder.h',
27    'RetainedDisplayListHelpers.h',
28    'TransformClipNode.h',
29]
30
31EXPORTS.mozilla += [
32    'PaintTracker.h',
33]
34
35UNIFIED_SOURCES += [
36    'ActiveLayerTracker.cpp',
37    'DashedCornerFinder.cpp',
38    'DisplayItemClip.cpp',
39    'DisplayItemClipChain.cpp',
40    'DisplayListChecker.cpp',
41    'DisplayListClipState.cpp',
42    'DottedCornerFinder.cpp',
43    'FrameLayerBuilder.cpp',
44    'MaskLayerImageCache.cpp',
45    'nsCSSRendering.cpp',
46    'nsCSSRenderingBorders.cpp',
47    'nsCSSRenderingGradients.cpp',
48    'nsDisplayList.cpp',
49    'nsDisplayListInvalidation.cpp',
50    'nsImageRenderer.cpp',
51    'PaintTracker.cpp',
52    'RetainedDisplayListBuilder.cpp',
53]
54
55include('/ipc/chromium/chromium-config.mozbuild')
56
57LOCAL_INCLUDES += [
58    '/docshell/base',
59    '/dom/base',
60    '/gfx/2d',
61    '/layout/base',
62    '/layout/generic',
63    '/layout/style',
64    '/layout/svg',
65    '/layout/tables',
66    '/layout/xul',
67]
68
69LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
70
71FINAL_LIBRARY = 'xul'
72
73CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
74
75if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
76    CXXFLAGS += ['-Wno-error=shadow']
77