meson: Setup the Meson build infrastructure
This commit is contained in:
2
c/cli/meson.build
Normal file
2
c/cli/meson.build
Normal file
@ -0,0 +1,2 @@
|
||||
executable('passgeny', 'src/passgeny.c', dependencies: phogen_dep)
|
||||
|
||||
2
c/meson.build
Normal file
2
c/meson.build
Normal file
@ -0,0 +1,2 @@
|
||||
subdir('phogen')
|
||||
subdir('cli')
|
||||
18
c/phogen/meson.build
Normal file
18
c/phogen/meson.build
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
# phogen_map is needed for generating phogen_map.h
|
||||
subdir('phogen_map')
|
||||
|
||||
phogen_map_h = custom_target(
|
||||
'phogen_map.h',
|
||||
input : PHOGEN_WORD_LIST,
|
||||
output : 'phogen_map.h',
|
||||
command : [PHOGEN_MAP_EXE, '--input=@INPUT@', '--clang=@OUTPUT@'])
|
||||
|
||||
phogen_inc = include_directories('inc')
|
||||
|
||||
phogen_lib = static_library(
|
||||
'phogen',
|
||||
[phogen_map_h, 'src/phogen.c'],
|
||||
include_directories : phogen_inc)
|
||||
|
||||
phogen_dep = declare_dependency(link_with : phogen_lib, include_directories : phogen_inc)
|
||||
5
c/phogen/phogen_map/meson.build
Normal file
5
c/phogen/phogen_map/meson.build
Normal file
@ -0,0 +1,5 @@
|
||||
libcrypto_dep = dependency('libcrypto')
|
||||
|
||||
PHOGEN_MAP_EXE = executable('phogen_map', 'phogen_map.c', dependencies: libcrypto_dep)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user