dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
unimake.h File Reference

Unilayer build system. More...

#include "../src/uprintf.h"
Include dependency graph for unimake.h:

Go to the source code of this file.

Data Structures

struct  unimake_state
 

Macros

#define UNIMAKE_ERROR_INVALID_ARG   0x01
 
#define UNIMAKE_ERROR_BAD_UNIFILE_PATH   0x02
 
#define UNIMAKE_ERROR_TOO_MANY_CODE_FILES   0x04
 
#define UNIMAKE_ERROR_TOO_MANY_ASSET_FILES   0x08
 
#define UNIMAKE_ERROR_STRING_TOO_LONG   -0x10
 
#define UNIFILE_STATE_NONE   0
 
#define UNIFILE_STATE_PARSE   1
 
#define UNIFILE_LINE_SZ   64
 
#define UNIMAKE_ASSETS_DIR   "assets"
 
#define UNIMAKE_SRC_DIR   "src"
 
#define UNIMAKE_OBJ_DIR   "obj"
 
#define UNIMAKE_BIN_DIR   "bin"
 
#define UNIMAKE_GEN_DIR   "gen"
 
#define UNIFILE_PATH_DEFAULT   "Unifile"
 
#define UNIFILE_PATHS_MAX   32
 
#define UNIFILE_PATH_SZ_MAX   UNIFILE_LINE_SZ
 
#define UNIFILE_DEFINES_SZ_MAX   255
 
#define UNIFILE_INCLUDES_SZ_MAX   127
 
#define UNIFILE_LIBS_SZ_MAX   64
 
#define UNIFILE_CFLAGS_SZ_MAX   32
 
#define UNIMAKE_CLI_SZ_MAX   1024
 
#define COMPILER_CC(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   cc,
 
#define COMPILER_LD(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   ld,
 
#define COMPILER_REP_LIB(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   rep_lib,
 
#define COMPILER_TGT_LIB(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   tgt_lib,
 
#define COMPILER_REP_DBG(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   rep_dbg,
 
#define COMPILER_TGT_INC(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   tgt_inc,
 
#define COMPILER_REP_INC(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   rep_inc,
 
#define COMPILER_OBJ_OUT(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   obj_out,
 
#define COMPILER_EXE_OUT(cc, ld, rc, tgt_inc, rep_inc, tgt_def, rep_def, tgt_lib, rep_lib, tgt_ldr, rep_ldr, rep_dbg, obj_out, exe_out)   exe_out,
 
#define UNIMAKE_COMPILER_TABLE(f)
 
#define UNIMAKE_FLAGS(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   bit,
 
#define UNIMAKE_CFLAGS(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   cflags,
 
#define UNIMAKE_NAMES(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   name,
 
#define UNIMAKE_FLAG_DEFINES(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   defines,
 
#define UNIMAKE_FLAG_LIBS(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   libs,
 
#define UNIMAKE_FLAG_INCLUDES(name, bit, cflags, defines, includes, ldflags, libs, libdirs)   includes,
 
#define UNIMAKE_PLAT_MASK   0xff000000
 
#define UNIMAKE_PLAT_TABLE(f)
 
#define UNIMAKE_GFX_MASK   0x0000000f
 
#define UNIMAKE_GFX_TABLE(f)
 
#define UNIMAKE_FMT_MASK   0x000000f0
 
#define UNIMAKE_FMT_TABLE(f)
 
#define UNIMAKE_MISC_MASK   0x00ff0000
 
#define UNIMAKE_MISC_TABLE(f)
 
#define str_concat_char(str, str_sz_p, str_max, c, retval)
 

Functions

int str_in_array (const char *str, int str_sz, char *array[])
 
int str_replace (char *str, int str_sz_max, const char *str_in, const char *substr_replace, const char *substr_replacement, int *chars_advanced_tgt, int *chars_advanced_in)
 
int str_concat (char *str, int *str_sz, int str_sz_max, const char *str_in, const char *substr_target, const char *substr_replacement)
 Concatenate str_in to str, replacing token substr_target with substr_replacement as needed.
 

Detailed Description

Unilayer build system.