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,17 +1,33 @@
libsysprof_headers += files([
callgraph_headers = [
'sp-callgraph-profile.h',
])
]
libsysprof_sources += files([
callgraph_sources = [
'sp-callgraph-profile-private.h',
'sp-callgraph-profile.c',
])
]
libsysprof_headers += files(callgraph_headers)
libsysprof_sources += files(callgraph_sources)
install_headers(callgraph_headers,
subdir: join_paths(libsysprof_header_subdir, 'callgraph'))
libsysprof_ui_headers += files([
'sp-callgraph-view.h',
])
if get_option('enable_gtk')
libsysprof_ui_sources += files([
'sp-callgraph-view.c',
])
callgraph_ui_headers = [
'sp-callgraph-view.h',
]
callgraph_ui_sources = [
'sp-callgraph-view.c',
]
libsysprof_ui_headers += files(callgraph_ui_headers)
libsysprof_ui_sources += files(callgraph_ui_sources)
install_headers(callgraph_ui_headers,
subdir: join_paths(libsysprof_header_subdir, 'callgraph'))
endif