-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_config.rb
34 lines (28 loc) · 1.01 KB
/
build_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
MRuby::Build.new('host') do |conf|
toolchain :gcc
conf.gembox 'full-core'
conf.cc do |cc|
cc.flags << ENV['NGX_MRUBY_CFLAGS'] if ENV['NGX_MRUBY_CFLAGS']
end
conf.linker do |linker|
linker.flags << ENV['NGX_MRUBY_LDFLAGS'] if ENV['NGX_MRUBY_LDFLAGS']
end
# recommended mrbgems
conf.gem :github => 'iij/mruby-env'
conf.gem :github => 'iij/mruby-dir'
conf.gem :github => 'iij/mruby-digest'
conf.gem :github => 'iij/mruby-process'
conf.gem :github => 'mattn/mruby-json'
conf.gem :github => 'mattn/mruby-onig-regexp'
conf.gem :github => 'matsumotory/mruby-redis'
conf.gem :github => 'matsumotory/mruby-vedis'
conf.gem :github => 'matsumotory/mruby-userdata'
conf.gem :github => 'matsumotory/mruby-uname'
conf.gem :github => 'matsumotory/mruby-mutex'
conf.gem :github => 'matsumotory/mruby-localmemcache'
conf.gem :mgem => 'mruby-secure-random'
# ngx_mruby extended class
conf.gem './mrbgems/ngx_mruby_mrblib'
conf.gem './mrbgems/rack-based-api'
conf.gem './mrbgems/auto-ssl'
end