diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-15 10:30:27 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-15 10:30:27 +0900 |
| commit | 0376d4d4c63140abfb45d119514a7049d286c141 (patch) | |
| tree | c14e915e205192f8f292cc775e24ec83a2a46c02 /examples | |
| parent | dd24f9f5cc6cc878ae00cf96ce08ae1486d8c0cb (diff) | |
| parent | 5395dbfb3a1f424c6adc37b7d73d9def37e9e227 (diff) | |
| download | mruby-0376d4d4c63140abfb45d119514a7049d286c141.tar.gz mruby-0376d4d4c63140abfb45d119514a7049d286c141.zip | |
Merge pull request #3455 from crimsonwoods/fix-android-build-script
Update android build script.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/targets/build_config_android_arm64-v8a.rb | 26 | ||||
| -rw-r--r-- | examples/targets/build_config_android_armeabi.rb | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/examples/targets/build_config_android_arm64-v8a.rb b/examples/targets/build_config_android_arm64-v8a.rb new file mode 100644 index 000000000..6188c13ec --- /dev/null +++ b/examples/targets/build_config_android_arm64-v8a.rb @@ -0,0 +1,26 @@ +MRuby::Build.new do |conf| + + # Gets set by the VS command prompts. + if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] + toolchain :visualcpp + else + toolchain :gcc + end + + enable_debug + + # include the default GEMs + conf.gembox 'default' +end + +# Requires Android NDK r13 or later. +MRuby::CrossBuild.new('android-arm64-v8a') do |conf| + params = { + :arch => 'arm64-v8a', + :platform => 'android-24', + :toolchain => :clang, + } + toolchain :android, params + + conf.gembox 'default' +end diff --git a/examples/targets/build_config_android_armeabi.rb b/examples/targets/build_config_android_armeabi.rb new file mode 100644 index 000000000..b7eb33a92 --- /dev/null +++ b/examples/targets/build_config_android_armeabi.rb @@ -0,0 +1,26 @@ +MRuby::Build.new do |conf| + + # Gets set by the VS command prompts. + if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] + toolchain :visualcpp + else + toolchain :gcc + end + + enable_debug + + # include the default GEMs + conf.gembox 'default' +end + +# Requires Android NDK r13 or later. +MRuby::CrossBuild.new('android-armeabi') do |conf| + params = { + :arch => 'armeabi', + :platform => 'android-24', + :toolchain => :clang, + } + toolchain :android, params + + conf.gembox 'default' +end |
