You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libshit/tools/ci_conf.mode.rb

20 lines
624 B
Ruby

step after: :default_values, before: :final_opts do
case opt.mode
when 'debug';
opt.config_opts.append '--optimize-ext'
opt.config_opts.append '--with-tests' unless opt.os == 'vita'
when 'rel'; opt.config_opts.concat %w(--release)
when 'rel_test'; opt.config_opts.concat %w(--release --with-tests)
else fail "Unknown mode #{opt.mode.inspect}"
end
end
step after: :default_values, before: :final_opts do
case opt.lua
when nil
when 'no'; opt.config_opts.append '--with-lua=none'
when 'lua'; opt.config_opts.append '--with-lua=lua'
else fail "Unknown lua mode #{opt.lua.inspect}"
end
end