Files
sysprof/lib/capture/meson.build
Christian Hergert b3bf7968ad capture: avoid GObject in libsysprof-capture-2.a
The point of this file was to be easily usable by applications that want
to generate capture files (or proxy them). The intention here is that we
only have SpCaptureReader/SpCaptureWriter (and associated bits necessary
to support that).

This makes sure that we do not use GObject from the libsysprof-capture-2.a
while still having GType's in the libsysprof-2.so dynamic library.

We also invert the GObject macro check so that the default is to not
register a GType which increases the chances that copy/paste code does
not run into double-registering a GType if used with an application that
links against libsysprof-2. (One such example could be if Gtk uses this
code for timers, as it would break Sysprof itself).
2018-05-21 13:52:16 -07:00

28 lines
600 B
Meson

capture_headers = [
'sp-capture-condition.h',
'sp-capture-cursor.h',
'sp-capture-reader.h',
'sp-capture-types.h',
'sp-capture-writer.h',
]
capture_sources = [
'sp-capture-condition.c',
'sp-capture-cursor.c',
'sp-capture-reader.c',
'sp-capture-writer.c',
]
static_capture_sources = [
'sp-capture-reader.c',
'sp-capture-writer.c',
]
libsysprof_headers += files(capture_headers)
libsysprof_sources += files(capture_sources)
libsysprof_capture_sources += files(static_capture_sources)
install_headers(capture_headers,
subdir: join_paths(libsysprof_header_subdir, 'capture'))