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.
xremap/build_config.rb

27 lines
666 B
Ruby

MRuby::Build.new do |conf|
toolchain :gcc
conf.gembox 'default'
conf.gem File.expand_path(File.dirname(__FILE__))
conf.instance_eval do
# Allow showing backtrace.
@mrbc.compile_options += ' -g'
end
conf.cc do |cc|
cc.include_paths += %w(/opt/X11/include)
# Never support Visual C++.
# https://github.com/mruby/mruby/blob/1.2.0/CONTRIBUTING.md#comply-with-c99-isoiec-98991999
(cc.flags.first.is_a?(String) ? cc.flags : cc.flags.first).reject! do |flag|
flag == '-Wdeclaration-after-statement'
end
end
conf.linker do |linker|
linker.libraries += %w(X11)
linker.library_paths += %w(/opt/X11/lib)
end
end