2019-07-07 18:02:53 -04:00
|
|
|
|
|
|
|
perl_signals_list_h = custom_target('perl-signals-list.h',
|
|
|
|
input : files('../../docs/signals.txt'),
|
|
|
|
output : 'perl-signals-list.h',
|
|
|
|
capture : true,
|
|
|
|
depend_files : files('get-signals.pl'),
|
2020-05-27 16:28:07 -04:00
|
|
|
command : [build_perl, files('get-signals.pl'), '@INPUT@'],
|
2019-07-07 18:02:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
irssi_core_pl_h = custom_target('irssi-core.pl.h',
|
|
|
|
input : files('irssi-core.pl'),
|
|
|
|
output : 'irssi-core.pl.h',
|
|
|
|
capture : true,
|
|
|
|
command : [file2header, '@INPUT@', 'irssi_core_code'],
|
|
|
|
)
|
|
|
|
|
2021-05-10 07:07:22 -04:00
|
|
|
# required as of Meson 0.58.0
|
|
|
|
generated_files_inc = include_directories('.')
|
|
|
|
|
2022-02-14 10:54:58 -05:00
|
|
|
libperl_core_sm = shared_module('perl_core',
|
2019-07-07 18:02:53 -04:00
|
|
|
files(
|
|
|
|
'perl-common.c',
|
|
|
|
'perl-core.c',
|
|
|
|
'perl-signals.c',
|
|
|
|
'perl-sources.c',
|
|
|
|
) + [
|
|
|
|
irssi_core_pl_h,
|
|
|
|
perl_signals_list_h,
|
2020-04-23 06:13:50 -04:00
|
|
|
] + built_src,
|
2019-07-07 18:02:53 -04:00
|
|
|
c_args : [
|
|
|
|
def_scriptdir,
|
2019-07-20 18:05:07 -04:00
|
|
|
def_perl_use_lib,
|
2019-07-07 18:02:53 -04:00
|
|
|
],
|
2021-05-10 07:07:22 -04:00
|
|
|
include_directories : [ rootinc ] + [ generated_files_inc ],
|
2019-07-07 18:02:53 -04:00
|
|
|
implicit_include_directories : false,
|
|
|
|
install : true,
|
|
|
|
install_dir : moduledir,
|
|
|
|
install_rpath : perl_rpath,
|
|
|
|
build_rpath : perl_rpath,
|
2020-05-27 16:28:07 -04:00
|
|
|
dependencies : dep_cflagsonly + [ perl_dep ] + dl_cross_dep,
|
2020-04-01 22:39:24 -04:00
|
|
|
override_options : ['b_asneeded=false'],
|
2019-07-07 18:02:53 -04:00
|
|
|
)
|
|
|
|
|
2020-05-27 16:28:07 -04:00
|
|
|
dl_cross_perl_core = []
|
|
|
|
if need_dl_cross_link
|
2022-02-14 10:54:58 -05:00
|
|
|
dl_cross_perl_core += libperl_core_sm
|
2020-05-27 16:28:07 -04:00
|
|
|
endif
|
|
|
|
|
2022-02-14 10:54:58 -05:00
|
|
|
shared_module('fe_perl',
|
2019-07-07 18:02:53 -04:00
|
|
|
files(
|
|
|
|
'module-formats.c',
|
|
|
|
'perl-fe.c',
|
|
|
|
),
|
|
|
|
c_args : [
|
|
|
|
def_scriptdir,
|
|
|
|
],
|
|
|
|
include_directories : rootinc,
|
|
|
|
implicit_include_directories : false,
|
|
|
|
install : true,
|
|
|
|
install_dir : moduledir,
|
|
|
|
dependencies : dep,
|
2020-05-27 16:28:07 -04:00
|
|
|
link_with : dl_cross_perl_core,
|
2019-07-07 18:02:53 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
subdir('common')
|
|
|
|
foreach s : chat_modules
|
|
|
|
subdir(s)
|
|
|
|
endforeach
|
|
|
|
subdir('ui')
|
|
|
|
if want_textui
|
|
|
|
subdir('textui')
|
|
|
|
endif
|
|
|
|
|
|
|
|
# noinst_headers = files(
|
|
|
|
# 'module-fe.h',
|
|
|
|
# 'module-formats.h',
|
|
|
|
# 'module.h',
|
|
|
|
# 'perl-common.h',
|
|
|
|
# 'perl-core.h',
|
|
|
|
# 'perl-signals.h',
|
|
|
|
# 'perl-sources.h',
|
|
|
|
# )
|