Files
sysprof/src/libsysprof-ui/meson.build
2019-06-04 14:41:14 -07:00

128 lines
3.5 KiB
Meson

if get_option('enable_gtk') and get_option('libsysprof')
libsysprof_ui_public_sources = [
'sysprof-aid.c',
'sysprof-capture-view.c',
'sysprof-callgraph-aid.c',
'sysprof-callgraph-view.c',
'sysprof-color-cycle.c',
'sysprof-cpu-aid.c',
'sysprof-cpu-visualizer-row.c',
'sysprof-display.c',
'sysprof-empty-state-view.c',
'sysprof-failed-state-view.c',
'sysprof-line-visualizer-row.c',
'sysprof-marks-model.c',
'sysprof-marks-view.c',
'sysprof-mark-visualizer-row.c',
'sysprof-memory-aid.c',
'sysprof-model-filter.c',
'sysprof-notebook.c',
'sysprof-process-model-row.c',
'sysprof-proxy-aid.c',
'sysprof-profiler-assistant.c',
'sysprof-recording-state-view.c',
'sysprof-visualizer-list.c',
'sysprof-visualizer-row.c',
'sysprof-visualizer-ticks.c',
'sysprof-visualizer-view.c',
'sysprof-zoom-manager.c',
]
libsysprof_ui_private_sources = [
'pointcache.c',
'rectangles.c',
'sysprof-aid-icon.c',
'sysprof-details-view.c',
'sysprof-cairo.c',
'sysprof-cell-renderer-duration.c',
'sysprof-cell-renderer-percent.c',
'sysprof-depth-visualizer-row.c',
'sysprof-environ-editor-row.c',
'sysprof-environ-editor.c',
'sysprof-environ-variable.c',
'sysprof-environ.c',
'sysprof-log-model.c',
'sysprof-logs-view.c',
'sysprof-tab.c',
'sysprof-time-label.c',
'sysprof-theme-manager.c',
'../stackstash.c',
]
libsysprof_ui_public_headers = [
'sysprof-aid.h',
'sysprof-capture-view.h',
'sysprof-callgraph-aid.h',
'sysprof-callgraph-view.h',
'sysprof-cell-renderer-percent.h',
'sysprof-cpu-aid.h',
'sysprof-cpu-visualizer-row.h',
'sysprof-display.h',
'sysprof-empty-state-view.h',
'sysprof-failed-state-view.h',
'sysprof-line-visualizer-row.h',
'sysprof-marks-model.h',
'sysprof-marks-view.h',
'sysprof-mark-visualizer-row.h',
'sysprof-memory-aid.h',
'sysprof-model-filter.c',
'sysprof-model-filter.h',
'sysprof-notebook.h',
'sysprof-process-model-row.h',
'sysprof-proxy-aid.h',
'sysprof-profiler-assistant.h',
'sysprof-recording-state-view.h',
'sysprof-visualizer-list.h',
'sysprof-visualizer-row.h',
'sysprof-visualizer-ticks.h',
'sysprof-visualizer-view.h',
'sysprof-zoom-manager.h',
'sysprof-ui.h',
]
libsysprof_ui_resources = gnome.compile_resources(
'libsysprof-ui-resources',
'libsysprof-ui.gresource.xml',
c_name: 'lisysprof_ui',
)
libsysprof_ui_deps = [
gio_dep,
gtk_dep,
dazzle_dep,
libsysprof_dep,
]
libsysprof_ui = shared_library(
'sysprof-ui-@0@'.format(libsysprof_api_version),
libsysprof_ui_public_sources + libsysprof_ui_private_sources + libsysprof_ui_resources,
dependencies: libsysprof_ui_deps,
install_dir: get_option('libdir'),
install: true,
c_args: [ '-DSYSPROF_UI_COMPILATION' ],
gnu_symbol_visibility: 'hidden',
)
libsysprof_ui_dep = declare_dependency(
link_with: libsysprof_ui,
dependencies: libsysprof_ui_deps,
include_directories: include_directories('.'),
)
pkgconfig.generate(
libraries: [libsysprof_ui],
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-ui-@0@'.format(libsysprof_api_version),
filebase: 'sysprof-ui-@0@'.format(libsysprof_api_version),
description: 'The UI library for GTK applications embedding sysprof',
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
requires: [ 'gio-2.0', 'gtk+-3.0' ],
)
install_headers(libsysprof_ui_public_headers, subdir: sysprof_header_subdir)
endif