Added meson build scripts.

Mostly for ease of use as a subproject to parse windows dependencies
for packaging.

Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
This commit is contained in:
Marty Plummer 2017-07-16 19:33:55 -05:00 committed by Alessandro Gario
parent 64989f688a
commit b66e9dbedb
3 changed files with 26 additions and 0 deletions

7
dump-prog/meson.build Normal file
View File

@ -0,0 +1,7 @@
dump_prog = executable(
'dump-prog',
'dump.cpp',
include_directories : [ incdirs ],
install : true,
install_dir : join_paths(get_option('datadir'), 'pe-parse/examples'),
link_with : pe_parser_library)

8
meson.build Normal file
View File

@ -0,0 +1,8 @@
project('pe-parse',
'cpp',
default_options : [ 'cpp_std=c++11' ],
license : [ 'MIT' ],
)
subdir('parser-library')
subdir('dump-prog')

View File

@ -0,0 +1,11 @@
incdirs = include_directories('.')
parser_source = [
'buffer.cpp',
'parse.cpp'
]
pe_parser_library = library('pe-parser-library',
sources : parser_source,
install : true
)
install_headers('parse.h', subdir : 'pe-parse')