meson: put the HAVE_ARIBB24 define in config.h

As done by autoconf.
This commit is contained in:
Steve Lhomme 2024-11-05 12:16:30 +01:00
parent 9ec7bde743
commit 4cd9bdcbd6
3 changed files with 6 additions and 7 deletions

View File

@ -70,6 +70,9 @@
/* AMD HQScaler supported */
#mesondefine HAVE_AMF_SCALER
/* Define if libaribb24 is available. */
#mesondefine HAVE_ARIBB24
/* Define to 1 if you have the <arpa/inet.h> header file. */
#mesondefine HAVE_ARPA_INET_H

View File

@ -261,11 +261,13 @@ vlc_modules += {
# aribsub
aribb24_dep = dependency('aribb24', version: '>= 1.0.1', required: get_option('aribsub'))
if aribb24_dep.found()
cdata.set('HAVE_ARIBB24', 1)
endif
vlc_modules += {
'name' : 'aribsub',
'sources' : files('arib/aribsub.c'),
'dependencies' : [aribb24_dep],
'cpp_args' : ['-DHAVE_ARIBB24'],
'enabled' : aribb24_dep.found()
}

View File

@ -339,11 +339,6 @@ vlc_modules += {
aribb24_dep = dependency('aribb24', version: '>= 1.0.1', required: get_option('aribb24'))
libdvbpsi_dep = dependency('libdvbpsi', version: '>= 1.2.0', required: get_option('libdvbpsi'))
if libdvbpsi_dep.found()
arrib24_define = []
if aribb24_dep.found()
arrib24_define += '-DHAVE_ARIBB24=1'
endif
vlc_modules += {
'name' : 'ts',
'sources' : files(
@ -370,7 +365,6 @@ if libdvbpsi_dep.found()
'../codec/opus_header.c',
),
'dependencies' : [libdvbpsi_dep, aribb24_dep],
'c_args' : arrib24_define
}
endif