2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04:00
|
|
|
# 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/.
|
|
|
|
|
2013-03-19 22:47:00 +04:00
|
|
|
MODULE = 'gl'
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
gl_provider = 'Null'
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
gl_provider = 'WGL'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
gl_provider = 'CGL'
|
2013-06-11 21:40:27 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_GTK']:
|
2013-08-26 03:56:53 +04:00
|
|
|
if CONFIG['MOZ_EGL_XRENDER_COMPOSITE']:
|
2013-04-24 01:54:15 +04:00
|
|
|
gl_provider = 'EGL'
|
|
|
|
else:
|
|
|
|
gl_provider = 'GLX'
|
2013-08-26 03:56:53 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
gl_provider = 'GLX'
|
2013-04-24 01:54:15 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
gl_provider = 'EGL'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
gl_provider = 'EGL'
|
|
|
|
|
|
|
|
if CONFIG['MOZ_GL_PROVIDER']:
|
|
|
|
gl_provider = CONFIG['MOZ_GL_PROVIDER']
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'ForceDiscreteGPUHelperCGL.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'GfxTexturesReporter.h',
|
2013-08-13 18:35:03 +04:00
|
|
|
'GLConsts.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'GLContext.h',
|
|
|
|
'GLContextProvider.h',
|
|
|
|
'GLContextProviderImpl.h',
|
|
|
|
'GLContextSymbols.h',
|
|
|
|
'GLContextTypes.h',
|
|
|
|
'GLDefs.h',
|
|
|
|
'GLLibraryEGL.h',
|
|
|
|
'GLLibraryLoader.h',
|
|
|
|
'GLScreenBuffer.h',
|
|
|
|
'GLTextureImage.h',
|
2013-08-13 18:35:03 +04:00
|
|
|
'GLTypes.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'SharedSurface.h',
|
|
|
|
'SharedSurfaceEGL.h',
|
|
|
|
'SharedSurfaceGL.h',
|
|
|
|
'SurfaceFactory.h',
|
|
|
|
'SurfaceStream.h',
|
|
|
|
'SurfaceTypes.h',
|
2013-09-07 06:13:37 +04:00
|
|
|
'TextureGarbageBin.h',
|
2013-08-22 23:04:55 +04:00
|
|
|
'VBOArena.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += ['GLXLibrary.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
# Win32 is a special snowflake, for ANGLE
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += [
|
2013-05-16 21:22:02 +04:00
|
|
|
'SharedSurfaceANGLE.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'WGLLibrary.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'GLContextProviderEGL.cpp',
|
|
|
|
'SharedSurfaceANGLE.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_SKIA_GPU']:
|
|
|
|
EXPORTS += ['GLContextSkia.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'GLContextSkia.cpp',
|
|
|
|
]
|
|
|
|
|
2013-05-27 18:12:13 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
CPP_SOURCES += ['SharedSurfaceGralloc.cpp']
|
|
|
|
EXPORTS += ['SharedSurfaceGralloc.h']
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if gl_provider == 'CGL':
|
2013-07-01 20:32:40 +04:00
|
|
|
CMMSRCS += [
|
|
|
|
"GLContextProvider%s.mm" % (gl_provider),
|
|
|
|
]
|
2013-07-18 07:24:15 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'SharedSurfaceIO.h',
|
|
|
|
]
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'SharedSurfaceIO.cpp',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'GLContextProvider%s.cpp' % gl_provider,
|
|
|
|
]
|
|
|
|
|
|
|
|
CPP_SOURCES += [
|
2013-10-24 03:05:43 +04:00
|
|
|
'GfxTexturesReporter.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GLContext.cpp',
|
2013-08-22 21:42:05 +04:00
|
|
|
'GLContextFeatures.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GLContextTypes.cpp',
|
|
|
|
'GLContextUtils.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'GLLibraryEGL.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GLLibraryLoader.cpp',
|
|
|
|
'GLScreenBuffer.cpp',
|
|
|
|
'GLTextureImage.cpp',
|
|
|
|
'SharedSurface.cpp',
|
|
|
|
'SharedSurfaceEGL.cpp',
|
|
|
|
'SharedSurfaceGL.cpp',
|
|
|
|
'SurfaceFactory.cpp',
|
|
|
|
'SurfaceStream.cpp',
|
2013-09-07 06:13:37 +04:00
|
|
|
'TextureGarbageBin.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'TextureImageEGL.cpp',
|
|
|
|
'VBOArena.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-08-22 10:55:59 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-22 10:56:00 +04:00
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'gl'
|
|
|
|
|
2013-10-03 11:11:13 +04:00
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|