libeos-parental-controls: Initial implementation of library
This allows the app filter to be queried, and includes all the basic parts of a shared library. Introspection and unit tests are to follow. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://phabricator.endlessm.com/T23859
This commit is contained in:
parent
908f77b895
commit
fe0c597774
4 changed files with 586 additions and 1 deletions
74
meson.build
74
meson.build
|
@ -29,4 +29,76 @@ polkit_gobject = dependency('polkit-gobject-1')
|
|||
polkitpolicydir = polkit_gobject.get_pkgconfig_variable('policydir',
|
||||
define_variable: ['prefix', prefix])
|
||||
|
||||
subdir('accounts-service')
|
||||
config_h = configuration_data()
|
||||
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||
configure_file(
|
||||
output: 'config.h',
|
||||
configuration: config_h,
|
||||
)
|
||||
root_inc = include_directories('.')
|
||||
|
||||
# Enable warning flags
|
||||
test_c_args = [
|
||||
'-fno-strict-aliasing',
|
||||
'-fstack-protector-strong',
|
||||
'-Waggregate-return',
|
||||
'-Wall',
|
||||
'-Wunused',
|
||||
'-Warray-bounds',
|
||||
'-Wcast-align',
|
||||
'-Wclobbered',
|
||||
'-Wno-declaration-after-statement',
|
||||
'-Wduplicated-branches',
|
||||
'-Wduplicated-cond',
|
||||
'-Wempty-body',
|
||||
'-Wformat=2',
|
||||
'-Wformat-nonliteral',
|
||||
'-Wformat-security',
|
||||
'-Wformat-signedness',
|
||||
'-Wignored-qualifiers',
|
||||
'-Wimplicit-function-declaration',
|
||||
'-Wincompatible-pointer-types',
|
||||
'-Wincompatible-pointer-types-discards-qualifiers',
|
||||
'-Winit-self',
|
||||
'-Wint-conversion',
|
||||
'-Wlogical-op',
|
||||
'-Wmisleading-indentation',
|
||||
'-Wmissing-declarations',
|
||||
'-Wmissing-format-attribute',
|
||||
'-Wmissing-include-dirs',
|
||||
'-Wmissing-noreturn',
|
||||
'-Wmissing-parameter-type',
|
||||
'-Wmissing-prototypes',
|
||||
'-Wnested-externs',
|
||||
'-Wno-error=cpp',
|
||||
'-Wno-discarded-qualifiers',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-suggest-attribute=format',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wnull-dereference',
|
||||
'-Wold-style-definition',
|
||||
'-Woverflow',
|
||||
'-Woverride-init',
|
||||
'-Wparentheses',
|
||||
'-Wpointer-arith',
|
||||
'-Wredundant-decls',
|
||||
'-Wreturn-type',
|
||||
'-Wshadow',
|
||||
'-Wsign-compare',
|
||||
'-Wstrict-aliasing=2',
|
||||
'-Wstrict-prototypes',
|
||||
'-Wswitch-default',
|
||||
'-Wswitch-enum',
|
||||
'-Wtype-limits',
|
||||
'-Wundef',
|
||||
'-Wuninitialized',
|
||||
'-Wunused-but-set-variable',
|
||||
'-Wunused-result',
|
||||
'-Wunused-variable',
|
||||
'-Wwrite-strings'
|
||||
]
|
||||
cc = meson.get_compiler('c')
|
||||
add_project_arguments(cc.get_supported_arguments(test_c_args), language: 'c')
|
||||
|
||||
subdir('accounts-service')
|
||||
subdir('libeos-parental-controls')
|
Loading…
Add table
Add a link
Reference in a new issue