From f20445043031d540ed2e68a00264a6bdd79e997b Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sun, 7 Apr 2019 00:19:10 -0400 Subject: [PATCH] Add PROFILE_GLSLES CMake option --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31598c5c..eb27199d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ OPTION(BUILD_SHARED "Build MojoShader as a shared library" OFF) OPTION(PROFILE_D3D "Build MojoShader with support for the D3D profile" ON) OPTION(PROFILE_BYTECODE "Build MojoShader with support for the BYTECODE profile" ON) OPTION(PROFILE_GLSL120 "Build MojoShader with support for the GLSL120 profile" ON) +OPTION(PROFILE_GLSLES "Build MojoShader with support for the GLSLES profile" ON) OPTION(PROFILE_GLSL "Build MojoShader with support for the GLSL profile" ON) OPTION(PROFILE_ARB1 "Build MojoShader with support for the ARB1 profile" ON) OPTION(PROFILE_ARB1_NV "Build MojoShader with support for the ARB1_NV profile" ON) @@ -108,6 +109,9 @@ ENDIF(NOT PROFILE_BYTECODE) IF(NOT PROFILE_GLSL120) ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSL120=0) ENDIF(NOT PROFILE_GLSL120) +IF(NOT PROFILE_GLSLES) + ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSLES=0) +ENDIF(NOT PROFILE_GLSLES) IF(NOT PROFILE_GLSL) ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSL=0) ENDIF(NOT PROFILE_GLSL)