- Ensure Guild Wars is running.
- Use the following command:
> python tools\dump_key.py
> cmake -B build -G "Visual Studio 14 2015" -A Win32
> cmake --build build
Ensure ninja and cmake are installed.
> sudo apt install ninja-build cmake
Generate the project and compile it.
> cmake -B build -G "Ninja" -DCMAKE_C_COMPILER=clang
> cmake --build build
You can familiarize yourself with the project by compiling the client and then running the example plugin "chat".
Assuming you created the cmake build folder at $repo/build
, you can run the
following command:
> build/code/client/Debug/client.exe build\plugins\chat\Debug\chat.dll -email {email} -password {password} -character "{charname}" -mapid 449 -maptype 0
You can customize how to build the project using the following CMake variable. The syntax is simply:
> cmake -B build -DNAME_OF_THE_OPTIONS=VALUE
> cmake -B build -CBUILD_SHARED_LIBS=Off
- BUILD_SHARED_LIBS:BOOL: Control whether the library are built as shared libs (DLL on Windows) or static libraries.
- HQ_ENABLE_TESTING:BOOL: Control if the tests program are included in the solution.