Created
June 8, 2013 09:52
-
-
Save bamchoh/5734712 to your computer and use it in GitHub Desktop.
mrubyのminirakeで自作のbinファイルを作成する ref: http://qiita.com/bamchoh/items/5a36b006f6900f5ddca0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 以下の記載を MRuby::Build.new のブロック内に記載する | |
conf.gem 'mrbgems/mruby-bin-hoge' #=> mrbgems下にあるとした場合の指定の仕方 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mhogeというbinファイルを作りたい場合 | |
+- mruby-bin-hoge #=> ディレクトリ名はmrbgems.rake内の設定と一致させる(後述) | |
+- tools | |
| +- mhoge #=> ディレクトリ名はmrbgems.rake内の設定と一致させる(後述) | |
| | | |
| +- mhoge.c | |
| | |
+-mrbgem.rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specification.new(自作binルートディレクトリ名) とすること | |
# spec.bins = %w(tools下ディレクトリ名) とすること | |
MRuby::Gem::Specification.new('mruby-bin-hoge') do |spec| | |
spec.license = 'MIT' #=> 自分の規定したライセンスにする? | |
spec.authors = '@bamchoh' #=> 作者の名前を記載する? | |
spec.bins = %w(mhoge) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specification.new(自作binルートディレクトリ名) とすること | |
# spec.bins = %w(tools下ディレクトリ名) とすること | |
MRuby::Gem::Specification.new('mruby-bin-hoge') do |spec| | |
spec.licence = 'MIT' #=> 自分の規定したライセンスにする? | |
spec.authors = '@bamchoh' #=> 作者の名前を記載する? | |
spec.bins = %w(mhoge) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment