FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/src/mruby_core.rake at master · drbrain/mruby · GitHub
drbrain
/
mruby
Public
forked from
mruby/mruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mruby
/
src
/
mruby_core.rake
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (16 loc) · 673 Bytes
Breadcrumbs
mruby
/
src
/
mruby_core.rake
Copy path
File metadata and controls
19 lines (16 loc) · 673 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}
"
objs
=
Dir
.
glob
(
"
#{
current_dir
}
/*.c"
)
.
map
{
|
f
|
next
nil
if
cxx_abi_enabled?
and
f
=~
/(error|vm).c$/
objfile
(
f
.
pathmap
(
"
#{
current_build_dir
}
/%n"
)
)
}
.
compact
if
cxx_abi_enabled?
objs
+=
%w(
vm
error
)
.
map
{
|
v
|
compile_as_cxx
"
#{
current_dir
}
/
#{
v
}
.c"
,
"
#{
current_build_dir
}
/
#{
v
}
.cxx"
}
end
self
.
libmruby
<<
objs
file
libfile
(
"
#{
build_dir
}
/lib/libmruby_core"
)
=>
objs
do
|
t
|
archiver
.
run
t
.
name
,
t
.
prerequisites
end
end
Back
|
FazBrowse Home
|
New Git URL