Skip to content

Commit d25538e

Browse files
docs: update
1 parent f18460c commit d25538e

1 file changed

Lines changed: 14 additions & 30 deletions

File tree

LLMDOCS.md

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,47 +36,31 @@ blook 是一个现代化的 C++ 库,用于 Windows 平台上的内存操作、
3636
- **类型安全的内存读写**: 支持各种基本类型和结构体
3737
- **智能内存分配器**: 高效的内存分配和管理
3838

39-
### 支持平台
40-
41-
- Windows x86/x64 ✅
42-
- Linux (开发中) 🚧
43-
4439
## 快速开始
4540

4641
### 安装
4742

48-
#### 方式 1: CMake 子模块
49-
50-
```bash
51-
git submodule add https://github.com/MicroCBer/blook
52-
git submodule update --init --recursive
53-
```
54-
55-
`CMakeLists.txt` 中添加:
43+
#### 使用 xmake 安装
5644

57-
```cmake
58-
add_subdirectory(external/blook)
59-
target_link_libraries(your_target blook)
60-
```
45+
```lua
46+
package("blook")
47+
set_description("A modern C++ library for hacking.")
48+
set_license("GPL-3.0")
6149

62-
#### 方式 2: CMake FetchContent
50+
add_urls("https://github.com/std-microblock/blook.git")
6351

64-
```cmake
65-
include(FetchContent)
52+
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
6653

67-
FetchContent_Declare(
68-
blook
69-
GIT_REPOSITORY https://github.com/MicroCBer/blook
70-
GIT_TAG origin/main
71-
)
72-
FetchContent_MakeAvailable(blook)
54+
if is_plat("windows") then
55+
add_syslinks("advapi32")
56+
end
7357

74-
target_link_libraries(your_target blook)
75-
```
58+
add_deps("zasm")
7659

77-
#### 方式 3: xmake
60+
on_install("windows", function (package)
61+
import("package.tools.xmake").install(package, {}, {target = "blook"})
62+
end)
7863

79-
```lua
8064
add_requires("blook")
8165
target("your_target")
8266
add_packages("blook")

0 commit comments

Comments
 (0)