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
2241c39a
Commit
2241c39a
authored
May 09, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1245 from NARKOZ/fix-warnings
remove unused variables
parents
2e3e5d9c
9dd539bb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
26 deletions
+14
-26
minirake
minirake
+8
-8
tasks/mrbgems.rake
tasks/mrbgems.rake
+2
-5
tasks/mrbgems_test.rake
tasks/mrbgems_test.rake
+2
-6
tasks/mruby_build_commands.rake
tasks/mruby_build_commands.rake
+2
-7
No files found.
minirake
View file @
2241c39a
...
@@ -101,7 +101,7 @@ module MiniRake
...
@@ -101,7 +101,7 @@ module MiniRake
puts
"Execute
#{
name
}
"
if
$trace
puts
"Execute
#{
name
}
"
if
$trace
self
.
class
.
enhance_with_matching_rule
(
name
)
if
@actions
.
empty?
self
.
class
.
enhance_with_matching_rule
(
name
)
if
@actions
.
empty?
unless
$dryrun
unless
$dryrun
@actions
.
each
{
|
act
|
result
=
act
.
call
(
self
)
}
@actions
.
each
{
|
act
|
act
.
call
(
self
)
}
end
end
end
end
...
@@ -181,7 +181,7 @@ module MiniRake
...
@@ -181,7 +181,7 @@ module MiniRake
# the enhanced task or nil of no rule was found.
# the enhanced task or nil of no rule was found.
def
enhance_with_matching_rule
(
task_name
)
def
enhance_with_matching_rule
(
task_name
)
RULES
.
each
do
|
pattern
,
extensions
,
block
|
RULES
.
each
do
|
pattern
,
extensions
,
block
|
if
md
=
pattern
.
match
(
task_name
)
if
pattern
.
match
(
task_name
)
ext
=
extensions
.
first
ext
=
extensions
.
first
deps
=
extensions
[
1
..-
1
]
deps
=
extensions
[
1
..-
1
]
case
ext
case
ext
...
...
tasks/mrbgems.rake
View file @
2241c39a
MRuby
.
each_target
do
MRuby
.
each_target
do
current_dir
=
File
.
dirname
(
__FILE__
).
relative_path_from
(
Dir
.
pwd
)
relative_from_root
=
File
.
dirname
(
__FILE__
).
relative_path_from
(
MRUBY_ROOT
)
if
enable_gems?
if
enable_gems?
# set up all gems
# set up all gems
gems
.
each
(
&
:setup
)
gems
.
each
(
&
:setup
)
...
...
tasks/mrbgems_test.rake
View file @
2241c39a
MRuby
.
each_target
do
MRuby
.
each_target
do
current_dir
=
File
.
dirname
(
__FILE__
).
relative_path_from
(
Dir
.
pwd
)
relative_from_root
=
File
.
dirname
(
__FILE__
).
relative_path_from
(
MRUBY_ROOT
)
current_build_dir
=
"
#{
build_dir
}
/
#{
relative_from_root
}
"
gems
.
each
do
|
g
|
gems
.
each
do
|
g
|
test_rbobj
=
g
.
test_rbireps
.
ext
(
exts
.
object
)
test_rbobj
=
g
.
test_rbireps
.
ext
(
exts
.
object
)
...
...
tasks/mruby_build_commands.rake
View file @
2241c39a
...
@@ -60,10 +60,6 @@ module MRuby
...
@@ -60,10 +60,6 @@ module MRuby
def
run
(
outfile
,
infile
,
_defineds
=
[],
_include_paths
=
[],
_flags
=
[])
def
run
(
outfile
,
infile
,
_defineds
=
[],
_include_paths
=
[],
_flags
=
[])
FileUtils
.
mkdir_p
File
.
dirname
(
outfile
)
FileUtils
.
mkdir_p
File
.
dirname
(
outfile
)
define_flags
=
[
defines
,
_defineds
].
flatten
.
map
{
|
d
|
option_define
%
d
}
include_path_flags
=
[
include_paths
,
_include_paths
,
File
.
dirname
(
infile
)].
flatten
.
map
do
|
f
|
option_include_path
%
filename
(
f
)
end
_pp
"CC"
,
infile
.
relative_path
,
outfile
.
relative_path
_pp
"CC"
,
infile
.
relative_path
,
outfile
.
relative_path
if
MRUBY_BUILD_HOST_IS_CYGWIN
if
MRUBY_BUILD_HOST_IS_CYGWIN
_run
compile_options
,
{
:flags
=>
all_flags
(
_defineds
,
_include_paths
,
_flags
),
_run
compile_options
,
{
:flags
=>
all_flags
(
_defineds
,
_include_paths
,
_flags
),
...
@@ -152,7 +148,6 @@ module MRuby
...
@@ -152,7 +148,6 @@ module MRuby
def
run
(
outfile
,
objfiles
,
_libraries
=
[],
_library_paths
=
[],
_flags
=
[],
_flags_before_libraries
=
[],
_flags_after_libraries
=
[])
def
run
(
outfile
,
objfiles
,
_libraries
=
[],
_library_paths
=
[],
_flags
=
[],
_flags_before_libraries
=
[],
_flags_after_libraries
=
[])
FileUtils
.
mkdir_p
File
.
dirname
(
outfile
)
FileUtils
.
mkdir_p
File
.
dirname
(
outfile
)
library_flags
=
[
libraries
,
_libraries
].
flatten
.
map
{
|
d
|
option_library
%
d
}
library_flags
=
[
libraries
,
_libraries
].
flatten
.
map
{
|
d
|
option_library
%
d
}
library_path_flags
=
[
library_paths
,
_library_paths
].
flatten
.
map
{
|
f
|
option_library_path
%
filename
(
f
)
}
_pp
"LD"
,
outfile
.
relative_path
_pp
"LD"
,
outfile
.
relative_path
if
MRUBY_BUILD_HOST_IS_CYGWIN
if
MRUBY_BUILD_HOST_IS_CYGWIN
...
...
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