| # We're targeting Windows 10 which will have DirectX 11 on it so require that |
| # but make DirectX 9 optional |
| |
| list(APPEND ANGLE_DEFINITIONS |
| GL_APICALL= |
| GL_API= |
| NOMINMAX |
| ) |
| |
| # We're targeting Windows 10 which will have DirectX 11 |
| list(APPEND ANGLE_SOURCES |
| ${_d3d11_backend_sources} |
| ${_d3d_shared_sources} |
| |
| ${angle_translator_hlsl_sources} |
| |
| ${libangle_gpu_info_util_sources} |
| ${libangle_gpu_info_util_win_sources} |
| ) |
| |
| list(APPEND ANGLE_DEFINITIONS |
| ANGLE_ENABLE_D3D11 |
| ANGLE_ENABLE_HLSL |
| ) |
| |
| list(APPEND ANGLEGLESv2_LIBRARIES dxguid dxgi) |
| |
| # DirectX 9 support should be optional but ANGLE will not compile without it |
| list(APPEND ANGLE_SOURCES ${_d3d9_backend_sources}) |
| list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_D3D9) |
| list(APPEND ANGLEGLESv2_LIBRARIES d3d9) |
| |
| # Use shared libraries |
| set(GLESv2_LIBRARY_TYPE SHARED) |
| set(EGL_LIBRARY_TYPE SHARED) |