summaryrefslogtreecommitdiffstats
path: root/generated/meson.build
blob: 1104bdc21aee9c4a291fef58b1c5d3add87a69d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ebml_defs = custom_target('ebml_defs.inc',
    output: 'ebml_defs.inc',
    command: [matroska, '--generate-definitions', '@OUTPUT@'],
)

ebml_types = custom_target('ebml_types.h',
    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')
    features += 'win32-executable'
    wrapper_flags = ['-municode', '-Wl,--subsystem,console']
    wrapper_sources= '../osdep/win32-console-wrapper.c'
    executable('mpv', wrapper_sources, c_args: wrapper_flags, link_args: wrapper_flags,
               name_suffix: 'com', install: true)
endif