diff options
-rw-r--r-- | angle.gyp | 45 | ||||
-rw-r--r-- | common_conditions.gypi | 1 |
2 files changed, 39 insertions, 7 deletions
@@ -1,6 +1,43 @@ -# ANGLE is the Windows-specific translator from OGL ES to D3D +# ANGLE is the Windows-specific translator from OGL ES 2.0 to D3D 9 { + 'conditions': [ + [ 'skia_angle', { + 'target_defaults': { + 'include_dirs': [ + '$(DXSDK_DIR)/Include', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'conditions': [ + [ 'skia_arch_width == 32 ', { + 'AdditionalLibraryDirectories': [ + '$(DXSDK_DIR)/Lib/x86', + ], + },{ + 'AdditionalLibraryDirectories': [ + '$(DXSDK_DIR)/Lib/x64', + ], + }], + ], + }, + }, + 'defines': [ + 'NOMINMAX', + ], + 'defines/': [ + ['exclude', 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES'], + ], + }, + 'variables': { + 'component': 'static_library', + 'skia_warnings_as_errors': 0, + }, + 'includes': [ + '../third_party/externals/angle/src/build_angle.gypi', + ], + }], + ], 'targets': [ { 'target_name': 'angle', @@ -9,13 +46,9 @@ [ 'skia_angle', { 'direct_dependent_settings': { 'include_dirs': [ - '../third_party/externals/angle2/include', + '../third_party/externals/angle/include', ], }, - 'dependencies': [ - '../third_party/externals/angle2/src/angle.gyp:libEGL', - '../third_party/externals/angle2/src/angle.gyp:libGLESv2', - ], }], ], }, diff --git a/common_conditions.gypi b/common_conditions.gypi index 817c4a1..6ae76a6 100644 --- a/common_conditions.gypi +++ b/common_conditions.gypi @@ -22,7 +22,6 @@ 'GR_GL_FUNCTION_TYPE=__stdcall', ], 'msvs_cygwin_shell': 0, - 'msvs_disabled_warnings': [4275], 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '3', |