forked from latchset/clevis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The meson build system is conceptually simpler and significantly faster.
- Loading branch information
1 parent
f19a088
commit 9f69af1
Showing
56 changed files
with
268 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
project('clevis', 'c', license: 'GPL3+', version: '10', | ||
default_options: 'c_std=c99') | ||
|
||
libexecdir = join_paths(get_option('prefix'), get_option('libexecdir')) | ||
sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir')) | ||
bindir = join_paths(get_option('prefix'), get_option('bindir')) | ||
|
||
data = configuration_data() | ||
data.set('libexecdir', libexecdir) | ||
data.set('sysconfdir', sysconfdir) | ||
data.set('bindir', bindir) | ||
|
||
add_project_arguments( | ||
'-Wall', | ||
'-Wextra', | ||
'-Werror', | ||
'-Wstrict-aliasing', | ||
'-Wchar-subscripts', | ||
'-Wformat-security', | ||
'-Wmissing-declarations', | ||
'-Wmissing-prototypes', | ||
'-Wnested-externs', | ||
'-Wpointer-arith', | ||
'-Wshadow', | ||
'-Wsign-compare', | ||
'-Wstrict-prototypes', | ||
'-Wtype-limits', | ||
'-Wunused-function', | ||
'-Wno-missing-field-initializers', | ||
'-Wno-unused-parameter', | ||
'-Wno-unknown-pragmas', | ||
'-D_POSIX_C_SOURCE=200112L', | ||
'-DBINDIR="' + bindir + '"', | ||
'-DCLEVIS_USER="' + get_option('user') + '"', | ||
'-DCLEVIS_GROUP="' + get_option('group') + '"', | ||
language: 'c' | ||
) | ||
|
||
jose = dependency('jose', version: '>=8') | ||
a2x = find_program('a2x', required: false) | ||
|
||
bins = [] | ||
mans = [] | ||
|
||
subdir('src') | ||
|
||
install_data(bins, install_dir: bindir) | ||
|
||
if a2x.found() | ||
foreach m : mans | ||
custom_target(m.split('/')[-1], input: m + '.adoc', output: m.split('/')[-1], | ||
command: [a2x, '-f', 'manpage', '-D', meson.current_build_dir(), '@INPUT@'], | ||
install_dir: join_paths(get_option('mandir'), 'man' + m.split('.')[-1]), | ||
install: true | ||
) | ||
endforeach | ||
else | ||
warning('Will not build man pages due to missing dependencies!') | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
option('user', type: 'string', value: 'clevis', description: 'Unprivileged user for secure clevis operations') | ||
option('group', type: 'string', value: 'clevis', description: 'Unprivileged group for secure clevis operations') | ||
|
Oops, something went wrong.