種類
- インスタンスメソッド (612)
- 変数 (12)
キーワード
-
$ topdir (12) -
check
_ signedness (24) -
check
_ sizeof (24) -
convertible
_ int (24) -
create
_ makefile (12) -
create
_ tmpsrc (12) -
depend
_ rules (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) -
have
_ header (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) -
install
_ files (12) - libpathflag (12)
-
link
_ command (12) -
try
_ compile (24) -
try
_ constant (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) -
with
_ werror (24) - xpopen (24)
- xsystem (12)
検索結果
先頭5件
-
Kernel
# try _ constant(const , headers = nil , opt = "") { . . . } -> Integer | nil (21119.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
...がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します... -
Kernel
# create _ makefile(target , srcprefix = nil) -> true (21109.0) -
@todo
...@todo
Kernel#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。
extconf.rb は普通このメソッドの呼び出しで終ります。
@param target ターゲットとなる拡張ライブラリの名前を指......ラリを Ruby スクリプトから使用するときは
"require 'test/foo'" とする必要があります。
@param srcprefix ソースコードがあるディレクトリ名を指定します。
省略した場合は extconf.rb があるディレ......test/
foo.c
このようにします。
require 'mkmf'
create_makefile('test/foo', 'test')
このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。
/path/to/ruby/sitearchdir/test/foo.so... -
Kernel
# find _ library(lib , func , *paths) -> bool (21109.0) -
関数 func が定義されたライブラリ lib を探します。
...されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記......します。
paths を指定しないときは Kernel#have_library と同じ動作です。
@param lib ライブラリ名を指定します。
@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。
@param paths ライブ... -
Kernel
# find _ library(lib , func , *paths) { . . . } -> bool (21109.0) -
関数 func が定義されたライブラリ lib を探します。
...されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。
上記......します。
paths を指定しないときは Kernel#have_library と同じ動作です。
@param lib ライブラリ名を指定します。
@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。
@param paths ライブ... -
Kernel
# try _ do(src , command , *opts) -> () (21109.0) -
@param src C プログラムのソースコードを指定します。
...@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsyste... -
Kernel
# try _ do(src , command , *opts) { . . . } -> () (21109.0) -
@param src C プログラムのソースコードを指定します。
...@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsyste... -
Kernel
# cc _ command(opt = "") -> String (21103.0) -
実際にコンパイルする際に使用するコマンドを返します。
...実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (21103.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...ven +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam......' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGN... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (21103.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...ven +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam......' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGN...