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', 'Layout: View Rendering') 9 10EXPORTS += [ 11 'ActiveLayerTracker.h', 12 'DisplayItemClip.h', 13 'DisplayItemClipChain.h', 14 'DisplayListClipState.h', 15 'FrameLayerBuilder.h', 16 'LayerState.h', 17 'nsCSSRenderingBorders.h', 18 'nsCSSRenderingGradients.h', 19 'nsDisplayItemTypes.h', 20 'nsDisplayItemTypesList.h', 21 'nsDisplayList.h', 22 'nsDisplayListInvalidation.h', 23 'nsImageRenderer.h', 24 'RetainedDisplayListBuilder.h', 25] 26 27EXPORTS.mozilla += [ 28 'PaintTracker.h', 29] 30 31UNIFIED_SOURCES += [ 32 'ActiveLayerTracker.cpp', 33 'DashedCornerFinder.cpp', 34 'DisplayItemClip.cpp', 35 'DisplayItemClipChain.cpp', 36 'DisplayListChecker.cpp', 37 'DisplayListClipState.cpp', 38 'DottedCornerFinder.cpp', 39 'FrameLayerBuilder.cpp', 40 'MaskLayerImageCache.cpp', 41 'nsCSSRendering.cpp', 42 'nsCSSRenderingBorders.cpp', 43 'nsCSSRenderingGradients.cpp', 44 'nsDisplayList.cpp', 45 'nsDisplayListInvalidation.cpp', 46 'nsImageRenderer.cpp', 47 'PaintTracker.cpp', 48 'RetainedDisplayListBuilder.cpp', 49] 50 51include('/ipc/chromium/chromium-config.mozbuild') 52 53LOCAL_INCLUDES += [ 54 '/docshell/base', 55 '/dom/base', 56 '/layout/base', 57 '/layout/generic', 58 '/layout/style', 59 '/layout/svg', 60 '/layout/tables', 61 '/layout/xul', 62] 63 64FINAL_LIBRARY = 'xul' 65 66CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] 67 68if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'): 69 # This is intended as a temporary hack to support building with VS2015. 70 # 'type cast': conversion from 'unsigned int' to 'void *' of greater size 71 CXXFLAGS += ['-wd4312'] 72 73if CONFIG['CC_TYPE'] in ('clang', 'gcc'): 74 CXXFLAGS += ['-Wno-error=shadow'] 75