# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: Copyright (C) 2026 Max A. Vilkki a.k.a. codise
#
# yyjson (MIT) from lib/yyjson (0.13.0): JSON for settings, profiles and playlists.
#
# Built with its defaults. The optional parts (incremental reader, JSON Pointer/Patch)
# are separate functions, so the linker drops them unless we call them.

set(yyjsonDir "${FLIPSID_LIB_DIR}/yyjson")

add_library(ext_yyjson STATIC "${yyjsonDir}/src/yyjson.c")
add_library(ext::yyjson ALIAS ext_yyjson)

target_include_directories(ext_yyjson SYSTEM PUBLIC "${yyjsonDir}/src")

flipsid_configure_third_party(ext_yyjson)
