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
95cb4168
Commit
95cb4168
authored
Jun 10, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2829 from hiroshiyui/mirb-termcap-compat
Detect if ncurses' backend is terminfo or termcap.
parents
5c6de685
be2c1568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Rakefile
Rakefile
+1
-0
mrbgems/mruby-bin-mirb/mrbgem.rake
mrbgems/mruby-bin-mirb/mrbgem.rake
+10
-4
No files found.
Rakefile
View file @
95cb4168
...
...
@@ -3,6 +3,7 @@
# basic build file for mruby
MRUBY_ROOT
=
File
.
dirname
(
File
.
expand_path
(
__FILE__
))
MRUBY_BUILD_HOST_IS_CYGWIN
=
RUBY_PLATFORM
.
include?
(
'cygwin'
)
MRUBY_BUILD_HOST_IS_OPENBSD
=
RUBY_PLATFORM
.
include?
(
'openbsd'
)
# load build systems
load
"
#{
MRUBY_ROOT
}
/tasks/ruby_ext.rake"
...
...
mrbgems/mruby-bin-mirb/mrbgem.rake
View file @
95cb4168
...
...
@@ -6,10 +6,16 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
if
spec
.
build
.
cc
.
search_header_path
'readline/readline.h'
spec
.
cc
.
defines
<<
"ENABLE_READLINE"
if
spec
.
build
.
cc
.
search_header_path
'termcap.h'
if
MRUBY_BUILD_HOST_IS_CYGWIN
then
spec
.
linker
.
libraries
<<
'ncurses'
else
spec
.
linker
.
libraries
<<
'termcap'
if
MRUBY_BUILD_HOST_IS_CYGWIN
||
MRUBY_BUILD_HOST_IS_OPENBSD
if
spec
.
build
.
cc
.
search_header_path
'termcap.h'
if
MRUBY_BUILD_HOST_IS_CYGWIN
then
spec
.
linker
.
libraries
<<
'ncurses'
elsif
spec
.
linker
.
has_library
(
'libterminfo'
)
then
spec
.
linker
.
libraries
<<
'terminfo'
else
spec
.
linker
.
libraries
<<
'termcap'
end
end
end
end
if
RUBY_PLATFORM
.
include?
(
'netbsd'
)
...
...
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