Bug #2414 ยป 0092-README.AI_modules-Update-to-meson-time.patch
| doc/README.AI_modules | ||
|---|---|---|
|
3. Building freeciv with AI-modules support
|
||
|
-------------------------------------------
|
||
|
This build time configurability for AI modules is currently
|
||
|
available only with the old autotools build system.
|
||
|
There's three configure options controlling AI-modules support to be
|
||
|
There's two configure options controlling AI-modules support to be
|
||
|
built in to freeciv.
|
||
|
To statically link some of the supplied AI modules to freeciv,
|
||
|
use --enable-ai-static=<comma,separated,list>. Default value for this
|
||
|
is "classic,tex". Order of the modules is important in that first of
|
||
|
the modules will be the default AI type used for all the players for whom
|
||
|
it's not explicitly set.
|
||
|
use -Daimodules=<comma,separated,list>. Default value for this
|
||
|
is "classic,tex".
|
||
|
To support dynamically loading additional modules, use
|
||
|
--enable-aimodules. It requires that also --enable-shared has been used,
|
||
|
which may not work on all platforms.
|
||
|
Special value --enable-aimodules=experimental makes freeciv also to build
|
||
|
all the modules in its source tree as dynamically loadable AI modules.
|
||
|
In case you want to use some dynamically loadable module as the default
|
||
|
AI type instead of first type listed for --enable-ai-static, you can
|
||
|
explicitly set the default type with --with-default-ai=<type>.
|
||
|
-Ddynaimod=true. Default is not to have dynamic AI modules support.
|
||
|
Dynamic AI modules are expected in their correct installation location
|
||
|
unless one has configured with --enable-debug which allows freeciv
|
||
|
unless one has configured with -Ddebug=true which allows freeciv
|
||
|
server to look for supplied modules from build directory too. Otherwise you
|
||
|
cannot use dynamic modules from the freeciv build dir, but you need
|
||
|
to "make install" freeciv to install them to correct location.
|
||
|
to "ninja install" freeciv to install them to correct location.
|
||
|
4. Coding new dynamic AI module
|
||