Created
April 7, 2019 01:36
-
-
Save TheSpydog/270f7c6a8fcd19d04c8fb7aca22c82cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
changeset: 1194:ee0b613094d8 | |
tag: tip | |
user: Caleb Cornett <[email protected]> | |
date: Sat Apr 06 21:34:25 2019 -0400 | |
summary: Add PROFILE_GLSLES CMake option | |
diff -r 4decf307c228 -r ee0b613094d8 CMakeLists.txt | |
--- a/CMakeLists.txt Wed Mar 06 15:09:49 2019 -0500 | |
+++ b/CMakeLists.txt Sat Apr 06 21:34:25 2019 -0400 | |
@@ -5,6 +5,7 @@ | |
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 @@ | |
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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment