mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-26 20:30:11 +01:00
This partially reverts commit ba4d5fbd5 from MR !343 which asked for
hidden symbols everywhere. cairo-fdr and cairo-trace explicitly try to
interpose existing symbols. Changing them to hidden symbols breaks these
tools.
See: https://gitlab.freedesktop.org/cairo/cairo/-/issues/882#note_2759005
Signed-off-by: Uli Schlachter <psychon@znc.in>
35 lines
1.2 KiB
Meson
35 lines
1.2 KiB
Meson
cairo_trace_sources = [
|
|
'trace.c',
|
|
]
|
|
|
|
if conf.get('CAIRO_HAS_SYMBOL_LOOKUP', 0) == 1
|
|
cairo_trace_sources += ['lookup-symbol.c']
|
|
endif
|
|
|
|
shared_lib_ext = libcairo.full_path().split('.')[-1]
|
|
|
|
libcairotrace = library('cairo-trace', cairo_trace_sources,
|
|
include_directories: [incbase, incsrc],
|
|
dependencies: deps,
|
|
c_args: ['-DSHARED_LIB_EXT="@0@"'.format(shared_lib_ext),] + pthread_c_args,
|
|
link_args: extra_link_args,
|
|
install: true,
|
|
install_dir: get_option('libdir') / 'cairo',
|
|
)
|
|
|
|
trace_conf = configuration_data()
|
|
trace_conf.set('prefix', get_option('prefix'))
|
|
trace_conf.set('exec_prefix', get_option('prefix'))
|
|
trace_conf.set('libdir', get_option('prefix') / get_option('libdir'))
|
|
trace_conf.set('CAIRO_VERSION_MAJOR', meson.project_version().split('.')[0])
|
|
trace_conf.set('CAIRO_VERSION_MINOR', meson.project_version().split('.')[1])
|
|
trace_conf.set('CAIRO_VERSION_MICRO', meson.project_version().split('.')[2])
|
|
trace_conf.set('SHLIB_EXT', shared_lib_ext)
|
|
|
|
configure_file(input: 'cairo-trace.in',
|
|
output: 'cairo-trace',
|
|
configuration: trace_conf,
|
|
install: true,
|
|
install_dir: join_paths(get_option('prefix'), get_option('bindir')),
|
|
install_mode: 'rwxr-xr-x',
|
|
)
|