gfx/webrender_bindings/moz.build
author Cosmin Sabou <csabou@mozilla.com>
Thu, 02 Aug 2018 19:59:53 +0300
changeset 487628 f7f4ba3486b5e44b6ccdc3b150f5aa0aab76ffb7
parent 487622 5950c9d63c3b4fd63a25464a7b50944aaec7079f
child 487990 997fd8419a4b28cdaaf3263e88dcad585ccfb101
permissions -rw-r--r--
Backed out changeset 5950c9d63c3b (bug 1090497) for build bustages on several files. CLOSED TREE

# -*- 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',
    'RenderCompositor.h',
    'RenderCompositorOGL.h',
    'RendererOGL.h',
    'RenderSharedSurfaceTextureHost.h',
    'RenderTextureHost.h',
    'RenderTextureHostOGL.h',
    'RenderTextureHostWrapper.h',
    'RenderThread.h',
    'webrender_ffi.h',
    'webrender_ffi_generated.h',
    'WebRenderAPI.h',
    'WebRenderTypes.h',
]

UNIFIED_SOURCES += [
    'Moz2DImageRenderer.cpp',
    'RenderBufferTextureHost.cpp',
    'RenderCompositor.cpp',
    'RenderCompositorOGL.cpp',
    'RendererOGL.cpp',
    'RenderSharedSurfaceTextureHost.cpp',
    'RenderTextureHost.cpp',
    'RenderTextureHostOGL.cpp',
    'RenderTextureHostWrapper.cpp',
    'RenderThread.cpp',
    'WebRenderAPI.cpp',
    'WebRenderTypes.cpp',
]

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

if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
    DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
    EXPORTS.mozilla.webrender += [
        'RenderCompositorANGLE.h',
        'RenderD3D11TextureHostOGL.h',
    ]
    UNIFIED_SOURCES += [
        'RenderD3D11TextureHostOGL.cpp',
    ]
    SOURCES += [
        'RenderCompositorANGLE.cpp',
    ]

if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk3'):
    CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
    CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']

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

FINAL_LIBRARY = 'xul'