Files
test/source/blender/editors/space_file/CMakeLists.txt
Harley Acheson fe6609c4eb Fix #111379: Allow Win32 Volume Names to Contain Characters > U+FFFF
When processing volume names for the File Browser sidebar lists we are
properly handling Windows "wide" characters (UTF-16) as long as they
are single wide characters, so below U+FFFF. For characters above this
value we get a pair of UTF-16, and end up trying to convert each to
UTF-8 as separate UTF-32 values. The result is blank output and a
console error that "surrogates not allowed." This PR just does this
conversion correctly using utfconv.

Pull Request: https://projects.blender.org/blender/blender/pulls/131763
2024-12-12 00:49:33 +01:00

95 lines
1.5 KiB
CMake

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
../asset
../include
../../asset_system
../../blenkernel
../../blenloader
../../blentranslation
../../gpu
../../imbuf
../../makesrna
../../render
../../windowmanager
# RNA_prototypes.hh
${CMAKE_BINARY_DIR}/source/blender/makesrna
)
set(INC_SYS
)
set(SRC
asset_catalog_tree_view.cc
file_context.cc
file_draw.cc
file_indexer.cc
file_ops.cc
file_panels.cc
file_utils.cc
filelist.cc
filesel.cc
folder_history.cc
fsmenu.cc
fsmenu_system.cc
space_file.cc
file_indexer.hh
file_intern.hh
filelist.hh
fsmenu.h
)
set(LIB
PRIVATE bf::blenfont
bf_blenkernel
PRIVATE bf::blenlib
PRIVATE bf::dna
PRIVATE bf::intern::guardedalloc
PRIVATE bf::extern::fmtlib
PRIVATE bf::intern::atomic
)
if(WIN32)
add_definitions(-DNOMINMAX)
list(APPEND LIB
PRIVATE bf::intern::utfconv
)
endif()
if(WITH_HEADLESS)
add_definitions(-DWITH_HEADLESS)
else()
list(APPEND LIB
bf_editor_datafiles
)
endif()
if(WITH_IMAGE_OPENEXR)
add_definitions(-DWITH_OPENEXR)
endif()
if(WITH_IMAGE_OPENJPEG)
add_definitions(-DWITH_OPENJPEG)
endif()
if(WITH_IMAGE_CINEON)
add_definitions(-DWITH_CINEON)
endif()
if(WITH_IMAGE_WEBP)
add_definitions(-DWITH_WEBP)
endif()
if(WITH_FREESTYLE)
add_definitions(-DWITH_FREESTYLE)
endif()
blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
# RNA_prototypes.hh dna_type_offsets.h
add_dependencies(bf_editor_space_file bf_rna)