add proper WEBP_HAVE_GIF and WEBP_HAVE_GL flags

...and make gif2webp and vwebp compile without them.

Makefile.vc still to be updated...
Meanwhile the CL environment variable can be supplemented with

set CL=/DWEBP_HAVE_GL /IC:\opt\freeglut\include

Change-Id: I37a60b8c32aafd125bffa98b6cc9f57c022ebbd0
This commit is contained in:
Pascal Massimino
2013-09-12 04:03:51 -07:00
parent d134307b7f
commit 79ff03460a
4 changed files with 34 additions and 3 deletions

View File

@ -20,6 +20,8 @@
#include "config.h"
#endif
#ifdef WEBP_HAVE_GIF
#include <gif_lib.h>
#include "webp/encode.h"
#include "webp/mux.h"
@ -636,4 +638,14 @@ int main(int argc, const char *argv[]) {
return !ok;
}
#else // !WEBP_HAVE_GIF
int main(int argc, const char *argv[]) {
fprintf(stderr, "GIF support not enabled in %s.\n", argv[0]);
(void)argc;
return 0;
}
#endif
//------------------------------------------------------------------------------