種類
- 変数 (99)
- インスタンスメソッド (66)
- 文書 (33)
- ライブラリ (22)
モジュール
- Kernel (165)
キーワード
-
$ CFLAGS (11) -
$ LDFLAGS (11) -
$ archdir (11) -
$ hdrdir (11) -
$ libdir (11) -
$ sitearchdir (11) -
$ sitelibdir (11) -
$ srcdir (11) -
$ topdir (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
dir
_ config (11) -
dummy
_ makefile (11) -
install
_ rb (11) -
rm
_ f (11) -
rm
_ rf (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) - un (11)
検索結果
先頭5件
-
mkmf (38324.0)
-
Ruby の拡張ライブラリのための Makefile を作成するライブラリです。
...。
require 'mkmf'
dir_config('bar')
if have_header('bar.h') and have_library('bar', 'baz')
create_makefile('foo')
end
拡張ライブラリ foo.so を作成、インストールするには以下のようにします。
$ ruby extconf.rb
$ make
$ make site-install
foo.so の......extconf.rb では dir_config('bar') を実行しているので、
ユーザは以下のようにコマンドラインオプション --with-bar-dir
などを使って、ヘッダファイルのパスやライブラリのパスを指定できます。
$ ruby extconf.rb --with-bar-include=/usr/loc......al/include \
--with-bar-lib=/usr/local/lib
または
$ ruby extconf.rb --with-bar-dir=/usr/local
dir_config 関数の詳細については
Kernel#dir_config を参照してください。
=== configure オプション
configure オプションとは Ruby インタプリ... -
Kernel
# mkmf -> () (18289.0) -
mkmf を使って Makefile を作成します。
...
mkmf を使って Makefile を作成します。
ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION]
-d ARGS run dir_config
-h ARGS run have_header
-l ARGS run have_library
-f ARGS run have_func
-v ARGS run have_var
-t ARGS run have_type
-m ARGS run have_macro
-c ARGS run have_const......--vendor install to vendor_ruby... -
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (14409.0) -
configure オプション --with-TARGET-dir, --with-TARGET-include, --with-TARGET-lib をユーザが extconf.rb に指定できるようにします。
...configure オプション
--with-TARGET-dir,
--with-TARGET-include,
--with-TARGET-lib
をユーザが extconf.rb に指定できるようにします。
--with-TARGET-dir オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをま......て指定するために使います。
ユーザが extconf.rb に --with-TARGET-dir=PATH を指定したときは
$CFLAGS に "-IPATH/include" を、
$LDFLAGS に "-LPATH/lib" を、
それぞれ追加します。
--with-TARGET-include オプションは
システム標準ではないヘッダフ......ldefault システム標準ではないライブラリのディレクトリのデフォルト値を指定します。
例
require 'mkmf'
# xml2 の configure オプションを指定できるようにします。
xml2_dirs = dir_config('xml2', '/opt/local/include/libxml2', '/opt/local/lib')... -
Kernel
$ $ archdir -> String (14200.0) -
マシン固有のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/バージョン/arch" です。
マシン固有のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/バージョン/arch" です。 -
Kernel
$ $ hdrdir -> String (14200.0) -
Ruby のヘッダファイル ruby.h が存在するディレクトリです。 通常は $archdir と同じで、"/usr/local/lib/ruby/バージョン/arch" です。
...Ruby のヘッダファイル ruby.h が存在するディレクトリです。
通常は $archdir と同じで、"/usr/local/lib/ruby/バージョン/arch" です。... -
Kernel
$ $ libdir -> String (14200.0) -
Ruby のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/バージョン" です。
Ruby のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/バージョン" です。 -
Kernel
$ $ sitearchdir -> String (14200.0) -
サイト固有でかつマシン固有のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/site_ruby/バージョン/arch" です。
サイト固有でかつマシン固有のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/site_ruby/バージョン/arch" です。 -
Kernel
$ $ sitelibdir -> String (14200.0) -
サイト固有のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/site_ruby/バージョン" です。
サイト固有のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/site_ruby/バージョン" です。 -
Kernel
$ $ srcdir -> String (14200.0) -
Ruby インタプリタを make したときのソースディレクトリです。
Ruby インタプリタを make したときのソースディレクトリです。 -
Kernel
$ $ topdir -> String (14200.0) -
拡張ライブラリを make するためのヘッダファイル、 ライブラリ等が存在するディレクトリです。 通常は $archdir と同じで、"/usr/local/lib/ruby/バージョン/arch" です。
...拡張ライブラリを make するためのヘッダファイル、
ライブラリ等が存在するディレクトリです。
通常は $archdir と同じで、"/usr/local/lib/ruby/バージョン/arch" です。...