Skip to content

Commit 5395dbf

Browse files
committed
Add new two build config files.
1 parent a6b1e96 commit 5395dbf

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
MRuby::Build.new do |conf|
2+
3+
# Gets set by the VS command prompts.
4+
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
5+
toolchain :visualcpp
6+
else
7+
toolchain :gcc
8+
end
9+
10+
enable_debug
11+
12+
# include the default GEMs
13+
conf.gembox 'default'
14+
end
15+
16+
# Requires Android NDK r13 or later.
17+
MRuby::CrossBuild.new('android-arm64-v8a') do |conf|
18+
params = {
19+
:arch => 'arm64-v8a',
20+
:platform => 'android-24',
21+
:toolchain => :clang,
22+
}
23+
toolchain :android, params
24+
25+
conf.gembox 'default'
26+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
MRuby::Build.new do |conf|
2+
3+
# Gets set by the VS command prompts.
4+
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
5+
toolchain :visualcpp
6+
else
7+
toolchain :gcc
8+
end
9+
10+
enable_debug
11+
12+
# include the default GEMs
13+
conf.gembox 'default'
14+
end
15+
16+
# Requires Android NDK r13 or later.
17+
MRuby::CrossBuild.new('android-armeabi') do |conf|
18+
params = {
19+
:arch => 'armeabi',
20+
:platform => 'android-24',
21+
:toolchain => :clang,
22+
}
23+
toolchain :android, params
24+
25+
conf.gembox 'default'
26+
end

0 commit comments

Comments
 (0)