Building

Instructions for compiling Plugify from source to customize it for specific game modding needs.

This guide provides instructions for building MMS2-Plugify, a specialized version of Plugify designed for Counter-Strike 2 servers. The build process is nearly identical to building the core Plugify library, with one key difference: the target name should be mms2-plugify instead of plugify.

Key Difference

When building MMS2-Plugify, ensure that you specify the target name as mms2-plugify instead of plugify. For example:

cmake --build . --target mms2-plugify

Steps to Build MMS2-Plugify

Clone the Repository

Clone the MMS2-Plugify repository to your local machine:

git clone https://github.com/untrustedmodders/mms2-plugify.git --recursive
cd mms2-plugify

Generate Build Files

Create a build directory and generate the build files using CMake:

mkdir build
cd build
cmake ..

Build the Project

Build the project using the following command. Note: The target name is mms2-plugify.

cmake --build . --target mms2-plugify

Verify the Build

Once the build process is complete, the compiled files will be located in the build directory. Verify the build by checking for the following files:

  • plugify.dll (Windows)
  • plugify.so (Linux)

Detailed Build Instructions

For more detailed instructions on building Plugify (e.g., configuring CMake options, enabling tests, or building documentation), refer to the Building Plugify guide. The process is identical, except for the target name (mms2-plugify instead of plugify).

Troubleshooting

Common Issues

  1. Build Fails:
    • Ensure that you have the correct version of CMake and a compatible C++ compiler installed.
    • Verify that all dependencies are available and properly configured.
  2. Target Not Found:
    • Double-check that you are using the correct target name (mms2-plugify).
  3. Missing Files:
    • Ensure that the repository was cloned correctly and that all files are present.