-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild_config.rb
85 lines (67 loc) · 2.44 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
MRuby::Build.new('host') do |conf|
toolchain :gcc
conf.gembox 'full-core'
conf.cc do |cc|
cc.flags << '-fPIC' if ENV['BUILD_DYNAMIC_MODULE']
cc.flags << ENV['NGX_MRUBY_CFLAGS'] if ENV['NGX_MRUBY_CFLAGS']
end
conf.gem './mrbgems/docker'
#
# Recommended for ngx_mruby
#
# conf.gem :github => 'iij/mruby-io'
# 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 => 'iij/mruby-pack'
# conf.gem :github => 'iij/mruby-socket'
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-sleep'
# 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'
# use memcached
# conf.gem :github => 'matsumotory/mruby-memcached'
# build error on travis ci 2014/12/01, commented out mruby-file-stat
# conf.gem :github => 'ksss/mruby-file-stat'
# use markdown on ngx_mruby
# conf.gem :github => 'matsumotory/mruby-discount'
# use mysql on ngx_mruby
#conf.gem :github => 'mattn/mruby-mysql'
# have GeoIPCity.dat
# conf.gem :github => 'matsumotory/mruby-geoip'
# Linux only for ngx_mruby
# conf.gem :github => 'matsumotory/mruby-capability'
# conf.gem :github => 'matsumotory/mruby-cgroup'
end
MRuby::Build.new('test') do |conf|
# load specific toolchain settings
# Gets set by the VS command prompts.
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
toolchain :visualcpp
else
toolchain :gcc
end
enable_debug
conf.gem :github => 'matsumotory/mruby-simplehttp'
conf.gem :github => 'matsumotory/mruby-httprequest'
conf.gem :github => 'matsumotory/mruby-uname'
conf.gem :github => 'matsumotory/mruby-simpletest'
conf.gem :github => 'mattn/mruby-http'
conf.gem :github => 'mattn/mruby-json'
conf.gem :github => 'iij/mruby-io'
conf.gem :github => 'iij/mruby-socket'
conf.gem :github => 'iij/mruby-pack'
conf.gem :github => 'iij/mruby-env'
# include the default GEMs
conf.gembox 'full-core'
end