種類
- インスタンスメソッド (948)
- 変数 (132)
- 定数 (12)
モジュール
- Kernel (1092)
キーワード
-
$ CFLAGS (12) -
$ LDFLAGS (12) -
$ archdir (12) -
$ defs (12) -
$ hdrdir (12) -
$ libdir (12) -
$ libs (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ topdir (12) - CONFIG (12)
-
arg
_ config (12) -
cc
_ command (12) -
check
_ signedness (24) -
check
_ sizeof (24) -
convertible
_ int (24) -
cpp
_ command (12) -
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) -
depend
_ rules (12) -
dir
_ config (12) -
dummy
_ makefile (12) -
egrep
_ cpp (24) -
enable
_ config (24) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) -
have
_ devel? (12) -
have
_ framework (24) -
have
_ func (24) -
have
_ header (24) -
have
_ library (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) -
have
_ var (24) -
install
_ files (12) -
install
_ rb (12) - libpathflag (12)
-
link
_ command (12) -
log
_ src (12) -
merge
_ libs (12) - modified? (12)
-
rm
_ f (12) -
rm
_ rf (12) -
try
_ compile (24) -
try
_ constant (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ func (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) -
try
_ var (24) -
with
_ config (24) -
with
_ werror (24) - xpopen (24)
- xsystem (12)
検索結果
先頭5件
-
Kernel
# create _ makefile(target , srcprefix = nil) -> true (6202.0) -
@todo
...@todo
Kernel#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。
extconf.rb は普通このメソッドの呼び出しで終ります。
@param target ターゲットとなる拡張ライブラリの名前を指......省略した場合は extconf.rb があるディレクトリを使用します。
以下のようなディレクトリ構成の場合:
ext/
extconf.rb
test/
foo.c
このようにします。
require 'mkmf'
create_makefile('test/foo', 'test')......ストールされます。
/path/to/ruby/sitearchdir/test/foo.so
ブロックを与える場合、生成する Makefile の設定部分を文字列の配列として
yield します。
create_makefile('foo') {|conf|
[
*conf,
"MACRO_YOU_NEED = something",
]
}
ソ... -
Kernel
# have _ framework(framework) -> bool (6202.0) -
フレームワーク framework がシステムに存在するかどうか検査します。
...framework がシステムに存在するかどうか検査します。
フレームワーク framework がシステムに存在する場合は、グローバル変数
$defs に "-DHAVE_FRAMEWORK_framework" を追加し、真を返します。ま
た、グローバル変数 $LDFLAGS に "-framework......#{framework}" を追加し
ます。 フレームワーク framework がシステムに存在しない場合は、偽を返し
ます。
例えば、
require 'mkmf'
have_framework('Ruby') # => true
である場合、HAVE_FRAMEWORK_RUBY というプリプロセッサマクロをコンパイ......ラに渡します。
@param framework フレームワークの名前を指定します。... -
Kernel
# have _ framework(framework) { . . . } -> bool (6202.0) -
フレームワーク framework がシステムに存在するかどうか検査します。
...framework がシステムに存在するかどうか検査します。
フレームワーク framework がシステムに存在する場合は、グローバル変数
$defs に "-DHAVE_FRAMEWORK_framework" を追加し、真を返します。ま
た、グローバル変数 $LDFLAGS に "-framework......#{framework}" を追加し
ます。 フレームワーク framework がシステムに存在しない場合は、偽を返し
ます。
例えば、
require 'mkmf'
have_framework('Ruby') # => true
である場合、HAVE_FRAMEWORK_RUBY というプリプロセッサマクロをコンパイ......ラに渡します。
@param framework フレームワークの名前を指定します。... -
Kernel
# have _ macro(macro , headers = nil , opt = "") -> bool (6202.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
...れた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コ... -
Kernel
# have _ macro(macro , headers = nil , opt = "") { . . . } -> bool (6202.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
...れた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コ... -
Kernel
# log _ src(src) -> () (6202.0) -
与えられた C プログラムのソースコードをログ出力します。
...与えられた C プログラムのソースコードをログ出力します。
@param src C プログラムのソースコードを指定します。... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (6102.0) -
configure オプション --config の値を返します。
...configure オプション --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" です。... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) (6102.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p......assed as preprocessor constants to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suff......'=X' where 'X' is the macro name to
convert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOOBART2NUM UL... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) { . . . } (6102.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p......assed as preprocessor constants to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suff......'=X' where 'X' is the macro name to
convert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOOBART2NUM UL...
