build: fix header installation paths

This commit is contained in:
Christian Hergert
2017-09-28 17:44:02 -07:00
parent 190faa818d
commit 00b6892a72
9 changed files with 128 additions and 52 deletions

View File

@ -1,4 +1,6 @@
libsysprof_ui_headers += files([
if get_option('enable_gtk')
widgets_ui_headers = [
'sp-cell-renderer-percent.h',
'sp-empty-state-view.h',
'sp-failed-state-view.h',
@ -6,9 +8,9 @@ libsysprof_ui_headers += files([
'sp-process-model-row.h',
'sp-profiler-menu-button.h',
'sp-recording-state-view.h',
])
]
libsysprof_ui_sources += files([
widgets_ui_sources = [
'sp-cell-renderer-percent.c',
'sp-empty-state-view.c',
'sp-failed-state-view.c',
@ -16,4 +18,12 @@ libsysprof_ui_sources += files([
'sp-process-model-row.c',
'sp-profiler-menu-button.c',
'sp-recording-state-view.c',
])
]
libsysprof_ui_headers += files(widgets_ui_headers)
libsysprof_ui_sources += files(widgets_ui_sources)
install_headers(widgets_ui_headers,
subdir: join_paths(libsysprof_header_subdir, 'widgets'))
endif