2024-04-25 03:33:15 +03:00
|
|
|
# hl2sdk-starter
|
|
|
|
|
|
|
|
A starter template for hl2sdk server plugins.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2024-04-25 04:45:54 +03:00
|
|
|
Meson, Ninja, gcc.
|
|
|
|
|
|
|
|
## Support
|
|
|
|
|
|
|
|
| Compiler | Linux x86 | Linux x64 | Windows x86 | Windows x64 |
|
|
|
|
| ---- | ---- | ---- | ---- | ---- |
|
|
|
|
| gcc | yes | yes | ? | ? |
|
|
|
|
| clang | ? | ? | ? | ? |
|
|
|
|
| msvc | ? | ? | ? | ? |
|
2024-04-25 03:33:15 +03:00
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
1. Check out the correct SDK branch, e.g. `tf2`:
|
|
|
|
```
|
|
|
|
git submodule update --init
|
|
|
|
cd include/hl2sdk
|
|
|
|
git checkout tf2
|
|
|
|
cd ../..
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Setup Meson build folder
|
|
|
|
```
|
2024-04-25 05:19:25 +03:00
|
|
|
meson setup -D arch=x86 -D buildtype=debug build
|
2024-04-25 03:33:15 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
3. Build with Meson
|
|
|
|
```
|
|
|
|
cd build
|
|
|
|
meson compile
|
|
|
|
```
|
|
|
|
|