mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-02-18 01:52:21 +00:00
README: Mention how to set build type on Unix
This commit is contained in:
parent
cffcb77038
commit
6dcc4ce912
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ On Linux and similar the following should work (if you have cmake, make and GCC/
|
||||||
4. create a build directory: `mkdir build`
|
4. create a build directory: `mkdir build`
|
||||||
5. switch to build directory: `cd build`
|
5. switch to build directory: `cd build`
|
||||||
6. create Makefile with CMake: `cmake ..`
|
6. create Makefile with CMake: `cmake ..`
|
||||||
|
- by default, this will create an *RelWithDebInfo* build, which is optimized but still has debug info, so it's somewhat debuggable. You can select another kind of build with `cmake -DCMAKE_BUILD_TYPE=Debug ..` for a Debug build with less optimization, which will make it easier to debug (but possibly slower). You could also replace "Debug" with "Release" for a proper optimized Release build without any Debug info.
|
||||||
7. compile the mod .so: `make -j4`
|
7. compile the mod .so: `make -j4`
|
||||||
8. it (e.g. `dentonmod.so`) should now be in the build/ directory,
|
8. it (e.g. `dentonmod.so`) should now be in the build/ directory,
|
||||||
copy it to your dhewm3 install, where base.so and d3xp.so are
|
copy it to your dhewm3 install, where base.so and d3xp.so are
|
||||||
|
|
Loading…
Reference in a new issue