Skip to content

jgabaut/spuro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spuro

A stb-style C library for logging.

Table of Contents

What is this thing?

This is a C library that offers a variety of log macros. Check out src/spuro.h and src/main.c for more details.

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C/C++ Header                     1             63             27            478
-------------------------------------------------------------------------------

The repo is still under construction.

Basic example

#define SPURO_IMPLEMENTATION
#include "spuro.h"

int main(void)
{
    spr_tracef("Hello, trace!\n");
    return 0;
}

Documentation

Prerequisites

To build the spuro-demo binary, you need:

  • automake and autoconf to generate the needed Makefile
  • make to build the binary
  • gcc or clang, for building spuro-demo

Configuration

To prepare the files needed by autotools, run:

aclocal
autoconf
automake --add-missing
./configure # Optionally, with --enable-debug=yes or --host
make

You will get a ./configure script, which you can use to enable debug mode or other features.

  • Run ./configure --host x86-64-w64-mingw32 to setup the Makefile appropriately for a x86_64-w64-mingw32 build.

Building

To build both the libspuro.so lib and spuro-demo binary, run:

  • ./configure, which should generate the Makefile. See Configuration section.
  • make, to build all target

Supported platforms

ATM the code should build for:

  • x86_64-Linux
  • x86_64-w64-mingw32 to target Windows

Todo