2 -- Set this option, same as if user specified
3 -- '--executable' on the command-line. Can be
4 -- disabled by user with '--no-executable'
10 -- This is normal/main script
13 -- Add minify extension if asked to
14 if GetOption "with-minify" then
15 Module "optlex" "minify/optlex.lua"
16 Module "optparser" "minify/optparser.lua"
17 Module "llex" "minify/llex.lua"
18 Module "lparser" "minify/lparser.lua"
20 Main "minify/squish.minify.lua"
23 -- Compress Lua scripts (an excellent hack :) )
24 if GetOption "with-uglify" then
25 Module "llex" "uglify/llex.lua"
27 Main "uglify/squish.uglify.lua"
30 -- Compile output files to Lua bytecode
31 if GetOption "with-compile" then
32 Module "minichunkspy" "compile/minichunkspy.lua"
33 Main "compile/squish.compile.lua"
36 if GetOption "with-virtual-io" then
37 Resource "vio" "vio/vio.lua"
40 if GetOption "with-gzip" then
41 Resource "gunzip.lua" "gunzip.lua"
42 Main "gzip/squish.gzip.lua"
45 if GetOption "with-debug" then
46 Resource "squish.debug" "squish.debug"