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,9 +1,9 @@
libsysprof_headers += files([
util_headers = [
'sp-map-lookaside.h',
'sp-selection.h',
])
]
libsysprof_sources += files([
util_sources = [
'binfile.c',
'binfile.h',
'demangle.cpp',
@ -18,16 +18,25 @@ libsysprof_sources += files([
'sp-selection.c',
'stackstash.c',
'stackstash.h',
])
]
libsysprof_ui_headers += files([
libsysprof_headers += files(util_headers)
libsysprof_sources += files(util_sources)
install_headers(util_headers,
subdir: join_paths(libsysprof_header_subdir, 'util'))
if get_option('enable_gtk')
util_ui_headers = [
'sp-model-filter.h',
'sp-process-model-item.h',
'sp-process-model.h',
'sp-zoom-manager.h',
])
]
libsysprof_ui_sources += files([
util_ui_sources = [
'pointcache.c',
'pointcache.h',
'sp-color-cycle.c',
@ -40,4 +49,12 @@ libsysprof_ui_sources += files([
'sp-zoom-manager.c',
'stackstash.c',
'stackstash.h',
])
]
libsysprof_ui_headers += files(util_ui_headers)
libsysprof_ui_sources += files(util_ui_sources)
install_headers(util_ui_headers,
subdir: join_paths(libsysprof_header_subdir, 'util'))
endif