forked from enlightenment/efl
add a -threads mode and make non-threaded compile the default... no
pending threads then. we can change this later for more testing. trying to narrow down issues anyway. SVN revision: 71378
This commit is contained in:
parent
790db28168
commit
faf062a939
|
@ -30,6 +30,7 @@ int no_save = 0;
|
|||
int min_quality = 0;
|
||||
int max_quality = 100;
|
||||
int compress_mode = EET_COMPRESSION_DEFAULT;
|
||||
int threads = 0;
|
||||
|
||||
static void
|
||||
main_help(void)
|
||||
|
@ -55,6 +56,7 @@ main_help(void)
|
|||
"-Ddefine_val=to CPP style define to define input macro definitions to the .edc source\n"
|
||||
"-fastcomp Use a faster compression algorithm (LZ4) (mutually exclusive with -fastdecomp)\n"
|
||||
"-fastdecomp Use a faster decompression algorithm (LZ4HC) (mutually exclusive with -fastcomp)\n"
|
||||
"-threads Compile the edje file using multiple parallel threads\n"
|
||||
,progname);
|
||||
}
|
||||
|
||||
|
@ -147,14 +149,18 @@ main(int argc, char **argv)
|
|||
if (max_quality < 0) max_quality = 0;
|
||||
if (max_quality > 100) max_quality = 100;
|
||||
}
|
||||
else if ((!strcmp(argv[i], "-fastcomp")) && (i < (argc - 1)))
|
||||
else if (!strcmp(argv[i], "-fastcomp"))
|
||||
{
|
||||
compress_mode = EET_COMPRESSION_SUPERFAST;
|
||||
}
|
||||
else if ((!strcmp(argv[i], "-fastdecomp")) && (i < (argc - 1)))
|
||||
else if (!strcmp(argv[i], "-fastdecomp"))
|
||||
{
|
||||
compress_mode = EET_COMPRESSION_VERYFAST;
|
||||
}
|
||||
else if (!strcmp(argv[i], "-threads"))
|
||||
{
|
||||
threads = 1;
|
||||
}
|
||||
else if (!strncmp(argv[i], "-D", 2))
|
||||
{
|
||||
defines = eina_list_append(defines, mem_strdup(argv[i]));
|
||||
|
|
|
@ -228,5 +228,6 @@ extern Eina_List *aliases;
|
|||
extern New_Object_Handler object_handlers[];
|
||||
extern New_Statement_Handler statement_handlers[];
|
||||
extern int compress_mode;
|
||||
extern int threads;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -178,7 +178,6 @@ struct _Group_Write
|
|||
};
|
||||
|
||||
static int pending_threads = 0;
|
||||
int threads = 1;
|
||||
|
||||
static void data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void (*func)(Edje_Part_Collection *pc, char *name, char* ptr, int len));
|
||||
|
||||
|
|
Loading…
Reference in New Issue