forked from c-util/c-list
-
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.
Convert the repository to use the new meson-wrap based dependency management, new meson functionality, as well as the new CI shared workflows. Signed-off-by: David Rheinsberg <[email protected]>
- Loading branch information
Showing
6 changed files
with
56 additions
and
19 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 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ AUTHORS-LGPL: | |
along with this program; If not, see <http://www.gnu.org/licenses/>. | ||
|
||
COPYRIGHT: (ordered alphabetically) | ||
Copyright (C) 2015-2019 Red Hat, Inc. | ||
Copyright (C) 2015-2022 Red Hat, Inc. | ||
|
||
AUTHORS: (ordered alphabetically) | ||
Danilo Horta <[email protected]> | ||
|
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 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 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 |
---|---|---|
@@ -1,15 +1,46 @@ | ||
project( | ||
'c-list', | ||
'c', | ||
version: '3', | ||
license: 'Apache', | ||
default_options: [ | ||
'c_std=c99', | ||
], | ||
license: 'Apache', | ||
meson_version: '>=0.60.0', | ||
version: '3.0.0', | ||
) | ||
major = meson.project_version().split('.')[0] | ||
project_description = 'Circular Intrusive Double Linked List Collection' | ||
|
||
add_project_arguments('-D_GNU_SOURCE', language: 'c') | ||
mod_pkgconfig = import('pkgconfig') | ||
|
||
# See c-stdaux for details on these. We do not have c-stdaux as dependency, so | ||
# we keep a duplicated set here, reduced to the minimum. | ||
cflags = meson.get_compiler('c').get_supported_arguments( | ||
'-D_GNU_SOURCE', | ||
|
||
'-Wno-gnu-alignof-expression', | ||
'-Wno-maybe-uninitialized', | ||
'-Wno-unknown-warning-option', | ||
'-Wno-unused-parameter', | ||
|
||
'-Wno-error=type-limits', | ||
'-Wno-error=missing-field-initializers', | ||
|
||
'-Wdate-time', | ||
'-Wdeclaration-after-statement', | ||
'-Wlogical-op', | ||
'-Wmissing-include-dirs', | ||
'-Wmissing-noreturn', | ||
'-Wnested-externs', | ||
'-Wredundant-decls', | ||
'-Wshadow', | ||
'-Wstrict-aliasing=3', | ||
'-Wsuggest-attribute=noreturn', | ||
'-Wundef', | ||
'-Wwrite-strings', | ||
) | ||
add_project_arguments(cflags, language: 'c') | ||
|
||
subdir('src') | ||
|
||
meson.override_dependency('libclist-'+major, libclist_dep, static: true) |
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