Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iXanadu13 committed Dec 23, 2024
1 parent 08c977e commit 42d5669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Preparation

### step 1: 配置mingw64环境
### 配置mingw64环境

下载:[https://github.com/niXman/mingw-builds-binaries/releases](https://github.com/niXman/mingw-builds-binaries/releases)

Expand All @@ -18,14 +18,6 @@

最后,可以选择把mingw64路径(`E:/Environment/mingw64_14_2_0/bin`)添加到环境变量Path中。

### step 2: 配置make

其实mingw64里有自带make,位于`bin/mingw32-make.exe`

为了方便,我把它单独复制出来放在`E:/Environment/mingw32-make`文件夹中,重命名为make.exe,并把`E:/Environment/mingw32-make`也添加进环境变量。(这样就可以在cmd中输入make来使用)

注意:生成的C++项目中配置的任务有make版本,如果没有完成这一步,也可以使用其他的任务。make会判断哪些文件未修改,并在下一次编译时跳过它们,从而提升编译速度。

## Setup

[Github release](https://github.com/iXanadu13/xcpp/releases/latest)下载最新版xcpp,解压后获得xcpp.exe,将其路径添加到环境变量。
Expand Down Expand Up @@ -61,7 +53,7 @@ RUST_LOG=info ./xcpp.exe new test1 --std=c++17 --path E:/Environment/mingw64_14_

你需要替换`./xcpp.exe``E:/Environment/mingw64_14_2_0/bin`为正确的路径。

[使用示例(已经配置好mingw64、make、xcpp环境变量)](example.gif)
[使用示例(已经配置好mingw64、xcpp环境变量)](example.gif)

## Usage

Expand Down
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The generated multi-files C++ project uses g++ for compilation, and gdb for debu

## Preparation

### Step 1: Configure mingw64
### Configure mingw64

Download from: [https://github.com/niXman/mingw-builds-binaries/releases](https://github.com/niXman/mingw-builds-binaries/releases)

Expand All @@ -18,14 +18,6 @@ After downloading, extract the files and place them in a path without Chinese ch

Lastly, you may choose to add the mingw64 path (`E:/Environment/mingw64_14_2_0/bin`) to the system's Path environment variable.

### Step 2: Configure make

Mingw64 comes with make, located in `bin/mingw32-make.exe`.

For convenience, I copied it to a separate folder (`E:/Environment/mingw32-make`), renamed it to `make.exe`, and added `E:/Environment/mingw32-make` to the system's Path. This allows you to run `make` in the command line.

Note: The generated C++ project has a configured task for `make`. If you skip this step, you can use other tasks. Make will check which files have not been modified and skip them during the next compilation, improving build speed.

## Setup

Download the latest version of xcpp from the [GitHub release page](https://github.com/iXanadu13/xcpp/releases/latest), extract it, and add the path to `xcpp.exe` to your environment variables.
Expand Down Expand Up @@ -61,7 +53,7 @@ RUST_LOG=info ./xcpp.exe new test1 --std=c++17 --path E:/Environment/mingw64_14_

Make sure to replace `./xcpp.exe` and `E:/Environment/mingw64_14_2_0/bin` with the correct paths.

[Usage Example](example.gif) (with `mingw64`, `make`, and `xcpp` PATH already configured)
[Usage Example](example.gif) (with `mingw64` and `xcpp` PATH already configured)

## Usage

Expand Down

0 comments on commit 42d5669

Please sign in to comment.