Skip to content

Commit 63b243b

Browse files
committed
Add how to build with IDE
1 parent c7e4873 commit 63b243b

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

wolfSSL/src-ja/chapter02.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,41 @@ cd wolfSSL
149149
make
150150
make check
151151
```
152+
## 各社IDEによるビルド
153+
154+
wolfSSLサイトからwolfSSLソースコード一式をダウンロード、解凍して以下の設定をします。
155+
156+
### 1. wolfSSLライブラリー生成プロジェクト
157+
- コンパイル対象のソースファイルの登録
158+
./srcの下の*.cファイルと./wolfcrypt/srcの*.cファイル一式を登録します。
159+
ただし、以下のファイルを除きます。
160+
161+
```
162+
./src/ssl_*.c, ./src/x509_*.c,
163+
src/conf.c, src/bio.c
164+
wolfcrypt/src/misc.c, ./wolfcrypt/src/evp.c
165+
```
166+
167+
- コンフィグレーションオプションの定義
168+
ファイル名 "user_settings.h" のヘッダーファイルにコンフィグレーション定義を格納します。
169+
170+
wolfssl/examples/configs/README.md, user_settings_template.h を参照してください。
171+
172+
- プリディファインドマクロ名の登録
173+
WOLFSSL_USER_SETTINGS を定義すると、ビルド時に上記のuser_setttings.hファイルがインクルードされます。
174+
175+
- インクルードパスの登録
176+
wolfSSLソースファイルルートのパスと上記user_settings.hのパスを登録します。
177+
178+
179+
### 2. アプリケーション実行ファイル生成プロジェクト
180+
181+
- 1.で生成したwolfSSLライブラリーをリンク対象として登録します。wolfSSLソースファイルルートのパスと
182+
- 1. で定義したコンフィグレーションオプション(user_settings.h)のパスを
183+
 インクルードパスとして登録します。
184+
- プリディファインドマクロ名として"WOLFSSL_USER_SETTINGS "を指定します。
185+
- アプリケーションのプログラム先頭付近で "wolfssl/wolfcrypt/settings.h" をインクルードします。
186+
152187

153188
## 非標準環境でのビルド
154189

wolfSSL/src/chapter02.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,44 @@ make
129129
make check
130130
```
131131

132+
## Building with Various Vendor IDEs
133+
134+
Download the complete wolfSSL source code package from the wolfSSL website, extract it, and apply the following settings.
135+
136+
### 1. wolfSSL Library Build Project
137+
138+
- **Register source files to be compiled**
139+
Register all `*.c` files under `./src` and all `*.c` files under `./wolfcrypt/src`.
140+
Exclude the following files:
141+
142+
./src/ssl_.c, ./src/x509_.c,
143+
src/conf.c, src/bio.c
144+
wolfcrypt/src/misc.c, ./wolfcrypt/src/evp.c
145+
146+
- **Define configuration options**
147+
Store the configuration definitions in a header file named `user_settings.h`.
148+
149+
Refer to:
150+
- `wolfssl/examples/configs/README.md`
151+
- `wolfssl/examples/configs/user_settings_template.h`
152+
153+
- **Register predefined macro names**
154+
When `WOLFSSL_USER_SETTINGS` is defined, the above `user_settings.h` file is included at build time.
155+
156+
- **Register include paths**
157+
Register the path to the wolfSSL source file root and the path to the above `user_settings.h`.
158+
159+
---
160+
161+
### 2. Application Executable Build Project
162+
163+
- Register the wolfSSL library generated in step 1 as a link target.
164+
- Register the wolfSSL source file root path and the configuration option path (`user_settings.h`) defined in step 1 as include paths.
165+
- Specify `"WOLFSSL_USER_SETTINGS"` as a predefined macro name.
166+
167+
168+
169+
132170
## Building in a non-standard environment
133171

134172
While not officially supported, we try to help users wishing to build wolfSSL in a non-standard environment, particularly with embedded and cross-compilation systems. Below are some notes on getting started with this.

0 commit comments

Comments
 (0)