diff --git a/dump-prog/meson.build b/dump-prog/meson.build new file mode 100644 index 0000000..2625ea7 --- /dev/null +++ b/dump-prog/meson.build @@ -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) diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..3a5f4a1 --- /dev/null +++ b/meson.build @@ -0,0 +1,8 @@ +project('pe-parse', + 'cpp', + default_options : [ 'cpp_std=c++11' ], + license : [ 'MIT' ], + ) + +subdir('parser-library') +subdir('dump-prog') diff --git a/parser-library/meson.build b/parser-library/meson.build new file mode 100644 index 0000000..451bc9b --- /dev/null +++ b/parser-library/meson.build @@ -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')