2021-11-15 00:43:34 +00:00
|
|
|
ebml_defs = custom_target('ebml_defs.inc',
|
2021-11-07 19:28:16 +00:00
|
|
|
output: 'ebml_defs.inc',
|
|
|
|
command: [matroska, '--generate-definitions', '@OUTPUT@'],
|
|
|
|
)
|
|
|
|
|
2021-11-15 00:43:34 +00:00
|
|
|
ebml_types = custom_target('ebml_types.h',
|
2021-11-07 19:28:16 +00:00
|
|
|
output: 'ebml_types.h',
|
|
|
|
command: [matroska, '--generate-header', '@OUTPUT@'],
|
|
|
|
)
|
|
|
|
|
|
|
|
version_h = custom_target('version.h',
|
|
|
|
output: 'version.h',
|
|
|
|
command: [version_py, '@OUTPUT@'],
|
|
|
|
build_always_stale: true,
|
|
|
|
)
|
|
|
|
|
|
|
|
sources += [ebml_defs, ebml_types, version_h]
|
|
|
|
|
|
|
|
# Meson doesn't allow having multiple build targets with the same name in the same file.
|
|
|
|
# Just generate the com in here for windows builds.
|
|
|
|
if win32 and get_option('cplayer')
|
|
|
|
wrapper_sources= '../osdep/win32-console-wrapper.c'
|
2022-05-04 20:09:48 +00:00
|
|
|
executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
|
2021-11-07 19:28:16 +00:00
|
|
|
name_suffix: 'com', install: true)
|
|
|
|
endif
|