6ce6d59c4a
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.
33 lines
614 B
Meson
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('.'),
|
|
)
|