FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/src/mruby_core.rake at master · randym/mruby · GitHub
randym
/
mruby
Public
forked from
mruby/mruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
28 lines (23 loc) · 975 Bytes
Breadcrumbs
mruby
/
src
/
mruby_core.rake
Copy path
File metadata and controls
28 lines (23 loc) · 975 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
20
21
22
23
24
25
26
27
28
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
}
"
lex_def
=
"
#{
current_dir
}
/lex.def"
objs
=
Dir
.
glob
(
"
#{
current_dir
}
/*.c"
)
.
map
{
|
f
|
objfile
(
f
.
pathmap
(
"
#{
current_build_dir
}
/%n"
)
)
}
objs
+=
[
objfile
(
"
#{
current_build_dir
}
/y.tab"
)
]
self
.
libmruby
<<
objs
file
libfile
(
"
#{
build_dir
}
/lib/libmruby_core"
)
=>
objs
do
|
t
|
archiver
.
run
t
.
name
,
t
.
prerequisites
end
# Parser
file
"
#{
current_build_dir
}
/y.tab.c"
=>
[
"
#{
current_dir
}
/parse.y"
]
do
|
t
|
yacc
.
run
t
.
name
,
t
.
prerequisites
.
first
end
file
objfile
(
"
#{
current_build_dir
}
/y.tab"
)
=>
[
"
#{
current_build_dir
}
/y.tab.c"
,
lex_def
]
do
|
t
|
cc
.
run
t
.
name
,
t
.
prerequisites
.
first
,
[
]
,
[
current_dir
]
end
# Lexical analyzer
file
lex_def
=>
"
#{
current_dir
}
/keywords"
do
|
t
|
gperf
.
run
t
.
name
,
t
.
prerequisites
.
first
end
end
Back
|
FazBrowse Home
|
New Git URL