file(GLOB EMOJI_SRCS "emoji/*.c")
file(GLOB AVATAR_SRCS "avatar_assets/*.c")

set(BT_HEADSET_SRC)
if(CONFIG_KORVO_BT_HEADSET_CLASSIC_HFP)
    list(APPEND BT_HEADSET_SRC "bt_headset.c")
endif()

idf_component_register(
    SRCS
        "tts_player.c"
        "cbin_font.c"
        "font_emoji_32.c"
        ${EMOJI_SRCS}
        ${AVATAR_SRCS}
        ${BT_HEADSET_SRC}
        "opus_encoder.c"
        "wifi_manager.c"
        "websocket_client.c"
        "main.c"
    INCLUDE_DIRS "."
    EMBED_FILES "font_puhui_common_16_4.bin"
    PRIV_REQUIRES
        esp_driver_gpio
        esp_driver_i2c
        esp_driver_i2s
        esp_lcd
        esp_wifi
        esp_netif
        esp_event
        esp_timer
        esp_ringbuf
        esp_coex
        nvs_flash
        tcp_transport
        bt
        espressif__esp_codec_dev
        "78__esp-opus"
        espressif__esp_lcd_touch_gt1151
        lvgl__lvgl
)
