Last change
on this file since 380 was 321, checked in by coas-nagasima, 7 years ago |
文字コードを設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby;charset=UTF-8
|
File size:
1.0 KB
|
Line | |
---|
1 | MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
|
---|
2 | spec.license = 'MIT'
|
---|
3 | spec.author = 'mruby developers'
|
---|
4 | spec.summary = 'mirb command'
|
---|
5 |
|
---|
6 | if spec.build.cc.search_header_path 'readline/readline.h'
|
---|
7 | spec.cc.defines << "ENABLE_READLINE"
|
---|
8 | if spec.build.cc.search_header_path 'termcap.h'
|
---|
9 | if MRUBY_BUILD_HOST_IS_CYGWIN || MRUBY_BUILD_HOST_IS_OPENBSD
|
---|
10 | if spec.build.cc.search_header_path 'termcap.h'
|
---|
11 | if MRUBY_BUILD_HOST_IS_CYGWIN then
|
---|
12 | spec.linker.libraries << 'ncurses'
|
---|
13 | else
|
---|
14 | spec.linker.libraries << 'termcap'
|
---|
15 | end
|
---|
16 | end
|
---|
17 | end
|
---|
18 | end
|
---|
19 | if RUBY_PLATFORM.include?('netbsd')
|
---|
20 | spec.linker.libraries << 'edit'
|
---|
21 | else
|
---|
22 | spec.linker.libraries << 'readline'
|
---|
23 | if spec.build.cc.search_header_path 'curses.h'
|
---|
24 | spec.linker.libraries << 'ncurses'
|
---|
25 | end
|
---|
26 | end
|
---|
27 | elsif spec.build.cc.search_header_path 'linenoise.h'
|
---|
28 | spec.cc.defines << "ENABLE_LINENOISE"
|
---|
29 | end
|
---|
30 |
|
---|
31 | spec.bins = %w(mirb)
|
---|
32 | spec.add_dependency('mruby-compiler', :core => 'mruby-compiler')
|
---|
33 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.