mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 09:53:43 +08:00
meson: put the HAVE_ARIBB24 define in config.h
As done by autoconf.
This commit is contained in:
parent
9ec7bde743
commit
4cd9bdcbd6
@ -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
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user