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
dd68ea97
Commit
dd68ea97
authored
Feb 23, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make mruby build directory customizable
parent
e202d4cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tasks/mruby_build.rake
tasks/mruby_build.rake
+5
-3
No files found.
tasks/mruby_build.rake
View file @
dd68ea97
...
...
@@ -52,7 +52,7 @@ module MRuby
Exts
=
Struct
.
new
(
:object
,
:executable
,
:library
)
def
initialize
(
name
=
'host'
,
&
block
)
def
initialize
(
name
=
'host'
,
build_dir
=
nil
,
&
block
)
@name
=
name
.
to_s
unless
MRuby
.
targets
[
@name
]
...
...
@@ -62,9 +62,11 @@ module MRuby
@exts
=
Exts
.
new
(
'.o'
,
''
,
'.a'
)
end
build_dir
=
build_dir
||
ENV
[
'MRUBY_BUILD_DIR'
]
||
"
#{
MRUBY_ROOT
}
/build"
@file_separator
=
'/'
@build_dir
=
"
#{
MRUBY_ROOT
}
/build
/
#{
@name
}
"
@gem_clone_dir
=
"
#{
MRUBY_ROOT
}
/build
/mrbgems"
@build_dir
=
"
#{
build_dir
}
/
#{
@name
}
"
@gem_clone_dir
=
"
#{
build_dir
}
/mrbgems"
@cc
=
Command
::
Compiler
.
new
(
self
,
%w(.c)
)
@cxx
=
Command
::
Compiler
.
new
(
self
,
%w(.cc .cxx .cpp)
)
@objc
=
Command
::
Compiler
.
new
(
self
,
%w(.m)
)
...
...
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