キーワード
-
arg
_ config (1) -
cc
_ command (1) -
cpp
_ command (1) -
create
_ header (1) -
create
_ tmpsrc (1) - desc (1)
-
dir
_ config (1) -
dummy
_ makefile (1) -
enable
_ config (2) -
find
_ executable (1) - libpathflag (1)
-
link
_ command (1) -
merge
_ libs (1) -
psych
_ y (1) - scanf (2)
-
with
_ config (2) - y (1)
検索結果
先頭5件
- Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] - Kernel
# enable _ config(config , default) -> bool | String - Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String - Kernel
# psych _ y(*objects) -> String - Kernel
# with _ config(config , default = nil) -> bool | String
-
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (613.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" を、
それぞれ追加し... -
Kernel
# enable _ config(config , default) -> bool | String (313.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
... -
Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String (313.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
... -
Kernel
# psych _ y(*objects) -> String (313.0) -
objects を YAML document に変換します。
objects を YAML document に変換します。
このメソッドは irb 上でのみ定義されます。
syck に y メソッドがあるため、
psych_y が別名として定義されています。将来的に
syck が廃止された場合 psych_y は廃止
される予定であるため、特別の事情がない限り y を用いてください。
@param objects YAML document に変換する Ruby のオブジェクト -
Kernel
# with _ config(config , default = nil) -> bool | String (313.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま
す。--without-<config> が指定された場合は偽を返します。どちらでもない場
合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if with_config("debug")
$defs... -
Kernel
# with _ config(config , default = nil) {|config , default| . . . } -> bool | String (313.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま
す。--without-<config> が指定された場合は偽を返します。どちらでもない場
合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if with_config("debug")
$defs... -
Kernel
# y(*objects) -> String (313.0) -
objects を YAML document に変換します。
objects を YAML document に変換します。
このメソッドは irb 上でのみ定義されます。
syck に y メソッドがあるため、
psych_y が別名として定義されています。将来的に
syck が廃止された場合 psych_y は廃止
される予定であるため、特別の事情がない限り y を用いてください。
@param objects YAML document に変換する Ruby のオブジェクト -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (310.0) -
configure オプション --config の値を返します。
configure オプション --config の値を返します。
@param config オプションを文字列で指定します。
@param default 引数 config で指定したオプションのデフォルト値を指定します。
@return オプションが指定されてた場合は true を、指定されなかった場合は
nil を返します。
引数 default、あるいはブロックを指定すると、オプションが指定さ
れていない場合に引数 default の値かブロックの評価結果を返します
(両方指定した場合はブロックが優先されます)... -
Kernel
# cc _ command(opt = "") -> String (310.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# cpp _ command(outfile , opt = "") -> String (310.0) -
実際にプリプロセッサを実行する際に使用するコマンドを返します。
実際にプリプロセッサを実行する際に使用するコマンドを返します。
@param outfile 出力ファイルの名前を指定します。
@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# create _ header(header = "extconf . h") -> String (310.0) -
Kernel#have_func, Kernel#have_header などの検査結果を元に、 ヘッダファイルを生成します。
...
Kernel#have_func, Kernel#have_header などの検査結果を元に、
ヘッダファイルを生成します。
このメソッドは extconf.rb の最後で呼び出すようにしてください。
@param header ヘッダファイルの名前を指定します。
@return ヘッダファイ... -
Kernel
# create _ tmpsrc(src) -> String (310.0) -
与えられた C プログラムのソースコードを一時ファイルに出力して与えられたソースコードを返します。
与えられた C プログラムのソースコードを一時ファイルに出力して与えられたソースコードを返します。
@param src C プログラムのソースコードを指定します。 -
Kernel
# desc(description) -> String (310.0) -
直後の Rake タスクの説明を登録します。
直後の Rake タスクの説明を登録します。
@param description 直後のタスクの説明を指定します。
例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end -
Kernel
# dummy _ makefile(srcdir) -> String (310.0) -
ダミーの Makefile を作成します。
ダミーの Makefile を作成します。
@param srcdir ソースディレクトリを指定します。 -
Kernel
# find _ executable(bin , path = nil) -> String | nil (310.0) -
パス path から実行ファイル bin を探します。
パス path から実行ファイル bin を探します。
実行ファイルが見つかった場合は、そのフルパスを返します。
実行ファイルが見つからなかった場合は、nilを返します。
このメソッドは Makefile を変更しません。
@param bin 実行ファイルの名前を指定します。
@param path パスを指定します。デフォルトは環境変数 PATH です。
環境変数 PATH が定義されていない場合は /usr/local/bin,
/usr/ucb, /usr/bin, /bin を使います。 -
Kernel
# libpathflag(libpath = $ DEFLIBPATH| $ LIBPATH) -> String (310.0) -
与えられた libpath を -L 付きの文字列に変換して返します。
与えられた libpath を -L 付きの文字列に変換して返します。
@param libpath LIBPATH に指定する値を指定します。 -
Kernel
# link _ command(ldflags , opt = "" , libpath = $ DEFLIBPATH| $ LIBPATH) -> String (310.0) -
実際にリンクする際に使用するコマンドを返します。
実際にリンクする際に使用するコマンドを返します。
@param ldflags LDFLAGS に追加する値を指定します。
@param opt LIBS に追加する値を指定します。
@param libpath LIBPATH に指定する値を指定します。
@see RbConfig.expand -
Kernel
# merge _ libs(*libs) -> [String] (310.0) -
@todo 使われてない
@todo 使われてない
@param libs ??? -
Kernel
# scanf(format) -> Array (25.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf -
Kernel
# scanf(format) {|*ary| . . . } -> Array (25.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf