Adding headers to the installation.

This commit is contained in:
sergiotarxz 2022-07-18 03:15:47 +02:00
parent 33e61477aa
commit 1cd5b5d3b4
1 changed files with 40 additions and 9 deletions

View File

@ -2,15 +2,45 @@ project('me.sergiotarxz.elfspy', 'cpp')
pkg = import('pkgconfig')
sources = [
'Call.cpp',
'Report.cpp',
'ELFInfo.cpp',
'SPY.cpp',
'Error.cpp',
'SectionHeader.cpp',
'GOTEntry.cpp',
'Fail.cpp',
'MFile.cpp',
'Call.cpp',
'Report.cpp',
'ELFInfo.cpp',
'SPY.cpp',
'Error.cpp',
'SectionHeader.cpp',
'GOTEntry.cpp',
'Fail.cpp',
'MFile.cpp',
]
headers = [
'./Capture.h',
'./HookImpl.h',
'./Thunk.h',
'./MFile.h',
'./Lambda.h',
'./Method.h',
'./Profiler.h',
'./GOTEntry.h',
'./MethodInfo.h',
'./Section.h',
'./ELFObject.h',
'./Call.h',
'./SectionHeader.h',
'./Variadic.h',
'./MethodPointer.h',
'./Fail.h',
'./Result.h',
'./ThunkHandle.h',
'./Report.h',
'./SPY.h',
'./Fake.h',
'./Error.h',
'./Hook.h',
'./ELFInfo.h',
'./Function.h',
'./HookBase.h',
'./Arg.h',
]
elfspylib = library('elfspy',
@ -18,4 +48,5 @@ elfspylib = library('elfspy',
install : true,
include_directories: ['..', '.'],
)
install_headers(headers, subdir: 'elfspy')
pkg.generate(elfspylib)