Files
test/intern/locale/CMakeLists.txt
Brecht Van Lommel 820f261371 Refactor: Replace Boost Locale for translation
Use code adapted from boost::locale to implement locale name parsing
and .mo file reading ourselves.

Together with #132142 this removes the last direct Blender dependency
on Boost.

Pull Request: https://projects.blender.org/blender/blender/pulls/133347
2025-01-22 09:00:32 +01:00

41 lines
576 B
CMake

# SPDX-FileCopyrightText: 2012 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
.
)
set(INC_SYS
)
set(SRC
blender_locale.cpp
messages.cpp
blender_locale.h
messages.h
)
set(LIB
PRIVATE bf::blenlib
PRIVATE bf::intern::guardedalloc
)
if(APPLE)
# Cocoa code to read the locale on OSX
list(APPEND SRC
messages_apple.mm
)
endif()
if(WITH_HEADLESS)
add_definitions(-DWITH_HEADLESS)
endif()
if(WITH_GHOST_SDL)
add_definitions(-DWITH_GHOST_SDL)
endif()
blender_add_lib(bf_intern_locale "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")