diff options
Diffstat (limited to 'gfx/angle/src/libGLESv2/moz.build')
-rwxr-xr-x | gfx/angle/src/libGLESv2/moz.build | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/gfx/angle/src/libGLESv2/moz.build b/gfx/angle/src/libGLESv2/moz.build new file mode 100755 index 000000000..1d40b3b67 --- /dev/null +++ b/gfx/angle/src/libGLESv2/moz.build @@ -0,0 +1,88 @@ + +# +# WARNING WARNING WARNING +# +# This file is generated by generate_mozbuild.py (from +# https://github.com/mozilla/angle). Do not modify it without also modifying +# generate_mozbuild.py. +# +# WARNING WARNING WARNING +# +UNIFIED_SOURCES += [ + 'entry_points_egl.cpp', + 'entry_points_egl_ext.cpp', + 'entry_points_gles_2_0.cpp', + 'entry_points_gles_2_0_ext.cpp', + 'entry_points_gles_3_0.cpp', + 'entry_points_gles_3_1.cpp', + 'global_state.cpp', + 'libGLESv2.cpp', +] + + +if CONFIG['GNU_CXX']: + CXXFLAGS += [ + '-Wno-attributes', + '-Wno-shadow', + '-Wno-sign-compare', + '-Wno-unknown-pragmas', + '-Wno-unreachable-code', + ] + if CONFIG['CLANG_CXX']: + CXXFLAGS += [ + '-Wno-inconsistent-missing-override', + '-Wno-unused-private-field', + ] + else: + CXXFLAGS += [ + '-Wno-shadow-compatible-local', + '-Wno-shadow-local', + ] + +if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']: + LOCAL_INCLUDES += ['%' + '%s/include/' % CONFIG['MOZ_DIRECTX_SDK_PATH']] + +DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True +DEFINES['_HAS_EXCEPTIONS'] = 0 + +if not CONFIG['MOZ_DEBUG']: + DEFINES['_SECURE_SCL'] = 0 + +DEFINES['ANGLE_ENABLE_D3D9'] = True +DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True +if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']: + DEFINES['ANGLE_ENABLE_D3D11'] = True + +DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1' +DEFINES['ANGLE_NO_EXCEPTIONS'] = True + +# We need these defined to nothing so that we don't get bogus dllimport declspecs +DEFINES['GL_APICALL'] = "" +DEFINES['GL_GLEXT_PROTOTYPES'] = "" +DEFINES['EGLAPI'] = "" + + + +LOCAL_INCLUDES += [ '../../include', '../../src', '../../src/common/third_party/numerics', '../../src/third_party/khronos' ] + +DEFINES['LIBANGLE_IMPLEMENTATION'] = "1" +DEFINES['ANGLE_ENABLE_HLSL'] = "1" +DEFINES['ANGLE_ENABLE_GLSL'] = "1" +DEFINES['ANGLE_ENABLE_ESSL'] = "1" +DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = "1" + +if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']: + OS_LIBS += [ 'd3d9', 'dxguid' ] +else: + EXTRA_DSO_LDOPTS += [ + '\'%s/lib/%s/d3d9.lib\'' % (CONFIG['MOZ_DIRECTX_SDK_PATH'], CONFIG['MOZ_D3D_CPU_SUFFIX']), + '\'%s/lib/%s/dxguid.lib\'' % (CONFIG['MOZ_DIRECTX_SDK_PATH'], CONFIG['MOZ_D3D_CPU_SUFFIX']), + ] + +GeckoSharedLibrary('libGLESv2', linkage=None) + +RCFILE = SRCDIR + '/libGLESv2.rc' +DEFFILE = SRCDIR + '/libGLESv2.def' + +USE_LIBS += ['libANGLE'] + |