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 += [
|
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 += [
|
|
|
|
'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',
|
|
|
|
]
|
|
|
|
SOURCES += [
|
|
|
|
'RenderCompositorEGL.cpp',
|
|
|
|
]
|
|
|
|
|
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']:
|
|
|
|
GENERATED_FILES += [
|
|
|
|
'webrender_ffi_generated.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
|
|
'!webrender_ffi_generated.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
ffi_generated = GENERATED_FILES['webrender_ffi_generated.h']
|
|
|
|
ffi_generated.script = '/layout/style/RunCbindgen.py:generate'
|
|
|
|
ffi_generated.inputs = [
|
|
|
|
'/gfx/webrender_bindings',
|
|
|
|
'/gfx/wr/webrender',
|
|
|
|
'/gfx/wr/webrender_api',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
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']
|