gnome-chess/engine/meson.build
Michael Catanzaro 6ce6d59c4a Split engine support into a separate internal lib
The chess engine support currently lives in src/, which otherwise
handles only GUI functions. This is a little misplaced, because engines
are not related to the GUI. So lib/ would be a better location for it.

Except all the engine support is actually higher-level than lib/. So we
can nicely fit it in between src/ and lib/ by creating a second internal
lib, libengine.

This is only a small benefit, but it's nice to keep src/ focused on the
GUI.
2020-12-24 12:10:58 -06:00

33 lines
614 B
Meson

libengine_sources = [
'ai-profile.vala',
'chess-engine-cecp.vala',
'chess-engine-uci.vala',
'chess-engine.vala',
]
libengine_vala_args = [
'--target-glib=@0@'.format(min_glib_version),
]
libengine_c_args = [
'-include', 'config.h',
]
libengine_deps = [
glib,
gio,
posix,
libchess_dep,
]
libengine = static_library('libengine', libengine_sources,
include_directories: config_h_dir,
vala_args: libengine_vala_args,
c_args: libengine_c_args,
dependencies: libengine_deps
)
libengine_dep = declare_dependency(
link_with: libengine,
include_directories: include_directories('.'),
)