[ 'skia_mesa and skia_os not in ["mac", "linux"]', {
'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)',
}],
- [ 'skia_angle and not (skia_os == "win" or skia_os == "linux")', {
- 'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_os="linux".)',
+ [ 'skia_angle and not (skia_os == "win" or skia_os == "linux" or skia_os == "mac")', {
+ 'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_os="linux" or skia_os="mac".)',
}],
[ 'skia_os == "chromeos" and OS != "linux"', {
'error': '<!(Skia ChromeOS build is only supported on Linux.)',
[ 'skia_os == "mac"',
{
'defines': [ 'SK_BUILD_FOR_MAC' ],
+ 'conditions': [
+ # ANGLE for mac hits -Wunneeded-internal-declaration if this isn't set.
+ [ 'skia_angle', { 'defines': [ 'YY_NO_INPUT' ], } ],
+ ],
'configurations': {
'Coverage': {
'xcode_settings': {
// We load the ANGLE library and never let it go
#if defined _WIN32
gANGLELib = DynamicLoadLibrary("libGLESv2.dll");
+#elif defined SK_BUILD_FOR_MAC
+ gANGLELib = DynamicLoadLibrary("libGLESv2.dylib");
#else
gANGLELib = DynamicLoadLibrary("libGLESv2.so");
#endif // defined _WIN32