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
e35ce6c2
Commit
e35ce6c2
authored
Jan 10, 2013
by
mattn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/mruby/mruby
parents
ee0f73a4
af624a0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Rakefile
Rakefile
+8
-4
test/mrbtest.rake
test/mrbtest.rake
+1
-1
No files found.
Rakefile
View file @
e35ce6c2
...
...
@@ -27,18 +27,22 @@ load 'test/mrbtest.rake'
# generic build targets, rules
task
:default
=>
:all
bin
files
=
MRuby
.
targets
[
'host'
].
bins
.
map
do
|
bin
|
dep
files
=
MRuby
.
targets
[
'host'
].
bins
.
map
do
|
bin
|
install_path
=
exefile
(
"bin/
#{
bin
}
"
)
file
install_path
=>
exefile
(
"build/host/bin/
#{
bin
}
"
)
do
|
t
|
FileUtils
.
cp
t
.
prerequisites
.
first
,
t
.
name
end
install_path
end
depfiles
+=
MRuby
.
targets
.
reject
{
|
n
,
t
|
n
==
'host'
}.
map
do
|
n
,
t
|
[
"
#{
t
.
build_dir
}
/lib/libmruby.a"
]
+
t
.
bins
.
map
{
|
bin
|
exefile
(
"
#{
t
.
build_dir
}
/bin/
#{
bin
}
"
)
}
end
desc
"build all targets, install (locally) in-repo"
task
:all
=>
binfiles
+
MRuby
.
targets
.
values
.
map
{
|
t
|
[
exefile
(
"
#{
t
.
build_dir
}
/bin/mruby"
),
exefile
(
"
#{
t
.
build_dir
}
/bin/mirb"
),
exefile
(
"
#{
t
.
build_dir
}
/bin/mrbc"
)]
}.
flatten
task
:all
=>
depfiles
desc
"run all mruby tests"
task
:test
=>
MRuby
.
targets
.
values
.
map
{
|
t
|
exefile
(
"
#{
t
.
build_dir
}
/test/mrbtest"
)
}
do
...
...
@@ -53,5 +57,5 @@ task :clean do
MRuby
.
each_target
do
|
t
|
FileUtils
.
rm_rf
t
.
build_dir
end
FileUtils
.
rm_f
bin
files
FileUtils
.
rm_f
dep
files
end
test/mrbtest.rake
View file @
e35ce6c2
...
...
@@ -15,7 +15,7 @@ MRuby.each_target do
end
file
mlib
=>
[
clib
]
file
clib
=>
[
exefile
(
"
#{
build_dir
}
/bin/mrbc"
)
,
init
,
asslib
]
+
mrbs
do
|
t
|
file
clib
=>
[
mrbcfile
,
init
,
asslib
]
+
mrbs
do
|
t
|
open
(
clib
,
'w'
)
do
|
f
|
f
.
puts
File
.
read
(
init
)
compile_mruby
f
,
[
asslib
]
+
mrbs
,
'mrbtest_irep'
...
...
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