michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Target: 'libEGL' michael@0: # Requires: 'libGLESv2' michael@0: # src/common: michael@0: SOURCES += ['../common/' + src for src in [ michael@0: 'debug.cpp', michael@0: 'RefCountObject.cpp', michael@0: ]] michael@0: michael@0: # src/libEGL michael@0: SOURCES += [ michael@0: 'Config.cpp', michael@0: 'Display.cpp', michael@0: 'libEGL.cpp', michael@0: 'main.cpp', michael@0: 'Surface.cpp', michael@0: ] michael@0: michael@0: # On Windows, we don't automatically get "lib" prepended, but we need it. michael@0: LIBRARY_NAME = 'libEGL' michael@0: michael@0: FORCE_SHARED_LIB = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '..', michael@0: '../../include', michael@0: '../../include/KHR', michael@0: '../libGLESv2', michael@0: ] michael@0: michael@0: michael@0: for var in ('LIBEGL_EXPORTS', 'ANGLE_BUILD', 'NOMINMAX', michael@0: '_CRT_SECURE_NO_DEPRECATE', 'ANGLE_DISABLE_TRACE'): michael@0: DEFINES[var] = True michael@0: michael@0: if not CONFIG['MOZ_DEBUG']: michael@0: DEFINES['_SECURE_SCL'] = 0 michael@0: michael@0: DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1' michael@0: michael@0: RCFILE = SRCDIR + '/libEGL.rc' michael@0: DEFFILE = SRCDIR + '/libEGL.def' michael@0: michael@0: # ANGLE uses the STL, so we can't use our derpy STL wrappers. michael@0: DISABLE_STL_WRAPPING = True