CMakeLists.txt
changeset 1255 0135d797e287
parent 1233 e3bd5f116e38
child 1271 5a67d082c55f
equal deleted inserted replaced
1254:422f68756c9f 1255:0135d797e287
     2 PROJECT(MojoShader)
     2 PROJECT(MojoShader)
     3 
     3 
     4 OPTION(BUILD_SHARED_LIBS "Build MojoShader as a shared library" OFF)
     4 OPTION(BUILD_SHARED_LIBS "Build MojoShader as a shared library" OFF)
     5 OPTION(PROFILE_D3D "Build MojoShader with support for the D3D profile" ON)
     5 OPTION(PROFILE_D3D "Build MojoShader with support for the D3D profile" ON)
     6 OPTION(PROFILE_BYTECODE "Build MojoShader with support for the BYTECODE profile" ON)
     6 OPTION(PROFILE_BYTECODE "Build MojoShader with support for the BYTECODE profile" ON)
       
     7 OPTION(PROFILE_HLSL "Build MojoShader with support for the HLSL profile" ON)
     7 OPTION(PROFILE_GLSL120 "Build MojoShader with support for the GLSL120 profile" ON)
     8 OPTION(PROFILE_GLSL120 "Build MojoShader with support for the GLSL120 profile" ON)
     8 OPTION(PROFILE_GLSLES "Build MojoShader with support for the GLSLES profile" ON)
     9 OPTION(PROFILE_GLSLES "Build MojoShader with support for the GLSLES profile" ON)
     9 OPTION(PROFILE_GLSL "Build MojoShader with support for the GLSL profile" ON)
    10 OPTION(PROFILE_GLSL "Build MojoShader with support for the GLSL profile" ON)
    10 OPTION(PROFILE_ARB1 "Build MojoShader with support for the ARB1 profile" ON)
    11 OPTION(PROFILE_ARB1 "Build MojoShader with support for the ARB1 profile" ON)
    11 OPTION(PROFILE_ARB1_NV "Build MojoShader with support for the ARB1_NV profile" ON)
    12 OPTION(PROFILE_ARB1_NV "Build MojoShader with support for the ARB1_NV profile" ON)
   106     ADD_DEFINITIONS(-DSUPPORT_PROFILE_D3D=0)
   107     ADD_DEFINITIONS(-DSUPPORT_PROFILE_D3D=0)
   107 ENDIF(NOT PROFILE_D3D)
   108 ENDIF(NOT PROFILE_D3D)
   108 IF(NOT PROFILE_BYTECODE)
   109 IF(NOT PROFILE_BYTECODE)
   109     ADD_DEFINITIONS(-DSUPPORT_PROFILE_BYTECODE=0)
   110     ADD_DEFINITIONS(-DSUPPORT_PROFILE_BYTECODE=0)
   110 ENDIF(NOT PROFILE_BYTECODE)
   111 ENDIF(NOT PROFILE_BYTECODE)
       
   112 IF(NOT PROFILE_HLSL)
       
   113     ADD_DEFINITIONS(-DSUPPORT_PROFILE_HLSL=0)
       
   114 ENDIF(NOT PROFILE_HLSL)
   111 IF(NOT PROFILE_GLSL120)
   115 IF(NOT PROFILE_GLSL120)
   112     ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSL120=0)
   116     ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSL120=0)
   113 ENDIF(NOT PROFILE_GLSL120)
   117 ENDIF(NOT PROFILE_GLSL120)
   114 IF(NOT PROFILE_GLSLES)
   118 IF(NOT PROFILE_GLSLES)
   115     ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSLES=0)
   119     ADD_DEFINITIONS(-DSUPPORT_PROFILE_GLSLES=0)
   157 ADD_LIBRARY(mojoshader
   161 ADD_LIBRARY(mojoshader
   158     mojoshader.c
   162     mojoshader.c
   159     mojoshader_common.c
   163     mojoshader_common.c
   160     mojoshader_opengl.c
   164     mojoshader_opengl.c
   161     mojoshader_metal.c
   165     mojoshader_metal.c
       
   166     mojoshader_d3d11.c
   162     profiles/mojoshader_profile_arb1.c
   167     profiles/mojoshader_profile_arb1.c
   163     profiles/mojoshader_profile_bytecode.c
   168     profiles/mojoshader_profile_bytecode.c
   164     profiles/mojoshader_profile_d3d.c
   169     profiles/mojoshader_profile_d3d.c
       
   170     profiles/mojoshader_profile_hlsl.c
   165     profiles/mojoshader_profile_glsl.c
   171     profiles/mojoshader_profile_glsl.c
   166     profiles/mojoshader_profile_metal.c
   172     profiles/mojoshader_profile_metal.c
   167     profiles/mojoshader_profile_spirv.c
   173     profiles/mojoshader_profile_spirv.c
   168     profiles/mojoshader_profile_common.c
   174     profiles/mojoshader_profile_common.c
   169 )
   175 )