forked from whylom/nginx-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmruby_build_config.rb
39 lines (33 loc) · 1.24 KB
/
mruby_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
35
36
37
38
39
# This is copied out of the ngx_mruby repository in order to allow us to remove
# the redis gem that is bundled by default (and won't compile on our setups).
#
# Beyond that, this is some build config. It controls which mruby gems get bundled
# into the MRuby instance built into nginx.
#
# More detail can be found in the ngx_mruby wiki here:
# https://github.com/matsumoto-r/ngx_mruby/wiki/Install#1-download
MRuby::Build.new do |conf|
toolchain :gcc
conf.gembox 'full-core'
conf.cc do |cc|
cc.flags << ENV['NGX_MRUBY_CFLAGS'] if ENV['NGX_MRUBY_CFLAGS']
end
# Recommended for ngx_mruby
#
# These are gems that ngx_mruby recommends bundling with the build in order to
# provide useful/expected features
#
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-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'
end