るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.016秒)
トップページ > クエリ:config[x] > クエリ:arg_config[x]

別のキーワード

  1. drb config
  2. mkmf with_config
  3. mkmf enable_config
  4. rbconfig config
  5. kernel with_config

ライブラリ

モジュール

検索結果

Kernel#arg_config(config, default) { ... } -> object | String | true | nil (24367.0)

configure オプション --config の値を返します。

...
config
ure オプション --config の値を返します。

@param config オプションを文字列で指定します。

@param default 引数 config で指定したオプションのデフォルト値を指定します。

@return オプションが指定されてた場合は true を、指定...
...ンに引数が指定されていた場合は指定した文字列を返します。

例えば extconf.rb で arg_config メソッドを使う場合、

$ ruby extconf.rb --foo --bar=baz

と実行したとき、arg_config("--foo") の値は true、
arg_config
("--bar") の値は "baz" です。...

mkmf (54.0)

Ruby の拡張ライブラリのための Makefile を作成するライブラリです。

..._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...
...tconf.rb --with-bar-dir=/usr/local

dir_config 関数の詳細については
Kernel#dir_config を参照してください。

=== configure オプション

config
ure オプションとは Ruby インタプリタのコンパイル時に指定された
config
ure スクリプトのオプション、...
...は extconf.rb 実行時のオプションのことです。

extconf.rb の作成者は任意のオプションを定義できます。
Kernel#arg_config も参照してください。

また、以下のオプションがデフォルトで利用可能です。

: --with-opt-include=DIR
ヘッ...