[DEV] basic version of lutin builder

This commit is contained in:
Edouard DUPIN 2018-05-02 23:58:34 +02:00
parent 91430e4343
commit 3dae6a9645
17 changed files with 1178 additions and 4 deletions

View File

@ -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":

156
generate/config.h Normal file
View File

@ -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 <cpu-features.h> header file. */
/* #undef HAVE_CPU_FEATURES_H */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <GLUT/glut.h> header file. */
/* #undef HAVE_GLUT_GLUT_H */
/* Define to 1 if you have the <GL/glut.h> header file. */
/* #undef HAVE_GL_GLUT_H */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <OpenGL/glut.h> header file. */
/* #undef HAVE_OPENGL_GLUT_H */
/* Have PTHREAD_PRIO_INHERIT. */
#define HAVE_PTHREAD_PRIO_INHERIT 1
/* Define to 1 if you have the <shlwapi.h> header file. */
/* #undef HAVE_SHLWAPI_H */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <wincodec.h> header file. */
/* #undef HAVE_WINCODEC_H */
/* Define to 1 if you have the <windows.h> 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

75
lutin_webp-cwebp.py Normal file
View File

@ -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

76
lutin_webp-dwebp.py Normal file
View File

@ -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

60
lutin_webp-exampleutil.py Normal file
View File

@ -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

72
lutin_webp-gif2webp.py Normal file
View File

@ -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

72
lutin_webp-imagedec.py Normal file
View File

@ -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

95
lutin_webp-imageenc.py Normal file
View File

@ -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

60
lutin_webp-imageioutil.py Normal file
View File

@ -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

76
lutin_webp-img2webp.py Normal file
View File

@ -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

153
lutin_webp-webp.py Normal file
View File

@ -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

68
lutin_webp-webpdecoder.py Normal file
View File

@ -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

61
lutin_webp-webpdemux.py Normal file
View File

@ -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

69
lutin_webp-webpinfo.py Normal file
View File

@ -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

63
lutin_webp-webpmux.py Normal file
View File

@ -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

1
version.txt Normal file
View File

@ -0,0 +1 @@
1.0.0

2
webp

@ -1 +1 @@
Subproject commit e122e511cf091bb31d7f42503497029abc60256c
Subproject commit c1cb86af5f9cdea7afe2fff54d0e04b085d1e186