This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08da221
commit 275fdb4
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
book | ||
.vscode | ||
.xmake | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"C_Cpp.files.exclude": { | ||
"**/.vscode": true, | ||
"**/build": true, | ||
"/.xmake": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,21 @@ git clone --recursive [email protected]:Sunrisepeak/d2ds.git | |
|
||
### 安装xmake | ||
|
||
- [安装及简介-文章](https://github.com/Sunrisepeak/HelloWorld/tree/main/tools/xmake) | ||
- [安装及简介-视频](https://www.bilibili.com/video/BV1EK421h7G7/?spm_id_from=333.999.0.0&vd_source=eac75885a69b523024571c4df766896f) | ||
**linux/macos** | ||
|
||
> **注: 使用dslings并不需要掌握xmake, 有xmake环境即可** | ||
> 使用bash执行tools目录下的安装脚本 | ||
```bash | ||
bash tools/install.unix.sh | ||
``` | ||
|
||
**windows** | ||
|
||
> 执行tools目录下的安装脚本 或 直接双击运行 | ||
```bash | ||
tools\install.win.bat | ||
``` | ||
|
||
### dslings使用流程 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# check xmake status | ||
if ! command -v xmake &> /dev/null | ||
then | ||
curl -fsSL https://xmake.io/shget.text | bash | ||
else | ||
echo "xmake installed" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@echo off | ||
REM Check if xmake is installed | ||
where xmake >nul 2>&1 | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
echo xmake installed | ||
GOTO END | ||
) | ||
|
||
REM xmake is not installed, downloading and running install script using PowerShell | ||
powershell -Command "Invoke-Expression ((Invoke-WebRequest 'https://xmake.io/psget.text' -UseBasicParsing).Content)" | ||
|
||
:END |