diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-10-07 12:07:47 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-10-07 12:49:06 -0400 |
commit | f2a7ba250c9981828d04b831d1ee8f556e1301c7 (patch) | |
tree | c90f29d30868190119ca058bd014ac404cf37961 /configure | |
parent | d42bb52a9592f75ee59e8a354cfaf5b81437141a (diff) | |
download | html5ks-f2a7ba250c9981828d04b831d1ee8f556e1301c7.tar.xz html5ks-f2a7ba250c9981828d04b831d1ee8f556e1301c7.zip |
Update stuff, fix Makefile.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -143,7 +143,7 @@ if __name__ == "__main__": check("gzip", "pre-compress the JSON files", ["-9"]) check("apngasm", "assemble the click-to-continue image", run=False) - check("convert", "perform miscellaneous actions on the images") + check("convert", "perform miscellaneous actions on the images", run=False) check("cwebp", "convert all images to WebP for webkit browsers", ["-quiet", "-alpha_cleanup", "-m", "6"]) ffmpeg = check("ffmpeg", "convert audio and video to HTML5 formats", ["-v", "warning", "-y"], run=False) if ffmpeg: @@ -152,7 +152,7 @@ if __name__ == "__main__": ffmpeg_check("muxing", ".E", ["ipod", "mp4", "ogg", "wav", "webm", "yuv4mpegpipe"], ffmpeg_formats) ffmpeg_check("decoding", ".{6}", ["mpeg4", "rawvideo", "pcm_s16le", "vorbis"], run_ffmpeg("-decoders")) ffmpeg_check("encoding", ".{6}", ["libx264", "rawvideo", "libtheora", "libvpx", "libvpx-vp9", "libfdk_aac", "libopus", "pcm_s16le"], run_ffmpeg("-encoders")) - check("npm", "install uglifyjs", ["--quiet"]) + check("npm", "install uglifyjs", run=False) check("webpmux", "assemble the WebP click-to-continue image") check("defluff", "decrease the size of DEFLATE files including gzip and PNG files", optional=True, run=False) check("pngquant", "quantize PNG images, improving compatibility and dramatically decreasing size", optional=True) @@ -163,6 +163,9 @@ if __name__ == "__main__": with open("Makefile.inc", "w") as f: f.write(''.join('%s := %s\n' % (k, list2cmdline(cmds[k])) for k in cmds)) + stderr.write("Making various directories\n") + os.mkdir("www/json") + if len(warnings): stderr.write("Warnings during configuration:\n") stderr.write('\n'.join(warnings) + '\n') |