This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
forked from matsumotory/ngx_mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_config.rb
81 lines (65 loc) · 2.3 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
MRuby::Build.new('host') do |conf|
toolchain :gcc
conf.defines << 'MRB_STR_LENGTH_MAX=10485760'
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']
linker.libraries << ENV['NGX_MRUBY_LIBS'].split(',') if ENV['NGX_MRUBY_LIBS']
end
#
# Recommended for ngx_mruby
#
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'
# 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
conf.defines << 'MRB_STR_LENGTH_MAX=10485760'
# 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-env'
# include the default GEMs
conf.gembox 'full-core'
end