diff options
author | Victor A. Santos <[email protected]> | 2020-03-30 18:54:42 -0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-09-03 13:19:35 +0200 |
commit | 1db4b409322e559a3d3a03677dd482a0613f3b29 (patch) | |
tree | 5b7f03980579416d78135db46287799eb0a6a0ba /meson.build | |
parent | 301549e96d34a3b79fa471aaff5402689bf5868f (diff) | |
download | mate-power-manager-1db4b409322e559a3d3a03677dd482a0613f3b29.tar.bz2 mate-power-manager-1db4b409322e559a3d3a03677dd482a0613f3b29.tar.xz |
add meson project
fix indentation in some files
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..914f3f5 --- /dev/null +++ b/meson.build @@ -0,0 +1,69 @@ +project('mate-power-manager', 'c', version : '1.24.0') + +gnome = import('gnome') +dbus_binding_tool = find_program('dbus-binding-tool') + +i18n = import('i18n') +add_project_arguments( + [ + '-DGETTEXT_PACKAGE="' + meson.project_name() + '"', + '-DHAVE_CONFIG_H' + ], + language: 'c' +) + +cc = meson.get_compiler('c') +m_dep = cc.find_library('m', required: false) + +dependencies = [ + m_dep, + dependency('glib-2.0', version: '>=2.50.0'), + dependency('gobject-2.0'), + dependency('gio-2.0 ', version: '>=2.50.0'), + dependency('gio-unix-2.0'), + dependency('libcanberra-gtk3', version: '>=0.10'), + dependency('dbus-glib-1', version: '>=0.70'), + dependency('dbus-1', version: '>=1.0'), + dependency('gthread-2.0',), + dependency('gtk+-3.0', version: '>=3.22.0'), + dependency('cairo', version: '>=1.0.0'), + dependency('gdk-3.0', version: '>=3.22.0'), + dependency('gdk-x11-3.0', version: '>=3.22.0'), + dependency('xrandr', version: '>=1.3.0'), + dependency('x11'), + dependency('xext'), + dependency('xproto', version: '>=7.0.15'), + dependency('libnotify', version: '>=0.7.0'), + dependency('upower-glib', version: '>=0.99.8'), + dependency('gnome-keyring-1', version: '>=3.0.0', required: get_option('keyring')), +] + +# defult paths +prefix_path = get_option('prefix') +sysconfdir_path = join_paths(prefix_path, get_option('sysconfdir')) +datadir_path = join_paths(prefix_path, get_option('datadir')) +pkgdatadir_path = join_paths(datadir_path, meson.project_name()) +bindir_path = join_paths(prefix_path, get_option('bindir')) +sbindir_path = join_paths(prefix_path, get_option('sbindir')) +libexecdir_path = join_paths(prefix_path, get_option('libexecdir')) +localedir_path = join_paths(prefix_path, get_option('localedir')) +iconsdir_path = join_paths(datadir_path, 'icons') +uidir_path = join_paths(pkgdatadir_path, 'ui') +servicedir_path = join_paths(datadir_path, 'dbus-1', 'services') +appletdir_path = join_paths(datadir_path, 'mate-panel', 'applets') +desktopdir_path = join_paths(datadir_path, 'applications') +mandir_path = join_paths(prefix_path, get_option('mandir')) + +podir = join_paths(meson.source_root(), 'po') + +if get_option('applets').enabled() + dependencies += dependency('libmatepanelapplet-4.0') + + subdir('applets') +endif + +subdir('data') +subdir('help') +subdir('po') +subdir('policy') +subdir('src') |