Fix building WITH_CINEON=OFF

This commit is contained in:
Campbell Barton
2023-04-12 15:53:20 +10:00
parent aa3bdfd76a
commit 1f3949f1cf
2 changed files with 4 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ set(SRC
intern/filter.c
intern/format_bmp.cc
intern/format_dds.cc
intern/format_dpx.cc
intern/format_hdr.cc
intern/format_png.cc
intern/format_psd.cc
@@ -137,6 +136,9 @@ if(WITH_CODEC_FFMPEG)
endif()
if(WITH_IMAGE_CINEON)
list(APPEND SRC
intern/format_dpx.cc
)
list(APPEND LIB
bf_imbuf_cineon
)

View File

@@ -81,6 +81,7 @@ const ImFileType IMB_FILE_TYPES[] = {
.filetype = IMB_FTYPE_IMAGIC,
.default_save_role = COLOR_ROLE_DEFAULT_BYTE,
},
#ifdef WITH_CINEON
{
.init = NULL,
.exit = NULL,
@@ -93,7 +94,6 @@ const ImFileType IMB_FILE_TYPES[] = {
.filetype = IMB_FTYPE_DPX,
.default_save_role = COLOR_ROLE_DEFAULT_FLOAT,
},
#ifdef WITH_CINEON
{
.init = NULL,
.exit = NULL,