From 3dae6a9645f20a7ab70a5a7f7ad6dd782c1ed335 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 2 May 2018 23:58:34 +0200 Subject: [PATCH] [DEV] basic version of lutin builder --- configureToLutin.py | 23 +++++- generate/config.h | 156 ++++++++++++++++++++++++++++++++++++++ lutin_webp-cwebp.py | 75 ++++++++++++++++++ lutin_webp-dwebp.py | 76 +++++++++++++++++++ lutin_webp-exampleutil.py | 60 +++++++++++++++ lutin_webp-gif2webp.py | 72 ++++++++++++++++++ lutin_webp-imagedec.py | 72 ++++++++++++++++++ lutin_webp-imageenc.py | 95 +++++++++++++++++++++++ lutin_webp-imageioutil.py | 60 +++++++++++++++ lutin_webp-img2webp.py | 76 +++++++++++++++++++ lutin_webp-webp.py | 153 +++++++++++++++++++++++++++++++++++++ lutin_webp-webpdecoder.py | 68 +++++++++++++++++ lutin_webp-webpdemux.py | 61 +++++++++++++++ lutin_webp-webpinfo.py | 69 +++++++++++++++++ lutin_webp-webpmux.py | 63 +++++++++++++++ version.txt | 1 + webp | 2 +- 17 files changed, 1178 insertions(+), 4 deletions(-) create mode 100644 generate/config.h create mode 100644 lutin_webp-cwebp.py create mode 100644 lutin_webp-dwebp.py create mode 100644 lutin_webp-exampleutil.py create mode 100644 lutin_webp-gif2webp.py create mode 100644 lutin_webp-imagedec.py create mode 100644 lutin_webp-imageenc.py create mode 100644 lutin_webp-imageioutil.py create mode 100644 lutin_webp-img2webp.py create mode 100644 lutin_webp-webp.py create mode 100644 lutin_webp-webpdecoder.py create mode 100644 lutin_webp-webpdemux.py create mode 100644 lutin_webp-webpinfo.py create mode 100644 lutin_webp-webpmux.py create mode 100644 version.txt diff --git a/configureToLutin.py b/configureToLutin.py index 141c49b..9fdc634 100755 --- a/configureToLutin.py +++ b/configureToLutin.py @@ -614,9 +614,26 @@ with open(build_output_file) as commit: #print("STD type: " + std_selected) continue if len(elem) > 2 \ - and ( elem[-2:] == ".o" - or elem[-2:] == ".a"): - #print(" remove : " + elem) + and elem[-2:] == ".o": + print(">>>>>>> remove : " + elem) + continue; + if len(elem) > 2 \ + and elem[-2:] == ".a": + tmpppppp = "webp-"+elem[3:-2] + if tmpppppp not in tmp_dependency_list: + tmp_dependency_list.append(tmpppppp) + print(">>>>>>> link lib : " + tmpppppp) + continue; + if len(elem) > 3 \ + and elem[-3:] == ".so": + if len(elem) > 12 \ + and elem[:12] == "/usr/lib/lib": + tmpppppp = elem[12:-3] + else: + tmpppppp = elem[:-3] + if tmpppppp not in tmp_dependency_list: + tmp_dependency_list.append(tmpppppp) + print(">>>>>>> link external lib : " + tmpppppp) continue; if len(elem) > 2 \ and elem[:2] == "-I": diff --git a/generate/config.h b/generate/config.h new file mode 100644 index 0000000..b0ae25a --- /dev/null +++ b/generate/config.h @@ -0,0 +1,156 @@ +/* Adapted from the autotools src/webp/config.h.in. */ + +/* Define if building universal (internal helper macro) */ +/* TODO: handle properly in CMake */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* Set to 1 if __builtin_bswap16 is available */ +#define HAVE_BUILTIN_BSWAP16 1 + +/* Set to 1 if __builtin_bswap32 is available */ +#define HAVE_BUILTIN_BSWAP32 1 + +/* Set to 1 if __builtin_bswap64 is available */ +#define HAVE_BUILTIN_BSWAP64 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_CPU_FEATURES_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_GLUT_GLUT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_GL_GLUT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_OPENGL_GLUT_H */ + +/* Have PTHREAD_PRIO_INHERIT. */ +#define HAVE_PTHREAD_PRIO_INHERIT 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SHLWAPI_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINCODEC_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +/* TODO: handle properly in CMake */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libwebp" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://bugs.chromium.org/p/webp" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libwebp" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libwebp 1.0.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libwebp" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "http://developers.google.com/speed/webp" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.0.0" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "1.0.0" + +/* Set to 1 if AVX2 is supported */ +#define WEBP_HAVE_AVX2 1 + +/* Set to 1 if GIF library is installed */ +#define WEBP_HAVE_GIF 1 + +/* Set to 1 if OpenGL is supported */ +/* #undef WEBP_HAVE_GL */ + +/* Set to 1 if JPEG library is installed */ +#define WEBP_HAVE_JPEG 1 + +/* Set to 1 if NEON is supported */ +/* #undef WEBP_HAVE_NEON */ + +/* Set to 1 if runtime detection of NEON is enabled */ +/* TODO: handle properly in CMake */ +/* #undef WEBP_HAVE_NEON_RTCD */ + +/* Set to 1 if PNG library is installed */ +#define WEBP_HAVE_PNG 1 + +/* Set to 1 if SDL library is installed */ +/* #undef WEBP_HAVE_SDL */ + +/* Set to 1 if SSE2 is supported */ +#define WEBP_HAVE_SSE2 1 + +/* Set to 1 if SSE4.1 is supported */ +#define WEBP_HAVE_SSE41 1 + +/* Set to 1 if TIFF library is installed */ +#define WEBP_HAVE_TIFF 1 + +/* Enable near lossless encoding */ +#define WEBP_NEAR_LOSSLESS 1 + +/* Undefine this to disable thread support. */ +#define WEBP_USE_THREAD 1 + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif diff --git a/lutin_webp-cwebp.py b/lutin_webp-cwebp.py new file mode 100644 index 0000000..e8fcd06 --- /dev/null +++ b/lutin_webp-cwebp.py @@ -0,0 +1,75 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "BINARY" + + +def get_desc(): + return "webp-cwebp library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/cwebp.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/build/src/', + 'webp/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + my_module.add_flag('link', [ + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'webp-exampleutil', + 'webp-imagedec', + 'webp-webp', + 'webp-imageioutil', + 'webp-webpdemux', + 'pthread', + 'm', + 'png', + 'z', + 'jpeg', + 'tiff', + ]) + return True + + diff --git a/lutin_webp-dwebp.py b/lutin_webp-dwebp.py new file mode 100644 index 0000000..b914ad2 --- /dev/null +++ b/lutin_webp-dwebp.py @@ -0,0 +1,76 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "BINARY" + + +def get_desc(): + return "webp-dwebp library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/dwebp.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/build/src/', + 'webp/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + my_module.add_flag('link', [ + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'webp-exampleutil', + 'webp-imagedec', + 'webp-imageenc', + 'webp-imageioutil', + 'webp-webpdemux', + 'png', + 'z', + 'jpeg', + 'tiff', + 'webp-webp', + 'pthread', + 'm', + ]) + return True + + diff --git a/lutin_webp-exampleutil.py b/lutin_webp-exampleutil.py new file mode 100644 index 0000000..9ece6b1 --- /dev/null +++ b/lutin_webp-exampleutil.py @@ -0,0 +1,60 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-exampleutil library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/example_util.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/src/', + 'webp/build/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-gif2webp.py b/lutin_webp-gif2webp.py new file mode 100644 index 0000000..d749de5 --- /dev/null +++ b/lutin_webp-gif2webp.py @@ -0,0 +1,72 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "BINARY" + + +def get_desc(): + return "webp-gif2webp library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/gif2webp.c', + 'webp/examples/gifdec.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/build/src/', + 'webp/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + my_module.add_flag('link', [ + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'webp-exampleutil', + 'webp-imageioutil', + 'webp-webp', + 'webp-webpmux', + 'gif', + 'pthread', + 'm', + ]) + return True + + diff --git a/lutin_webp-imagedec.py b/lutin_webp-imagedec.py new file mode 100644 index 0000000..403b1a2 --- /dev/null +++ b/lutin_webp-imagedec.py @@ -0,0 +1,72 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-imagedec library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/imageio/image_dec.c', + 'webp/imageio/jpegdec.c', + 'webp/imageio/metadata.c', + 'webp/imageio/pngdec.c', + 'webp/imageio/pnmdec.c', + 'webp/imageio/tiffdec.c', + 'webp/imageio/webpdec.c', + 'webp/imageio/wicdec.c', + ]) + + my_module.add_header_file([ + 'webp/imageio/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/imageio', + 'webp/src/', + 'webp/build/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + 'png', + 'z', + 'jpeg', + 'tiff', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-imageenc.py b/lutin_webp-imageenc.py new file mode 100644 index 0000000..1a289ab --- /dev/null +++ b/lutin_webp-imageenc.py @@ -0,0 +1,95 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-imageenc library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/src/dsp/alpha_processing.c', + 'webp/src/dsp/alpha_processing_mips_dsp_r2.c', + 'webp/src/dsp/cpu.c', + 'webp/src/dsp/dec.c', + 'webp/src/dsp/dec_clip_tables.c', + 'webp/src/dsp/dec_mips32.c', + 'webp/src/dsp/dec_mips_dsp_r2.c', + 'webp/src/dsp/filters.c', + 'webp/src/dsp/filters_mips_dsp_r2.c', + 'webp/src/dsp/lossless.c', + 'webp/src/dsp/lossless_mips_dsp_r2.c', + 'webp/src/dsp/rescaler.c', + 'webp/src/dsp/rescaler_mips32.c', + 'webp/src/dsp/rescaler_mips_dsp_r2.c', + 'webp/src/dsp/upsampling.c', + 'webp/src/dsp/upsampling_mips_dsp_r2.c', + 'webp/src/dsp/yuv.c', + 'webp/src/dsp/yuv_mips32.c', + 'webp/src/dsp/yuv_mips_dsp_r2.c', + 'webp/src/dsp/alpha_processing_sse41.c', + 'webp/src/dsp/dec_sse41.c', + 'webp/src/dsp/upsampling_sse41.c', + 'webp/src/dsp/yuv_sse41.c', + 'webp/src/dsp/alpha_processing_sse2.c', + 'webp/src/dsp/dec_sse2.c', + 'webp/src/dsp/filters_sse2.c', + 'webp/src/dsp/lossless_sse2.c', + 'webp/src/dsp/rescaler_sse2.c', + 'webp/src/dsp/upsampling_sse2.c', + 'webp/src/dsp/yuv_sse2.c', + 'webp/imageio/image_enc.c', + ]) + + my_module.add_header_file([ + 'webp/src/dsp/*.h', + 'webp/imageio/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/src/dsp', + 'webp/imageio', + 'webp/build/', + 'webp/', + 'webp/src/', + 'webp/build/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + '-msse4.1', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-imageioutil.py b/lutin_webp-imageioutil.py new file mode 100644 index 0000000..1c8d8ba --- /dev/null +++ b/lutin_webp-imageioutil.py @@ -0,0 +1,60 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-imageioutil library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/imageio/imageio_util.c', + ]) + + my_module.add_header_file([ + 'webp/imageio/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/imageio', + 'webp/src/', + 'webp/build/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-img2webp.py b/lutin_webp-img2webp.py new file mode 100644 index 0000000..518cc5c --- /dev/null +++ b/lutin_webp-img2webp.py @@ -0,0 +1,76 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "BINARY" + + +def get_desc(): + return "webp-img2webp library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/img2webp.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/build/src/', + 'webp/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + my_module.add_flag('link', [ + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'webp-exampleutil', + 'webp-imagedec', + 'webp-imageioutil', + 'webp-webp', + 'webp-webpmux', + 'webp-webpdemux', + 'png', + 'z', + 'jpeg', + 'tiff', + 'pthread', + 'm', + ]) + return True + + diff --git a/lutin_webp-webp.py b/lutin_webp-webp.py new file mode 100644 index 0000000..2b6426f --- /dev/null +++ b/lutin_webp-webp.py @@ -0,0 +1,153 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-webp library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/src/dsp/alpha_processing.c', + 'webp/src/dsp/alpha_processing_mips_dsp_r2.c', + 'webp/src/dsp/cpu.c', + 'webp/src/dsp/dec.c', + 'webp/src/dsp/dec_clip_tables.c', + 'webp/src/dsp/dec_mips32.c', + 'webp/src/dsp/dec_mips_dsp_r2.c', + 'webp/src/dsp/filters.c', + 'webp/src/dsp/filters_mips_dsp_r2.c', + 'webp/src/dsp/lossless.c', + 'webp/src/dsp/lossless_mips_dsp_r2.c', + 'webp/src/dsp/rescaler.c', + 'webp/src/dsp/rescaler_mips32.c', + 'webp/src/dsp/rescaler_mips_dsp_r2.c', + 'webp/src/dsp/upsampling.c', + 'webp/src/dsp/upsampling_mips_dsp_r2.c', + 'webp/src/dsp/yuv.c', + 'webp/src/dsp/yuv_mips32.c', + 'webp/src/dsp/yuv_mips_dsp_r2.c', + 'webp/src/dsp/alpha_processing_sse41.c', + 'webp/src/dsp/dec_sse41.c', + 'webp/src/dsp/upsampling_sse41.c', + 'webp/src/dsp/yuv_sse41.c', + 'webp/src/dsp/alpha_processing_sse2.c', + 'webp/src/dsp/dec_sse2.c', + 'webp/src/dsp/filters_sse2.c', + 'webp/src/dsp/lossless_sse2.c', + 'webp/src/dsp/rescaler_sse2.c', + 'webp/src/dsp/upsampling_sse2.c', + 'webp/src/dsp/yuv_sse2.c', + 'webp/src/dsp/cost.c', + 'webp/src/dsp/enc.c', + 'webp/src/dsp/lossless_enc.c', + 'webp/src/dsp/ssim.c', + 'webp/src/dsp/enc_avx2.c', + 'webp/src/dsp/cost_sse2.c', + 'webp/src/dsp/enc_sse2.c', + 'webp/src/dsp/lossless_enc_sse2.c', + 'webp/src/dsp/ssim_sse2.c', + 'webp/src/dsp/enc_sse41.c', + 'webp/src/dsp/lossless_enc_sse41.c', + 'webp/src/enc/alpha_enc.c', + 'webp/src/enc/analysis_enc.c', + 'webp/src/enc/backward_references_cost_enc.c', + 'webp/src/enc/backward_references_enc.c', + 'webp/src/enc/config_enc.c', + 'webp/src/enc/cost_enc.c', + 'webp/src/enc/filter_enc.c', + 'webp/src/enc/frame_enc.c', + 'webp/src/enc/histogram_enc.c', + 'webp/src/enc/iterator_enc.c', + 'webp/src/enc/near_lossless_enc.c', + 'webp/src/enc/picture_enc.c', + 'webp/src/enc/picture_csp_enc.c', + 'webp/src/enc/picture_psnr_enc.c', + 'webp/src/enc/picture_rescale_enc.c', + 'webp/src/enc/picture_tools_enc.c', + 'webp/src/enc/predictor_enc.c', + 'webp/src/enc/quant_enc.c', + 'webp/src/enc/syntax_enc.c', + 'webp/src/enc/token_enc.c', + 'webp/src/enc/tree_enc.c', + 'webp/src/enc/vp8l_enc.c', + 'webp/src/enc/webp_enc.c', + 'webp/src/dec/alpha_dec.c', + 'webp/src/dec/buffer_dec.c', + 'webp/src/dec/frame_dec.c', + 'webp/src/dec/idec_dec.c', + 'webp/src/dec/io_dec.c', + 'webp/src/dec/quant_dec.c', + 'webp/src/dec/tree_dec.c', + 'webp/src/dec/vp8_dec.c', + 'webp/src/dec/vp8l_dec.c', + 'webp/src/dec/webp_dec.c', + 'webp/src/utils/bit_reader_utils.c', + 'webp/src/utils/color_cache_utils.c', + 'webp/src/utils/filters_utils.c', + 'webp/src/utils/huffman_utils.c', + 'webp/src/utils/quant_levels_dec_utils.c', + 'webp/src/utils/rescaler_utils.c', + 'webp/src/utils/random_utils.c', + 'webp/src/utils/thread_utils.c', + 'webp/src/utils/utils.c', + 'webp/src/utils/bit_writer_utils.c', + 'webp/src/utils/huffman_encode_utils.c', + 'webp/src/utils/quant_levels_utils.c', + ]) + + my_module.add_header_file([ + 'webp/src/dsp/*.h', + 'webp/src/enc/*.h', + 'webp/src/dec/*.h', + 'webp/src/utils/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/src/dsp', + 'webp/src/enc', + 'webp/src/dec', + 'webp/src/utils', + 'webp/build/', + 'webp/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + '-msse4.1', + '-mavx2', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-webpdecoder.py b/lutin_webp-webpdecoder.py new file mode 100644 index 0000000..3d6f4fa --- /dev/null +++ b/lutin_webp-webpdecoder.py @@ -0,0 +1,68 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-webpdecoder library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/src/utils/bit_reader_utils.c', + 'webp/src/utils/color_cache_utils.c', + 'webp/src/utils/filters_utils.c', + 'webp/src/utils/huffman_utils.c', + 'webp/src/utils/quant_levels_dec_utils.c', + 'webp/src/utils/rescaler_utils.c', + 'webp/src/utils/random_utils.c', + 'webp/src/utils/thread_utils.c', + 'webp/src/utils/utils.c', + ]) + + my_module.add_header_file([ + 'webp/src/utils/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/src/utils', + 'webp/build/', + 'webp/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-webpdemux.py b/lutin_webp-webpdemux.py new file mode 100644 index 0000000..dc5962a --- /dev/null +++ b/lutin_webp-webpdemux.py @@ -0,0 +1,61 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-webpdemux library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/src/demux/anim_decode.c', + 'webp/src/demux/demux.c', + ]) + + my_module.add_header_file([ + 'webp/src/demux/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/src/demux', + 'webp/', + 'webp/build/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/lutin_webp-webpinfo.py b/lutin_webp-webpinfo.py new file mode 100644 index 0000000..d3587fd --- /dev/null +++ b/lutin_webp-webpinfo.py @@ -0,0 +1,69 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "BINARY" + + +def get_desc(): + return "webp-webpinfo library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/examples/webpinfo.c', + ]) + + my_module.add_header_file([ + 'webp/examples/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/examples', + 'webp/build/src/', + 'webp/src/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + my_module.add_flag('link', [ + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'webp-exampleutil', + 'webp-imageioutil', + 'webp-webp', + 'pthread', + 'm', + ]) + return True + + diff --git a/lutin_webp-webpmux.py b/lutin_webp-webpmux.py new file mode 100644 index 0000000..8e0e4c1 --- /dev/null +++ b/lutin_webp-webpmux.py @@ -0,0 +1,63 @@ +#!/usr/bin/python +import lutin.debug as debug +import lutin.tools as tools +import os + +def get_type(): + return "LIBRARY" + +def get_desc(): + return "webp-webpmux library" + +#def get_licence(): +# return "UNKNOW" + +def get_compagny_type(): + return "org" + +def get_compagny_name(): + return "webp" + +#def get_maintainer(): +# return "UNKNOW" + +def get_version(): + return "version.txt" + +def configure(target, my_module): + my_module.add_src_file([ + 'webp/src/mux/anim_encode.c', + 'webp/src/mux/muxedit.c', + 'webp/src/mux/muxinternal.c', + 'webp/src/mux/muxread.c', + ]) + + my_module.add_header_file([ + 'webp/src/mux/*.h', + ], clip_path='webp') + + my_module.add_path([ + 'webp/src/mux', + 'webp/build/', + 'webp/', + ], export=False) + + + my_module.add_flag('c', [ + '-DHAVE_CONFIG_H', + '-DNDEBUG', + ]) + + + my_module.add_flag('c', [ + '-Wall', + ]) + + + my_module.add_depend([ + 'cxx', + 'pthread', + ]) + return True + + diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..afaf360 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +1.0.0 \ No newline at end of file diff --git a/webp b/webp index e122e51..c1cb86a 160000 --- a/webp +++ b/webp @@ -1 +1 @@ -Subproject commit e122e511cf091bb31d7f42503497029abc60256c +Subproject commit c1cb86af5f9cdea7afe2fff54d0e04b085d1e186