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
48616a85
Commit
48616a85
authored
Mar 05, 2014
by
mattn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chmod 755
parent
fb621ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mrbgems/mruby-bin-mruby-config/mrbgem.rake
mrbgems/mruby-bin-mruby-config/mrbgem.rake
+3
-4
No files found.
mrbgems/mruby-bin-mruby-config/mrbgem.rake
View file @
48616a85
require
'FileUtils'
module
MRuby
module
MRuby
class
Build
class
Build
def
exefile
(
name
)
def
exefile
(
name
)
if
name
.
is_a?
(
Array
)
if
name
.
is_a?
(
Array
)
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
elsif
name
!~
/\./
elsif
name
!~
/\./
"
#{
name
}#{
exts
.
executable
}
"
"
#{
name
}#{
exts
.
executable
}
"
else
else
name
name
...
@@ -26,6 +24,7 @@ MRuby.each_target do
...
@@ -26,6 +24,7 @@ MRuby.each_target do
config
=
Hash
[
open
(
"
#{
build_dir
}
/lib/libmruby.flags.mak"
).
read
.
split
(
"
\n
"
).
map
{
|
x
|
x
.
split
(
/\s*=\s*/
,
2
)}]
config
=
Hash
[
open
(
"
#{
build_dir
}
/lib/libmruby.flags.mak"
).
read
.
split
(
"
\n
"
).
map
{
|
x
|
x
.
split
(
/\s*=\s*/
,
2
)}]
IO
.
write
(
t
.
name
,
File
.
open
(
t
.
name
)
{
|
f
|
IO
.
write
(
t
.
name
,
File
.
open
(
t
.
name
)
{
|
f
|
f
.
read
.
gsub
(
/echo (MRUBY_CFLAGS|MRUBY_LDFLAGS|MRUBY_LIBS)/
)
{
|
x
|
config
[
$1
].
empty?
?
'echo/'
:
"echo
#{
config
[
$1
]
}
"
}
f
.
read
.
gsub
(
/echo (MRUBY_CFLAGS|MRUBY_LDFLAGS|MRUBY_LIBS)/
)
{
|
x
|
config
[
$1
].
empty?
?
'echo/'
:
"echo
#{
config
[
$1
]
}
"
}
})
})
FileUtils
.
chmod
(
0755
,
t
.
name
)
end
end
end
end
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