github.com/anycable/anycable-go@v1.5.1/etc/build_config.rb (about) 1 # mruby build configurations 2 3 MRuby::Build.new do |conf| 4 # load specific toolchain settings 5 6 # Gets set by the VS command prompts. 7 if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] 8 toolchain :visualcpp 9 else 10 toolchain :gcc 11 end 12 13 # enable_debug 14 15 # Use mrbgems 16 # conf.gem 'examples/mrbgems/ruby_extension_example' 17 # conf.gem 'examples/mrbgems/c_extension_example' do |g| 18 # g.cc.flags << '-g' # append cflags in this gem 19 # end 20 # conf.gem 'examples/mrbgems/c_and_ruby_extension_example' 21 conf.gem :github => 'iij/mruby-env' 22 # conf.gem :github => 'masuidrive/mrbgems-example', :checksum_hash => '76518e8aecd131d047378448ac8055fa29d974a9' 23 # conf.gem :git => 'git@github.com:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v' 24 25 # include the default GEMs 26 conf.gembox 'default' 27 # C compiler settings 28 # conf.cc do |cc| 29 # cc.command = ENV['CC'] || 'gcc' 30 # cc.flags = [ENV['CFLAGS'] || %w()] 31 # cc.include_paths = ["#{root}/include"] 32 # cc.defines = %w(DISABLE_GEMS) 33 # cc.option_include_path = '-I%s' 34 # cc.option_define = '-D%s' 35 # cc.compile_options = "%{flags} -MMD -o %{outfile} -c %{infile}" 36 # end 37 38 # mrbc settings 39 # conf.mrbc do |mrbc| 40 # mrbc.compile_options = "-g -B%{funcname} -o-" # The -g option is required for line numbers 41 # end 42 43 # Linker settings 44 # conf.linker do |linker| 45 # linker.command = ENV['LD'] || 'gcc' 46 # linker.flags = [ENV['LDFLAGS'] || []] 47 # linker.flags_before_libraries = [] 48 # linker.libraries = %w() 49 # linker.flags_after_libraries = [] 50 # linker.library_paths = [] 51 # linker.option_library = '-l%s' 52 # linker.option_library_path = '-L%s' 53 # linker.link_options = "%{flags} -o %{outfile} %{objs} %{libs}" 54 # end 55 56 # Archiver settings 57 # conf.archiver do |archiver| 58 # archiver.command = ENV['AR'] || 'ar' 59 # archiver.archive_options = 'rs %{outfile} %{objs}' 60 # end 61 62 # Parser generator settings 63 # conf.yacc do |yacc| 64 # yacc.command = ENV['YACC'] || 'bison' 65 # yacc.compile_options = '-o %{outfile} %{infile}' 66 # end 67 68 # gperf settings 69 # conf.gperf do |gperf| 70 # gperf.command = 'gperf' 71 # gperf.compile_options = '-L ANSI-C -C -p -j1 -i 1 -g -o -t -N mrb_reserved_word -k"1,3,$" %{infile} > %{outfile}' 72 # end 73 74 # file extensions 75 # conf.exts do |exts| 76 # exts.object = '.o' 77 # exts.executable = '' # '.exe' if Windows 78 # exts.library = '.a' 79 # end 80 81 # file separetor 82 # conf.file_separator = '/' 83 84 # bintest 85 # conf.enable_bintest 86 end