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
0da057d9
Commit
0da057d9
authored
Jul 29, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2900 from joans321/enhance-mrbgem-build
mrbgem compile should be depend on mrbgem.rake
parents
8f3f7315
578db292
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
tasks/mrbgem_spec.rake
tasks/mrbgem_spec.rake
+1
-1
tasks/mruby_build_commands.rake
tasks/mruby_build_commands.rake
+4
-2
No files found.
tasks/mrbgem_spec.rake
View file @
0da057d9
...
...
@@ -130,7 +130,7 @@ module MRuby
end
def
define_gem_init_builder
file
objfile
(
"
#{
build_dir
}
/gem_init"
)
=>
"
#{
build_dir
}
/gem_init.c"
file
objfile
(
"
#{
build_dir
}
/gem_init"
)
=>
[
"
#{
build_dir
}
/gem_init.c"
,
File
.
join
(
dir
,
"mrbgem.rake"
)
]
file
"
#{
build_dir
}
/gem_init.c"
=>
[
build
.
mrbcfile
,
__FILE__
]
+
[
rbfiles
].
flatten
do
|
t
|
FileUtils
.
mkdir_p
build_dir
generate_gem_init
(
"
#{
build_dir
}
/gem_init.c"
)
...
...
tasks/mruby_build_commands.rake
View file @
0da057d9
...
...
@@ -92,6 +92,8 @@ module MRuby
def
define_rules
(
build_dir
,
source_dir
=
''
)
@out_ext
=
build
.
exts
.
object
gemrake
=
File
.
join
(
source_dir
,
"mrbgem.rake"
)
rakedep
=
File
.
exist?
(
gemrake
)
?
[
gemrake
]
:
[]
if
build_dir
.
include?
"mrbgems/"
generated_file_matcher
=
Regexp
.
new
(
"^
#{
Regexp
.
escape
build_dir
}
/(.*)
#{
Regexp
.
escape
out_ext
}
$"
)
...
...
@@ -104,7 +106,7 @@ module MRuby
file
.
sub
(
generated_file_matcher
,
"
#{
source_dir
}
/
\\
1
#{
ext
}
"
)
},
proc
{
|
file
|
get_dependencies
(
file
)
get_dependencies
(
file
)
+
rakedep
}
]
do
|
t
|
run
t
.
name
,
t
.
prerequisites
.
first
...
...
@@ -115,7 +117,7 @@ module MRuby
file
.
sub
(
generated_file_matcher
,
"
#{
build_dir
}
/
\\
1
#{
ext
}
"
)
},
proc
{
|
file
|
get_dependencies
(
file
)
get_dependencies
(
file
)
+
rakedep
}
]
do
|
t
|
run
t
.
name
,
t
.
prerequisites
.
first
...
...
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