lib/xot/extconf.rb in xot-0.1.21 vs lib/xot/extconf.rb in xot-0.1.22
- old
+ new
@@ -12,22 +12,22 @@
include Xot::Rake
attr_reader :modules, :defs, :inc_dirs, :lib_dirs, :headers, :libs, :local_libs, :frameworks
- def initialize (*modules, &block)
+ def initialize(*modules, &block)
@modules = modules.map {|m| m.const_get :Module}
@defs, @inc_dirs, @lib_dirs, @headers, @libs, @local_libs, @frameworks =
- ([[]] * 7).map &:dup
+ ([[]] * 7).map(&:dup)
Xot::BlockUtil.instance_eval_or_block_call self, &block if block
end
- def debug ()
+ def debug()
env :DEBUG, false
end
- def setup ()
+ def setup()
yield if block_given?
modules.each do |m|
name = m.name.downcase
headers << "#{name}.h"
@@ -41,10 +41,10 @@
$CXXFLAGS = make_cflags $CXXFLAGS + ' -x c++' if $CXXFLAGS
$LDFLAGS = make_ldflags $LDFLAGS, lib_dirs, frameworks
$LOCAL_LIBS << local_libs.map {|s| " -l#{s}"}.join
end
- def create_makefile (*args)
+ def create_makefile(*args)
modules.each do |m|
dir_config m.name.downcase, m.inc_dir, m.lib_dir
end
exit 1 unless headers.all? {|s| have_header s}