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
9ac23ae2
Commit
9ac23ae2
authored
May 20, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support extension '.cc' in globbing.
parent
929328ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Rakefile
Rakefile
+1
-1
tasks/mrbgem_spec.rake
tasks/mrbgem_spec.rake
+2
-2
tasks/mruby_build_gem.rake
tasks/mruby_build_gem.rake
+2
-2
No files found.
Rakefile
View file @
9ac23ae2
...
...
@@ -56,7 +56,7 @@ MRuby.each_target do |target|
gem
.
bins
.
each
do
|
bin
|
exec
=
exefile
(
"
#{
build_dir
}
/bin/
#{
bin
}
"
)
objs
=
Dir
.
glob
(
"
#{
current_dir
}
/tools/
#{
bin
}
/*.{c,cpp,cxx}"
).
map
{
|
f
|
objfile
(
f
.
pathmap
(
"
#{
current_build_dir
}
/tools/
#{
bin
}
/%n"
))
}
objs
=
Dir
.
glob
(
"
#{
current_dir
}
/tools/
#{
bin
}
/*.{c,cpp,cxx
,cc
}"
).
map
{
|
f
|
objfile
(
f
.
pathmap
(
"
#{
current_build_dir
}
/tools/
#{
bin
}
/%n"
))
}
file
exec
=>
objs
+
[
libfile
(
"
#{
build_dir
}
/lib/libmruby"
)]
do
|
t
|
gem_flags
=
gems
.
map
{
|
g
|
g
.
linker
.
flags
}
...
...
tasks/mrbgem_spec.rake
View file @
9ac23ae2
...
...
@@ -58,13 +58,13 @@ module MRuby
@linker
=
LinkerConfig
.
new
([],
[],
[],
[])
@rbfiles
=
Dir
.
glob
(
"
#{
dir
}
/mrblib/*.rb"
).
sort
@objs
=
Dir
.
glob
(
"
#{
dir
}
/src/*.{c,cpp,cxx,m,asm,S}"
).
map
do
|
f
|
@objs
=
Dir
.
glob
(
"
#{
dir
}
/src/*.{c,cpp,cxx,
cc,
m,asm,S}"
).
map
do
|
f
|
objfile
(
f
.
relative_path_from
(
@dir
).
to_s
.
pathmap
(
"
#{
build_dir
}
/%X"
))
end
@objs
<<
objfile
(
"
#{
build_dir
}
/gem_init"
)
@test_rbfiles
=
Dir
.
glob
(
"
#{
dir
}
/test/*.rb"
)
@test_objs
=
Dir
.
glob
(
"
#{
dir
}
/test/*.{c,cpp,cxx,m,asm,S}"
).
map
do
|
f
|
@test_objs
=
Dir
.
glob
(
"
#{
dir
}
/test/*.{c,cpp,cxx,
cc,
m,asm,S}"
).
map
do
|
f
|
objfile
(
f
.
relative_path_from
(
dir
).
to_s
.
pathmap
(
"
#{
build_dir
}
/%X"
))
end
@test_preload
=
nil
# 'test/assert.rb'
...
...
tasks/mruby_build_gem.rake
View file @
9ac23ae2
...
...
@@ -35,8 +35,8 @@ module MRuby
Gem
.
current
.
build_config_initializer
=
block
gems
<<
Gem
.
current
cxx_srcs
=
Dir
.
glob
(
"
#{
Gem
.
current
.
dir
}
/src/*.{cpp,cxx}"
)
cxx_srcs
+=
Dir
.
glob
(
"
#{
Gem
.
current
.
dir
}
/test/*.{cpp,cxx}"
)
cxx_srcs
=
Dir
.
glob
(
"
#{
Gem
.
current
.
dir
}
/src/*.{cpp,cxx
,cc
}"
)
cxx_srcs
+=
Dir
.
glob
(
"
#{
Gem
.
current
.
dir
}
/test/*.{cpp,cxx
,cc
}"
)
enable_cxx_abi
unless
cxx_srcs
.
empty?
Gem
.
current
...
...
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