2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2012 Blender Authors
|
2023-06-14 22:49:59 +10:00
|
|
|
#
|
2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2012-11-11 16:54:26 +00:00
|
|
|
|
|
|
|
|
set(INC
|
|
|
|
|
.
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(INC_SYS
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(SRC
|
2024-12-14 17:32:49 +01:00
|
|
|
blender_locale.cpp
|
|
|
|
|
messages.cpp
|
2012-12-04 14:43:42 +00:00
|
|
|
|
2024-12-14 17:32:49 +01:00
|
|
|
blender_locale.h
|
|
|
|
|
messages.h
|
2012-11-11 16:54:26 +00:00
|
|
|
)
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
set(LIB
|
2024-12-14 17:32:49 +01:00
|
|
|
PRIVATE bf::blenlib
|
|
|
|
|
PRIVATE bf::intern::guardedalloc
|
2019-04-14 15:18:44 +02:00
|
|
|
)
|
|
|
|
|
|
2014-10-07 15:46:19 -05:00
|
|
|
if(APPLE)
|
|
|
|
|
# Cocoa code to read the locale on OSX
|
2014-11-13 15:03:30 +01:00
|
|
|
list(APPEND SRC
|
2024-12-14 17:32:49 +01:00
|
|
|
messages_apple.mm
|
2014-11-13 15:03:30 +01:00
|
|
|
)
|
2014-10-07 15:46:19 -05:00
|
|
|
endif()
|
|
|
|
|
|
2014-04-02 09:01:48 +11:00
|
|
|
if(WITH_HEADLESS)
|
|
|
|
|
add_definitions(-DWITH_HEADLESS)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(WITH_GHOST_SDL)
|
|
|
|
|
add_definitions(-DWITH_GHOST_SDL)
|
|
|
|
|
endif()
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
blender_add_lib(bf_intern_locale "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|