]> git.xonotic.org Git - xonotic/netradiant.git/commit
gtkglext: build and bundle built-in gtkglext
authorThomas Debesse <dev@illwieckz.net>
Thu, 17 Dec 2020 20:54:29 +0000 (21:54 +0100)
committerThomas Debesse <dev@illwieckz.net>
Tue, 22 Dec 2020 22:53:06 +0000 (23:53 +0100)
commit51f57c17f538d299fb6bdba3b1b5d71e630664b0
treec475692f59000c01b82092a2646484e7e28eced7
parent6d5111153d0c27f5b3cbaab8cd17545252b6cc70
gtkglext: build and bundle built-in gtkglext

There is a chicken-and-egg problem, so the build must be done in two steps,

First build built-in libraries:

cmake -G "Unix Makefiles" -S. -Bbuild -DBUILTIN_GTKGLEXT=ON -DBUNDLE_LIBRARIES=ON
cmake --build build --parallel $(nproc) -- builtins

Then detect the built-in libraries and build netradiant and install the bundle as usual:

cmake -S. -Bbuild
cmake --build build --parallel $(nproc) install

There is no need to set cmake options on second step but cmake still has to be called again to detect the new files.
CMakeLists.txt
bundle/CMakeLists.txt
cmake/FindGtkGLExt.cmake
library-bundler