#include <glib.h>

#include "../public/version.h"

//
// PUBLIC FUNCTIONS
//
gboolean wintc_build_is_debug(void)
{
#ifdef WINTC_CHECKED
    return TRUE;
#else
    return FALSE;
#endif
}

gchar* wintc_build_get_tag(void)
{
    gchar* build_tag = NULL;

    if (
        !g_file_get_contents(
            "@CMAKE_INSTALL_PREFIX@/@WINTC_ASSETS_INSTALL_DIR@/bldtag",
            &build_tag,
            NULL,
            NULL
        )
    )
    {
        build_tag = g_strdup_printf("%s", "no tag");
    }

    return build_tag;
}
