-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added example build script for Android armeabi-v7a NEON hardware FPU
- Loading branch information
Felix Jones
committed
Feb 16, 2017
1 parent
324231a
commit fd08e0e
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
examples/targets/build_config_android_armeabi_v7a_neon_hard.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
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-v7a-neon-hard') do |conf| | |||
params = { | |||
:arch => 'armeabi-v7a', | |||
:mfpu => 'neon', | |||
:mfloat_abi => 'hard', | |||
:platform => 'android-24', | |||
:toolchain => :clang, | |||
} | |||
toolchain :android, params | |||
|
|||
conf.gembox 'default' | |||
end |