るりまサーチ

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

別のキーワード

  1. dir chdir
  2. dir open
  3. dir foreach
  4. dir each_child
  5. rake original_dir

ライブラリ

モジュール

検索結果

Kernel#dir_config(target, idefault = nil, ldefault = nil) -> [String, String] (18129.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 オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをま...
...ldefault システム標準ではないライブラリのディレクトリのデフォルト値を指定します。


require 'mkmf'
# xml2 の configure オプションを指定できるようにします。
xml2_dirs = dir_config('xml2', '/opt/local/include/libxml2', '/opt/local/lib')...

mkmf (60.0)

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

...ラリ libbar.a の関数 baz() が必要だとします。
このための extconf.rb は以下のように書きます。

require 'mkmf'

dir_config
('bar')
if have_header('bar.h') and have_library('bar', 'baz')
create_makefile('foo')
end

拡張ライブラリ foo.so を作成、イ...
...extconf.rb --with-bar-dir=/usr/local

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

=== configure オプション

configure
オプションとは Ruby インタプリタのコンパイル時に指定された
configure
スクリプトのオプション...
...す。

extconf.rb の中で dir_config(TARGET)
を実行していればこのオプションを指定できます。

: --with-TARGET-lib=DIR

ライブラリを探索するディレクトリ DIR を追加します。

extconf.rb の中で dir_config(TARGET)
を実行してい...