gmod-lcpu/build_module.sh

17 lines
401 B
Bash
Raw Normal View History

2023-07-19 03:18:34 -04:00
#!/bin/bash
# Build the LCPU addon for the reccomended environment
# and install it into the proper directory gmod wants native modules to be.
# This expects to be ran in [gmod]/addons/[addon folder].
2023-07-19 03:18:34 -04:00
set -x
2023-07-19 03:20:14 -04:00
cmake -Wno-dev -GNinja -S native -B build -DCMAKE_BUILD_TYPE=Release
2023-07-19 03:18:34 -04:00
ninja -C build
2023-07-19 03:19:39 -04:00
[[ ! -d '../../lua/bin' ]] && {
2023-07-19 03:18:34 -04:00
mkdir -p ../../lua/bin
}
cp -v build/projects/lcpu/*.dll ../../lua/bin