Beispiel #1
0
/**
 * Formats system information. Here is an example:
 *
 * CeeGee Engine, (C) 2015-2016, Michiel Sikma (MIT license)
 * 
 * TIME=2016-11-24T13:32:40+0100
 * BUILD=103-MASTER 2016-11-24 (DD160F4)
 * CC=i586-pc-msdosdjgpp-gcc (GCC) 5.2.0
 * OS=Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016;
 * root:xnu-3789.21.3~60/RELEASE_X86_64
 * CFLAGS=-DHAVE_STDBOOL_H=1 -DALLEGRO_HAVE_INTTYPES_H -fgnu89-inline -Wall
 * -Wno-unused -O3 -mtune=i586 -ffast-math -fomit-frame-pointer
 * -Ivendor/allegro-4.2.2-xc/include -Ivendor/xorshift -I. -DDEBUG=1
 * LDFLAGS=-Lvendor/allegro-4.2.2-xc/lib/djgpp -lalleg
 */
static void format_sysinfo() {
  if (has_info) {
    return;
  }
  
  // Format all system information into one string.
  snprintf(
    sysinfo,
    sizeof(sysinfo),
    "%s, %s\n\n"
    "TIME=%s\n"
    "BUILD=%s\n"
    "CC=%s\n"
    "OS=%s\n"
    "CFLAGS=%s\n"
    "LDFLAGS=%s\n",
    get_name(),
    get_copyright(),
    get_build_time(),
    get_short_version(),
    get_cc_info(),
    get_os_info(),
    get_cflags(),
    get_ldflags()
  );
}
Beispiel #2
0
static char *cflags_list(const struct manifest *m)
{
	unsigned int i;
	char *ret = tal_strdup(m, cflags);

	char **flags = get_cflags(m, m->dir, get_or_compile_info);
	for (i = 0; flags[i]; i++)
		tal_append_fmt(&ret, " %s", flags[i]);
	return ret;
}
Beispiel #3
0
static void
do_install_admin_nogimpui (const gchar *what)
{
  do_build_2 (get_cflags (), get_libs (), get_sys_plugin_dir (TRUE), what);
}
Beispiel #4
0
static void
do_install (const gchar *what)
{
  do_build_2 (get_cflags (), get_libs (), get_user_plugin_dir (FALSE), what);
}
Beispiel #5
0
static void
do_build (const gchar *what)
{
  do_build_2 (get_cflags (), get_libs (), NULL, what);
}
Beispiel #6
0
static void
do_cflags (void)
{
  g_print ("%s\n", get_cflags ());
}