X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=README.md;h=35a3194633262125fbac09d1589c3440725fb625;hb=569c0d2b9f44331d0b9c0ae7594147efb9e632e1;hp=f43a8b260ef8c6aa32ec07359339ac73efdb53d8;hpb=f6809bed86fbd34008cd0c4d1c04a96967c14c77;p=xonotic%2Fnetradiant.git diff --git a/README.md b/README.md index f43a8b26..35a31946 100644 --- a/README.md +++ b/README.md @@ -27,36 +27,21 @@ See also https://gitlab.com/xonotic/netradiant/ for a source browser, issues and * GtkGLExt * LibJpeg * LibPng + * Minizip * ZLib -# Compiling - -This project uses the usual CMake workflow: - -`cmake -H. -Bbuild && cmake --build build -- -j$(nproc)` - -## linux - -``` -cmake -H. -Bbuild -G "Unix Makefiles" -``` - ## msys2 -`pacman -S --needed base-devel` - ### 32 bit: ``` -pacman -S --needed mingw-w64-i686-{toolchain,cmake,gtk2,gtkglext} -cmake -H. -Bbuild -G "MSYS Makefiles" -DGTK2_GLIBCONFIG_INCLUDE_DIR=/mingw32/lib/glib-2.0/include -DGTK2_GDKCONFIG_INCLUDE_DIR=/mingw32/lib/gtk-2.0/include +pacman -S --needed base-devel mingw-w64-i686-{toolchain,cmake,make,gtk2,gtkglext} ``` ### 64 bit: ``` -pacman -S mingw-w64-x86_64-{toolchain,cmake,gtk2,gtkglext} -cmake -H. -Bbuild -G "MSYS Makefiles" -DGTK2_GLIBCONFIG_INCLUDE_DIR=/mingw64/lib/glib-2.0/include -DGTK2_GDKCONFIG_INCLUDE_DIR=/mingw64/lib/gtk-2.0/include +pacman -S --needed base-devel mingw-w64-x86_64-{toolchain,cmake,make,gtk2,gtkglext} ``` ## OS X: @@ -67,8 +52,30 @@ brew install Caskroom/cask/xquartz brew link --force gettext ``` -More Compilation Details ------------------------- +# Compiling + +This project uses the usual CMake workflow: + +## Debug + +`cmake -G "Unix Makefiles" -H. -Bbuild && cmake --build build -- -j$(nproc)` + +## Release + +`cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build -- -j$(nproc)` + +## MSYS2 + +Under MSYS2, the mingw shell must be used with the following additional flags: + +``` +cmake -G "MSYS Makefiles" \ + -DGTK2_GLIBCONFIG_INCLUDE_DIR=/mingw64/lib/glib-2.0/include \ + -DGTK2_GDKCONFIG_INCLUDE_DIR=/mingw64/lib/gtk-2.0/include \ + -H. -Bbuild +``` + +## More Compilation Details options: * `DOWNLOAD_GAMEPACKS=ON`