diff --git a/src/dawn/tests/BUILD.gn b/src/dawn/tests/BUILD.gn index 5adef33b55..fea0b8c356 100644 --- a/src/dawn/tests/BUILD.gn +++ b/src/dawn/tests/BUILD.gn @@ -598,7 +598,7 @@ source_set("white_box_tests_sources") { if (dawn_enable_opengles && defined(dawn_angle_dir)) { sources += [ "white_box/EGLImageWrappingTests.cpp" ] - deps += [ "${dawn_angle_dir}:libEGL" ] + include_dirs = [ "${dawn_angle_dir}/include" ] } libs = [] diff --git a/src/dawn/tests/white_box/EGLImageWrappingTests.cpp b/src/dawn/tests/white_box/EGLImageWrappingTests.cpp index f20fda011d..595a85105d 100644 --- a/src/dawn/tests/white_box/EGLImageWrappingTests.cpp +++ b/src/dawn/tests/white_box/EGLImageWrappingTests.cpp @@ -29,8 +29,10 @@ namespace { class EGLFunctions { public: EGLFunctions() { -#ifdef DAWN_PLATFORM_WINDOWS +#if defined(DAWN_PLATFORM_WINDOWS) const char* eglLib = "libEGL.dll"; +#elif defined(DAWN_PLATFORM_MACOS) + const char* eglLib = "libEGL.dylib"; #else const char* eglLib = "libEGL.so"; #endif