2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2012-2022 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-04-12 02:15:33 +00:00
|
|
|
|
2012-03-20 02:17:37 +00:00
|
|
|
set(INC
|
2024-12-12 00:49:33 +01:00
|
|
|
PUBLIC .
|
2012-03-20 02:17:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(INC_SYS
|
2012-04-13 03:41:07 +00:00
|
|
|
|
2012-03-20 02:17:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(SRC
|
2023-10-19 17:07:56 +02:00
|
|
|
utfconv.cc
|
2012-03-20 02:17:37 +00:00
|
|
|
|
2023-10-19 17:07:56 +02:00
|
|
|
utfconv.hh
|
2012-03-20 02:17:37 +00:00
|
|
|
)
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
set(LIB
|
|
|
|
|
)
|
|
|
|
|
|
2023-12-08 15:47:14 +01:00
|
|
|
# This is odd but leave it for now...
|
|
|
|
|
# Why have win32 check here? - this is only used for windows.
|
|
|
|
|
# ... because one day we might want to use it on other platforms.
|
2012-03-20 02:17:37 +00:00
|
|
|
if(WIN32)
|
|
|
|
|
list(APPEND SRC
|
2023-10-19 17:07:56 +02:00
|
|
|
utf_winfunc.cc
|
|
|
|
|
utf_winfunc.hh
|
2012-03-20 02:17:37 +00:00
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-12-08 15:47:14 +01:00
|
|
|
blender_add_lib(bf_intern_utfconv "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
2024-12-12 00:49:33 +01:00
|
|
|
add_library(bf::intern::utfconv ALIAS bf_intern_utfconv)
|