| 1 |
libdvbv5_option = get_option('libdvbv5') |
| 2 |
if libdvbv5_option.disabled() or not dep_libudev.found() |
| 3 |
dep_libdvbv5 = dependency('', required : false) |
| 4 |
subdir_done() |
| 5 |
endif |
| 6 |
|
| 7 |
libdvbv5_sources = files( |
| 8 |
'compat-soname.c', |
| 9 |
'countries.c', |
| 10 |
'crc32.c', |
| 11 |
'descriptors.c', |
| 12 |
'descriptors/desc_atsc_service_location.c', |
| 13 |
'descriptors/desc_ca.c', |
| 14 |
'descriptors/desc_ca_identifier.c', |
| 15 |
'descriptors/desc_cable_delivery.c', |
| 16 |
'descriptors/desc_event_extended.c', |
| 17 |
'descriptors/desc_event_short.c', |
| 18 |
'descriptors/desc_extension.c', |
| 19 |
'descriptors/desc_frequency_list.c', |
| 20 |
'descriptors/desc_hierarchy.c', |
| 21 |
'descriptors/desc_isdbt_delivery.c', |
| 22 |
'descriptors/desc_language.c', |
| 23 |
'descriptors/desc_logical_channel.c', |
| 24 |
'descriptors/desc_network_name.c', |
| 25 |
'descriptors/desc_partial_reception.c', |
| 26 |
'descriptors/desc_registration_id.c', |
| 27 |
'descriptors/desc_sat.c', |
| 28 |
'descriptors/desc_service.c', |
| 29 |
'descriptors/desc_t2_delivery.c', |
| 30 |
'descriptors/desc_terrestrial_delivery.c', |
| 31 |
'descriptors/desc_ts_info.c', |
| 32 |
'dvb-demux.c', |
| 33 |
'dvb-dev-local.c', |
| 34 |
'dvb-dev-priv.h', |
| 35 |
'dvb-dev-remote.c', |
| 36 |
'dvb-dev.c', |
| 37 |
'dvb-fe-priv.h', |
| 38 |
'dvb-fe.c', |
| 39 |
'dvb-file.c', |
| 40 |
'dvb-legacy-channel-format.c', |
| 41 |
'dvb-log.c', |
| 42 |
'dvb-sat.c', |
| 43 |
'dvb-scan.c', |
| 44 |
'dvb-v5-std.c', |
| 45 |
'dvb-v5.c', |
| 46 |
'dvb-v5.h', |
| 47 |
'dvb-vdr-format.c', |
| 48 |
'dvb-zap-format.c', |
| 49 |
'parse_string.c', |
| 50 |
'parse_string.h', |
| 51 |
'tables/atsc_eit.c', |
| 52 |
'tables/cat.c', |
| 53 |
'tables/eit.c', |
| 54 |
'tables/header.c', |
| 55 |
'tables/mgt.c', |
| 56 |
'tables/mpeg_es.c', |
| 57 |
'tables/mpeg_pes.c', |
| 58 |
'tables/mpeg_ts.c', |
| 59 |
'tables/nit.c', |
| 60 |
'tables/pat.c', |
| 61 |
'tables/pmt.c', |
| 62 |
'tables/sdt.c', |
| 63 |
'tables/vct.c', |
| 64 |
) |
| 65 |
|
| 66 |
configure_file( |
| 67 |
output : 'libdvb-version.h', |
| 68 |
input : '../include/libdvbv5/libdvb-version.h.in', |
| 69 |
configuration : conf, |
| 70 |
install: true, |
| 71 |
install_dir: get_option('includedir') / 'libdvbv5', |
| 72 |
) |
| 73 |
|
| 74 |
libdvbv5_api = files( |
| 75 |
'../include/libdvbv5/atsc_eit.h', |
| 76 |
'../include/libdvbv5/atsc_header.h', |
| 77 |
'../include/libdvbv5/cat.h', |
| 78 |
'../include/libdvbv5/countries.h', |
| 79 |
'../include/libdvbv5/crc32.h', |
| 80 |
'../include/libdvbv5/desc_atsc_service_location.h', |
| 81 |
'../include/libdvbv5/desc_ca.h', |
| 82 |
'../include/libdvbv5/desc_ca_identifier.h', |
| 83 |
'../include/libdvbv5/desc_cable_delivery.h', |
| 84 |
'../include/libdvbv5/desc_event_extended.h', |
| 85 |
'../include/libdvbv5/desc_event_short.h', |
| 86 |
'../include/libdvbv5/desc_extension.h', |
| 87 |
'../include/libdvbv5/desc_frequency_list.h', |
| 88 |
'../include/libdvbv5/desc_hierarchy.h', |
| 89 |
'../include/libdvbv5/desc_isdbt_delivery.h', |
| 90 |
'../include/libdvbv5/desc_language.h', |
| 91 |
'../include/libdvbv5/desc_logical_channel.h', |
| 92 |
'../include/libdvbv5/desc_network_name.h', |
| 93 |
'../include/libdvbv5/desc_partial_reception.h', |
| 94 |
'../include/libdvbv5/desc_registration_id.h', |
| 95 |
'../include/libdvbv5/desc_sat.h', |
| 96 |
'../include/libdvbv5/desc_service.h', |
| 97 |
'../include/libdvbv5/desc_t2_delivery.h', |
| 98 |
'../include/libdvbv5/desc_terrestrial_delivery.h', |
| 99 |
'../include/libdvbv5/desc_ts_info.h', |
| 100 |
'../include/libdvbv5/descriptors.h', |
| 101 |
'../include/libdvbv5/dvb-demux.h', |
| 102 |
'../include/libdvbv5/dvb-dev.h', |
| 103 |
'../include/libdvbv5/dvb-fe.h', |
| 104 |
'../include/libdvbv5/dvb-file.h', |
| 105 |
'../include/libdvbv5/dvb-frontend.h', |
| 106 |
'../include/libdvbv5/dvb-log.h', |
| 107 |
'../include/libdvbv5/dvb-sat.h', |
| 108 |
'../include/libdvbv5/dvb-scan.h', |
| 109 |
'../include/libdvbv5/dvb-v5-std.h', |
| 110 |
'../include/libdvbv5/eit.h', |
| 111 |
'../include/libdvbv5/header.h', |
| 112 |
'../include/libdvbv5/mgt.h', |
| 113 |
'../include/libdvbv5/mpeg_es.h', |
| 114 |
'../include/libdvbv5/mpeg_pes.h', |
| 115 |
'../include/libdvbv5/mpeg_ts.h', |
| 116 |
'../include/libdvbv5/nit.h', |
| 117 |
'../include/libdvbv5/pat.h', |
| 118 |
'../include/libdvbv5/pmt.h', |
| 119 |
'../include/libdvbv5/sdt.h', |
| 120 |
'../include/libdvbv5/vct.h', |
| 121 |
) |
| 122 |
|
| 123 |
install_headers(libdvbv5_api, subdir: 'libdvbv5') |
| 124 |
|
| 125 |
libdvbv5_deps = [ |
| 126 |
dep_iconv, |
| 127 |
dep_intl, |
| 128 |
dep_libm, |
| 129 |
dep_librt, |
| 130 |
dep_libudev, |
| 131 |
dep_threads, |
| 132 |
] |
| 133 |
|
| 134 |
libdvbv5_c_args = [ |
| 135 |
'-DHAVE_DVBV5_REMOTE', |
| 136 |
'-DHAVE_PTHREAD', |
| 137 |
'-DLIBDVBV5_DOMAIN="libdvbv5"', |
| 138 |
] |
| 139 |
|
| 140 |
libdvbv5 = library('dvbv5', |
| 141 |
libdvbv5_sources, |
| 142 |
soversion: '0', |
| 143 |
version: '0.0.0', |
| 144 |
install : true, |
| 145 |
dependencies : libdvbv5_deps, |
| 146 |
c_args : libdvbv5_c_args, |
| 147 |
include_directories : v4l2_utils_incdir) |
| 148 |
|
| 149 |
dep_libdvbv5 = declare_dependency(link_with : libdvbv5) |
| 150 |
meson.override_dependency('libdvbv5', dep_libdvbv5) |
| 151 |
|
| 152 |
pkg.generate( |
| 153 |
libdvbv5, |
| 154 |
name : 'libdvbv5', |
| 155 |
version : meson.project_version(), |
| 156 |
requires_private : 'libudev', |
| 157 |
description : 'DVBv5 utility library') |