Make Metal profile optional in the CMake project.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 29 May 2016 00:31:36 -0400
changeset 1172 55700e64bd8c
parent 1171 9f27482a2f58
child 1173 4b2f745c643b
Make Metal profile optional in the CMake project.
CMakeLists.txt
--- a/CMakeLists.txt	Sun May 29 00:26:44 2016 -0400
+++ b/CMakeLists.txt	Sun May 29 00:31:36 2016 -0400
@@ -8,6 +8,7 @@
 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)
+OPTION(PROFILE_METAL "Build MojoShader with support for the Metal profile" ON)
 OPTION(EFFECT_SUPPORT "Build MojoShader with support for Effect framework files" ON)
 OPTION(FLIP_VIEWPORT "Build MojoShader with the ability to flip the GL viewport" OFF)
 OPTION(DEPTH_CLIPPING "Build MojoShader with the ability to simulate [0, 1] depth clipping" OFF)
@@ -95,6 +96,9 @@
 IF(NOT PROFILE_ARB1_NV)
     ADD_DEFINITIONS(-DSUPPORT_PROFILE_ARB1_NV=0)
 ENDIF(NOT PROFILE_ARB1_NV)
+IF(NOT PROFILE_METAL)
+    ADD_DEFINITIONS(-DSUPPORT_PROFILE_METAL=0)
+ENDIF(NOT PROFILE_ARB1_NV)
 
 IF(EFFECT_SUPPORT)
     IF(UNIX)