2017-01-17 03:21:43 +03:00
|
|
|
# -*- 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')
|
|
|
|
|
2017-01-17 03:21:52 +03:00
|
|
|
EXPORTS.mozilla.webrender += [
|
2017-03-31 17:29:14 +03:00
|
|
|
'RenderBufferTextureHost.h',
|
2018-01-15 16:22:15 +03:00
|
|
|
'RenderCompositor.h',
|
|
|
|
'RenderCompositorOGL.h',
|
2019-04-02 06:16:20 +03:00
|
|
|
'RenderEGLImageTextureHost.h',
|
2017-01-17 03:21:43 +03:00
|
|
|
'RendererOGL.h',
|
2019-03-28 17:51:40 +03:00
|
|
|
'RendererScreenshotGrabber.h',
|
2017-10-30 20:10:29 +03:00
|
|
|
'RenderSharedSurfaceTextureHost.h',
|
2017-03-31 17:29:14 +03:00
|
|
|
'RenderTextureHost.h',
|
|
|
|
'RenderTextureHostOGL.h',
|
2017-01-17 03:21:43 +03:00
|
|
|
'RenderThread.h',
|
2017-01-17 03:22:01 +03:00
|
|
|
'webrender_ffi.h',
|
2017-01-17 03:21:43 +03:00
|
|
|
'WebRenderAPI.h',
|
|
|
|
'WebRenderTypes.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2017-03-27 14:44:52 +03:00
|
|
|
'Moz2DImageRenderer.cpp',
|
2017-03-31 17:29:14 +03:00
|
|
|
'RenderBufferTextureHost.cpp',
|
2018-01-15 16:22:15 +03:00
|
|
|
'RenderCompositor.cpp',
|
|
|
|
'RenderCompositorOGL.cpp',
|
2019-04-02 06:16:20 +03:00
|
|
|
'RenderEGLImageTextureHost.cpp',
|
2017-01-17 03:21:43 +03:00
|
|
|
'RendererOGL.cpp',
|
2019-03-28 17:51:40 +03:00
|
|
|
'RendererScreenshotGrabber.cpp',
|
2017-10-30 20:10:29 +03:00
|
|
|
'RenderSharedSurfaceTextureHost.cpp',
|
2017-03-31 17:29:14 +03:00
|
|
|
'RenderTextureHost.cpp',
|
|
|
|
'RenderTextureHostOGL.cpp',
|
2017-01-17 03:21:43 +03:00
|
|
|
'RenderThread.cpp',
|
|
|
|
'WebRenderAPI.cpp',
|
2017-11-30 23:12:14 +03:00
|
|
|
'WebRenderTypes.cpp',
|
2017-01-17 03:21:43 +03:00
|
|
|
]
|
|
|
|
|
2017-03-31 17:29:14 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
|
|
'RenderMacIOSurfaceTextureHostOGL.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'RenderMacIOSurfaceTextureHostOGL.cpp',
|
|
|
|
]
|
|
|
|
|
2018-11-16 05:22:15 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
|
|
'RenderAndroidSurfaceTextureHostOGL.h',
|
2019-03-20 14:51:33 +03:00
|
|
|
'RenderCompositorEGL.h',
|
2018-11-16 05:22:15 +03:00
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'RenderAndroidSurfaceTextureHostOGL.cpp',
|
2019-03-20 14:51:33 +03:00
|
|
|
'RenderCompositorEGL.cpp',
|
2018-11-16 05:22:15 +03:00
|
|
|
]
|
|
|
|
|
2017-08-07 13:15:22 +03:00
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|
|
|
|
EXPORTS.mozilla.webrender += [
|
2019-09-19 21:15:11 +03:00
|
|
|
'DCLayerTree.h',
|
2018-01-19 05:01:04 +03:00
|
|
|
'RenderCompositorANGLE.h',
|
2017-08-07 13:15:22 +03:00
|
|
|
'RenderD3D11TextureHostOGL.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'RenderD3D11TextureHostOGL.cpp',
|
|
|
|
]
|
2018-03-29 05:23:31 +03:00
|
|
|
SOURCES += [
|
2019-09-19 21:15:11 +03:00
|
|
|
'DCLayerTree.cpp',
|
2018-03-29 05:23:31 +03:00
|
|
|
'RenderCompositorANGLE.cpp',
|
|
|
|
]
|
2017-08-07 13:15:22 +03:00
|
|
|
|
2019-02-12 10:33:31 +03:00
|
|
|
if CONFIG['MOZ_WAYLAND']:
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
|
|
'RenderCompositorEGL.h',
|
2019-10-17 14:28:56 +03:00
|
|
|
'RenderWaylandDMABUFTextureHostOGL.h',
|
2019-02-12 10:33:31 +03:00
|
|
|
]
|
|
|
|
SOURCES += [
|
|
|
|
'RenderCompositorEGL.cpp',
|
2019-10-17 14:28:56 +03:00
|
|
|
'RenderWaylandDMABUFTextureHostOGL.cpp',
|
2019-02-12 10:33:31 +03:00
|
|
|
]
|
|
|
|
|
2019-08-21 15:25:42 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk'):
|
2017-11-07 04:21:25 +03:00
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
|
|
|
|
|
2019-01-13 02:43:00 +03:00
|
|
|
if CONFIG['COMPILE_ENVIRONMENT']:
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
|
|
'!webrender_ffi_generated.h',
|
|
|
|
]
|
|
|
|
|
2019-10-08 00:15:19 +03:00
|
|
|
GeneratedFile('webrender_ffi_generated.h',
|
2020-02-28 17:07:15 +03:00
|
|
|
script='/build/RunCbindgen.py', entry_point='generate',
|
2019-10-08 00:15:19 +03:00
|
|
|
inputs=[
|
|
|
|
'/gfx/webrender_bindings',
|
|
|
|
'/gfx/wr/webrender',
|
|
|
|
'/gfx/wr/webrender_api',
|
|
|
|
])
|
2019-01-13 02:43:00 +03:00
|
|
|
|
|
|
|
|
2017-01-17 03:21:43 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
2018-07-31 16:10:07 +03:00
|
|
|
|
2019-02-12 10:33:31 +03:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|