#ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include #include "gettext.h" #define COPYRIGHT "Copyright © 2015 Olliver Schinagl and various contributors (see AUTHORS)." #define EULOGIUM_THEME "eulogium.edj" int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Eina_Bool quit_option = EINA_FALSE; static const Ecore_Getopt optdesc = { "eulogium", "%prog [options]", PACKAGE_VERSION, COPYRIGHT, "Affero GPLv3", "eulogium program", 0, { ECORE_GETOPT_LICENSE('L', "license"), ECORE_GETOPT_COPYRIGHT('C', "copyright"), ECORE_GETOPT_VERSION('V', "version"), ECORE_GETOPT_HELP('h', "help"), ECORE_GETOPT_SENTINEL } }; Ecore_Getopt_Value values[] = { ECORE_GETOPT_VALUE_BOOL(quit_option), ECORE_GETOPT_VALUE_BOOL(quit_option), ECORE_GETOPT_VALUE_BOOL(quit_option), ECORE_GETOPT_VALUE_BOOL(quit_option), ECORE_GETOPT_VALUE_NONE }; int args; Eina_Prefix *prefix; Ecore_Evas *ee; Evas *canvas; Eina_List *engines, *l; const char *eulogium_edj = EULOGIUM_THEME; #if ENABLE_NLS setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALE_DIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); textdomain(PACKAGE); #endif if (!eina_init()) return EXIT_FAILURE; if (!ecore_evas_init()) return EXIT_FAILURE; if (!edje_init()) return EXIT_FAILURE; prefix = eina_prefix_new(argv[0], main, "EULOGIUM", "eulogium", eulogium_edj, PACKAGE_BIN_DIR, PACKAGE_LIB_DIR, PACKAGE_DATA_DIR, LOCALE_DIR); args = ecore_getopt_parse(&optdesc, values, argc, argv); if (args < 0) EINA_LOG_CRIT("Could not parse arguments."); if (args == 1) ecore_getopt_help(stderr, &optdesc); eina_prefix_free(prefix); eina_shutdown(); ecore_evas_shutdown(); edje_shutdown(); return 0; }