{
'variables':
{
- 'angle_enable_d3d9%': 1,
- 'angle_enable_d3d11%': 1,
# These file lists are shared with the GN build.
'angle_libangle_sources':
[
'common/debug.h',
'common/event_tracer.cpp',
'common/event_tracer.h',
+ 'common/features.h',
'common/mathutil.cpp',
'common/mathutil.h',
'common/platform.h',
+ 'common/NativeWindow.h',
'common/tls.cpp',
'common/tls.h',
'common/utilities.cpp',
'libGLESv2/Buffer.h',
'libGLESv2/Caps.cpp',
'libGLESv2/Caps.h',
+ 'libGLESv2/Constants.h',
'libGLESv2/Context.cpp',
'libGLESv2/Context.h',
'libGLESv2/Error.cpp',
'libGLESv2/VertexAttribute.h',
'libGLESv2/angletypes.cpp',
'libGLESv2/angletypes.h',
- 'libGLESv2/constants.h',
'libGLESv2/formatutils.cpp',
'libGLESv2/formatutils.h',
'libGLESv2/main.cpp',
'libGLESv2/renderer/Image.h',
'libGLESv2/renderer/IndexRangeCache.cpp',
'libGLESv2/renderer/IndexRangeCache.h',
+ 'libGLESv2/renderer/ProgramImpl.cpp',
'libGLESv2/renderer/ProgramImpl.h',
'libGLESv2/renderer/QueryImpl.h',
'libGLESv2/renderer/RenderTarget.h',
'libGLESv2/renderer/TextureImpl.h',
'libGLESv2/renderer/TransformFeedbackImpl.h',
'libGLESv2/renderer/VertexArrayImpl.h',
+ 'libGLESv2/renderer/Workarounds.h',
'libGLESv2/renderer/copyimage.cpp',
'libGLESv2/renderer/copyimage.h',
'libGLESv2/renderer/copyimage.inl',
'third_party/systeminfo/SystemInfo.cpp',
'third_party/systeminfo/SystemInfo.h',
],
+ 'angle_libangle_win_sources':
+ [
+ # TODO(kbr): port NativeWindow to other EGL platforms.
+ 'common/win32/NativeWindow.cpp',
+ ],
+ 'angle_libangle_winrt_sources':
+ [
+ 'common/winrt/CoreWindowNativeWindow.cpp',
+ 'common/winrt/CoreWindowNativeWindow.h',
+ 'common/winrt/IInspectableNativeWindow.cpp',
+ 'common/winrt/IInspectableNativeWindow.h',
+ ],
'angle_d3d_shared_sources':
[
'libGLESv2/renderer/d3d/BufferD3D.cpp',
},
# Everything below this is duplicated in the GN build. If you change
# anything also change angle/BUILD.gn
- 'conditions':
+ 'targets':
[
- ['OS=="win"',
{
- 'targets':
+ 'target_name': 'libANGLE',
+ #TODO(jamdill/geofflang): support shared
+ 'type': 'static_library',
+ 'dependencies': [ 'translator', 'commit_id', ],
+ 'includes': [ '../build/common_defines.gypi', ],
+
+ 'include_dirs':
+ [
+ '.',
+ '../include',
+ 'libGLESv2',
+ ],
+ 'sources':
+ [
+ '<@(angle_libangle_sources)',
+ ],
+ 'defines':
+ [
+ 'GL_APICALL=',
+ 'GL_GLEXT_PROTOTYPES=',
+ 'EGLAPI=',
+ 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ "d3dcompiler_46.dll", "d3dcompiler_43.dll" }',
+ ],
+ 'direct_dependent_settings':
+ {
+ 'include_dirs':
+ [
+ '.',
+ '../include',
+ 'libGLESv2',
+ ],
+ 'defines':
+ [
+ 'GL_APICALL=',
+ 'GL_GLEXT_PROTOTYPES=',
+ 'EGLAPI=',
+ 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ "d3dcompiler_46.dll", "d3dcompiler_43.dll" }',
+ ],
+ },
+ 'conditions':
[
+ ['angle_enable_d3d9==1 or angle_enable_d3d11==1',
{
- 'target_name': 'libANGLE',
- #TODO(jamdill/geofflang): support shared
- 'type': 'static_library',
- 'dependencies': [ 'translator', 'commit_id', 'copy_compiler_dll' ],
- 'includes': [ '../build/common_defines.gypi', ],
- 'include_dirs':
+ 'sources':
[
- '.',
- '../include',
- 'libGLESv2',
+ '<@(angle_d3d_shared_sources)',
],
+ }],
+ ['angle_enable_d3d9==1',
+ {
'sources':
[
- '<@(angle_libangle_sources)',
+ '<@(angle_d3d9_sources)',
],
'defines':
[
- 'GL_APICALL=',
- 'GL_GLEXT_PROTOTYPES=',
- 'EGLAPI=',
- 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ "d3dcompiler_46.dll", "d3dcompiler_43.dll" }',
+ 'ANGLE_ENABLE_D3D9',
],
- 'direct_dependent_settings':
+ 'link_settings':
{
- 'include_dirs':
- [
- '.',
- '../include',
- 'libGLESv2',
- ],
- 'defines':
- [
- 'GL_APICALL=',
- 'GL_GLEXT_PROTOTYPES=',
- 'EGLAPI=',
- 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ "d3dcompiler_46.dll", "d3dcompiler_43.dll" }',
- ],
+ 'msvs_settings':
+ {
+ 'VCLinkerTool':
+ {
+ 'AdditionalDependencies':
+ [
+ 'd3d9.lib',
+ ]
+ }
+ },
},
- 'conditions':
+ }],
+ ['angle_enable_d3d11==1',
+ {
+ 'sources':
[
- ['angle_enable_d3d9==1 or angle_enable_d3d11==1',
- {
- 'sources':
- [
- '<@(angle_d3d_shared_sources)',
- ],
- }],
- ['angle_enable_d3d9==1',
+ '<@(angle_d3d11_sources)',
+ ],
+ 'defines':
+ [
+ 'ANGLE_ENABLE_D3D11',
+ ],
+ 'link_settings':
+ {
+ 'msvs_settings':
{
- 'sources':
- [
- '<@(angle_d3d9_sources)',
- ],
- 'defines':
- [
- 'ANGLE_ENABLE_D3D9',
- ],
- 'link_settings':
+ 'VCLinkerTool':
{
- 'msvs_settings':
- {
- 'VCLinkerTool':
+ 'conditions':
+ [
+ ['angle_build_winrt==0',
{
'AdditionalDependencies':
[
- 'd3d9.lib',
- ]
- }
- },
- },
- }],
- ['angle_enable_d3d11==1',
- {
- 'sources':
- [
- '<@(angle_d3d11_sources)',
- ],
- 'defines':
- [
- 'ANGLE_ENABLE_D3D11',
- ],
- 'link_settings':
- {
- 'msvs_settings':
- {
- 'VCLinkerTool':
+ 'dxguid.lib',
+ ],
+ }],
+ ['angle_build_winrt==1',
{
'AdditionalDependencies':
[
'dxguid.lib',
- ]
- }
- },
- },
- }],
+ 'd3d11.lib',
+ 'd3dcompiler.lib',
+ ],
+ }],
+ ],
+ }
+ },
+ },
+ }],
+ ['angle_build_winrt==0 and OS=="win"',
+ {
+ 'sources':
+ [
+ '<@(angle_libangle_win_sources)',
],
-
- 'configurations':
+ 'dependencies':
+ [
+ 'copy_compiler_dll'
+ ],
+ }],
+ ['angle_build_winrt==1',
+ {
+ 'sources':
+ [
+ '<@(angle_libangle_winrt_sources)',
+ ],
+ 'defines':
+ [
+ 'NTDDI_VERSION=NTDDI_WINBLUE',
+ ],
+ 'msvs_enable_winrt' : '1',
+ 'msvs_requires_importlibrary' : 'true',
+ 'msvs_settings':
{
- 'Debug':
+ 'VCLinkerTool':
{
- 'defines':
- [
- 'ANGLE_ENABLE_PERF',
- ],
- 'msvs_settings':
- {
- 'VCLinkerTool':
- {
- 'AdditionalDependencies':
- [
- 'd3d9.lib',
- ]
- }
- },
- },
+ 'EnableCOMDATFolding': '1',
+ 'OptimizeReferences': '1',
+ }
},
- },
+ }],
+ ['angle_build_winphone==1',
{
- 'target_name': 'libGLESv2',
- 'type': 'shared_library',
- 'dependencies': [ 'libANGLE' ],
- 'includes': [ '../build/common_defines.gypi', ],
- 'sources':
+ 'msvs_enable_winphone' : '1',
+ }],
+ ],
+ 'configurations':
+ {
+ 'Debug_Base':
+ {
+ 'defines':
[
- 'libGLESv2/libGLESv2.cpp',
- 'libGLESv2/libGLESv2.def',
- 'libGLESv2/libGLESv2.rc',
+ 'ANGLE_ENABLE_DEBUG_ANNOTATIONS',
+ 'ANGLE_GENERATE_SHADER_DEBUG_INFO'
],
+ 'msvs_settings':
+ {
+ 'VCLinkerTool':
+ {
+ 'AdditionalDependencies':
+ [
+ 'd3d9.lib',
+ ]
+ }
+ },
},
+ },
+ },
+ {
+ 'target_name': 'libGLESv2',
+ 'type': 'shared_library',
+ 'dependencies': [ 'libANGLE' ],
+ 'includes': [ '../build/common_defines.gypi', ],
+ 'sources':
+ [
+ 'libGLESv2/libGLESv2.cpp',
+ 'libGLESv2/libGLESv2.def',
+ 'libGLESv2/libGLESv2.rc',
+ ],
+ 'conditions':
+ [
+ ['angle_build_winrt==1',
{
- 'target_name': 'libGLESv2_static',
- 'type': 'static_library',
- # make sure we depend on commit_id as a hard dependency, otherwise
- # we will try to build the static_lib in parallel
- 'dependencies': [ 'libANGLE', 'commit_id' ],
- 'includes': [ '../build/common_defines.gypi', ],
- 'sources':
+ 'msvs_enable_winrt' : '1',
+ 'msvs_requires_importlibrary' : 'true',
+ 'msvs_settings':
+ {
+ 'VCLinkerTool':
+ {
+ 'EnableCOMDATFolding': '1',
+ 'OptimizeReferences': '1',
+ }
+ },
+ }],
+ ['angle_build_winphone==1',
+ {
+ 'msvs_enable_winphone' : '1',
+ }],
+ ],
+ 'configurations':
+ {
+ 'Debug_Base':
+ {
+ 'defines':
[
- 'libGLESv2/libGLESv2.cpp',
- 'libGLESv2/libGLESv2.rc',
+ 'ANGLE_ENABLE_DEBUG_ANNOTATIONS',
],
},
+ },
+ },
+ {
+ 'target_name': 'libGLESv2_static',
+ 'type': 'static_library',
+ # make sure we depend on commit_id as a hard dependency, otherwise
+ # we will try to build the static_lib in parallel
+ 'dependencies': [ 'libANGLE', 'commit_id' ],
+ 'includes': [ '../build/common_defines.gypi', ],
+ 'sources':
+ [
+ 'libGLESv2/libGLESv2.cpp',
+ 'libGLESv2/libGLESv2.rc',
+ ],
+ 'conditions':
+ [
+ ['angle_build_winrt==1',
+ {
+ 'msvs_enable_winrt' : '1',
+ 'msvs_requires_importlibrary' : 'true',
+ 'msvs_settings':
+ {
+ 'VCLinkerTool':
+ {
+ 'EnableCOMDATFolding': '1',
+ 'OptimizeReferences': '1',
+ }
+ },
+ }],
+ ['angle_build_winphone==1',
+ {
+ 'msvs_enable_winphone' : '1',
+ }],
],
},
- ],
],
}