gfx/webrender_bindings/moz.build
author Michael Smith <michael@spinda.net>
Thu, 22 Jun 2017 15:31:32 -0700
changeset 372791 a179412ca028e816f367e2841f2afd91b472afe8
parent 359024 3c508994ee44b4db6d7832fb5ad5ceeae13dcf61
child 373207 1299e43ad52839a253cb303e2d7b0b79c45af7b0
permissions -rw-r--r--
Bug 1373739 - Constrain widget size to screen size in headless mode. r=jrmuizel Every other widget backend ensures widget size is bounded to screen size, but this check was missing from headless. MozReview-Commit-ID: 6bKIAkdRxoO

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'Graphics: WebRender')

EXPORTS.mozilla.webrender += [
    'RenderBufferTextureHost.h',
    'RendererOGL.h',
    'RenderTextureHost.h',
    'RenderTextureHostOGL.h',
    'RenderThread.h',
    'webrender_ffi.h',
    'webrender_ffi_generated.h',
    'WebRenderAPI.h',
    'WebRenderTypes.h',
]

UNIFIED_SOURCES += [
    'Moz2DImageRenderer.cpp',
    'RenderBufferTextureHost.cpp',
    'RendererOGL.cpp',
    'RenderTextureHost.cpp',
    'RenderTextureHostOGL.cpp',
    'RenderThread.cpp',
    'WebRenderAPI.cpp',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    EXPORTS.mozilla.webrender += [
        'RenderMacIOSurfaceTextureHostOGL.h',
    ]
    UNIFIED_SOURCES += [
        'RenderMacIOSurfaceTextureHostOGL.cpp',
    ]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'