Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
1520c97e
Unverified
Commit
1520c97e
authored
Aug 16, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default `host` target for cross compiling.
You don't have to define explicit `host` build target any more.
parent
8a875493
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
127 deletions
+15
-127
lib/mruby/build.rb
lib/mruby/build.rb
+11
-0
target/ArduinoDue.rb
target/ArduinoDue.rb
+0
-16
target/IntelGalileo.rb
target/IntelGalileo.rb
+0
-17
target/RX630.rb
target/RX630.rb
+0
-16
target/android_arm64-v8a.rb
target/android_arm64-v8a.rb
+0
-15
target/android_armeabi.rb
target/android_armeabi.rb
+0
-15
target/android_armeabi_v7a_neon_hard.rb
target/android_armeabi_v7a_neon_hard.rb
+0
-15
target/chipKITMax32.rb
target/chipKITMax32.rb
+0
-16
target/cross-32bit.rb
target/cross-32bit.rb
+4
-3
target/dreamcast_shelf.rb
target/dreamcast_shelf.rb
+0
-14
No files found.
lib/mruby/build.rb
View file @
1520c97e
...
...
@@ -370,6 +370,17 @@ EOS
attr_accessor
:host_target
,
:build_target
def
initialize
(
name
,
build_dir
=
nil
,
&
block
)
unless
MRuby
.
targets
[
'host'
]
# add minimal 'host'
MRuby
::
Build
.
new
(
'host'
)
do
|
conf
|
if
ENV
[
'VisualStudioVersion'
]
||
ENV
[
'VSINSTALLDIR'
]
toolchain
:visualcpp
else
toolchain
:gcc
end
conf
.
gem
:core
=>
'mruby-bin-mrbc'
end
end
@endian
=
nil
@test_runner
=
Command
::
CrossTestRunner
.
new
(
self
)
super
...
...
target/ArduinoDue.rb
View file @
1520c97e
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
# Cross Compiling configuration for Arduino Due
# http://arduino.cc/en/Main/ArduinoBoardDue
#
...
...
target/IntelGalileo.rb
View file @
1520c97e
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
# Cross Compiling configuration for Intel Galileo on Arduino environment
# http://arduino.cc/en/ArduinoCertified/IntelGalileo
#
...
...
target/RX630.rb
View file @
1520c97e
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
# Cross Compiling configuration for RX630
# http://gadget.renesas.com/
#
...
...
target/android_arm64-v8a.rb
View file @
1520c97e
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
=
{
...
...
target/android_armeabi.rb
View file @
1520c97e
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
=
{
...
...
target/android_armeabi_v7a_neon_hard.rb
View file @
1520c97e
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
=
{
...
...
target/chipKITMax32.rb
View file @
1520c97e
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
# Cross Compiling configuration for Digilent chipKIT Max32
# http://www.digilentinc.com/Products/Detail.cfm?Prod=CHIPKIT-MAX32
#
...
...
target/cross-32bit.rb
View file @
1520c97e
# Define cross build settings
MRuby
::
CrossBuild
.
new
(
'32bit'
)
do
|
conf
|
MRuby
::
CrossBuild
.
new
(
'
cross-
32bit'
)
do
|
conf
|
toolchain
:gcc
conf
.
cc
.
flags
<<
"-m32"
conf
.
linker
.
flags
<<
"-m32"
conf
.
build_mrbtest_lib_only
#
conf.build_mrbtest_lib_only
conf
.
gem
'examples/mrbgems/c_and_ruby_extension_example'
conf
.
gem
:core
=>
"mruby-bin-mruby"
conf
.
gem
"
#{
MRUBY_ROOT
}
/examples/mrbgems/c_and_ruby_extension_example"
conf
.
test_runner
.
command
=
'env'
end
target/dreamcast_shelf.rb
View file @
1520c97e
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
# Cross Compiling configuration for the Sega Dreamcast
# This configuration requires KallistiOS (KOS)
# https://dreamcast.wiki
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment