| 1 |
include_guard(GLOBAL) |
| 2 |
|
| 3 |
set(RENDERER_COMMON_SOURCES |
| 4 |
${SOURCE_DIR}/renderercommon/tr_font.c |
| 5 |
${SOURCE_DIR}/renderercommon/tr_image_bmp.c |
| 6 |
${SOURCE_DIR}/renderercommon/tr_image_jpg.c |
| 7 |
${SOURCE_DIR}/renderercommon/tr_image_pcx.c |
| 8 |
${SOURCE_DIR}/renderercommon/tr_image_png.c |
| 9 |
${SOURCE_DIR}/renderercommon/tr_image_pvr.c |
| 10 |
${SOURCE_DIR}/renderercommon/tr_image_tga.c |
| 11 |
${SOURCE_DIR}/renderercommon/tr_noise.c |
| 12 |
${SOURCE_DIR}/renderercommon/puff.c |
| 13 |
) |
| 14 |
|
| 15 |
set(SDL_RENDERER_SOURCES |
| 16 |
${SOURCE_DIR}/sdl/sdl_gamma.c |
| 17 |
${SOURCE_DIR}/sdl/sdl_glimp.c |
| 18 |
) |
| 19 |
|
| 20 |
set(DYNAMIC_RENDERER_SOURCES |
| 21 |
${SOURCE_DIR}/renderercommon/tr_subs.c |
| 22 |
${SOURCE_DIR}/qcommon/q_shared.c |
| 23 |
${SOURCE_DIR}/qcommon/q_math.c |
| 24 |
) |
| 25 |
|
| 26 |
if(USE_FREETYPE) |
| 27 |
list(APPEND RENDERER_DEFINITIONS BUILD_FREETYPE) |
| 28 |
endif() |
| 29 |
|
| 30 |
if(USE_RENDERER_DLOPEN) |
| 31 |
list(APPEND RENDERER_DEFINITIONS USE_RENDERER_DLOPEN) |
| 32 |
elseif(BUILD_RENDERER_GL1 AND BUILD_RENDERER_GL2) |
| 33 |
message(FATAL_ERROR "Multiple static renderers enabled; choose one") |
| 34 |
elseif(NOT BUILD_RENDERER_GL1 AND NOT BUILD_RENDERER_GL2) |
| 35 |
message(FATAL_ERROR "Zero static renderers enabled; choose one") |
| 36 |
endif() |
| 37 |
|
| 38 |
list(APPEND RENDERER_LIBRARIES ${COMMON_LIBRARIES}) |