project('lightdm-webkit2-greeter', 'c', version: '2.1.5', license: 'GPL-3') # ================================== # # ------->>> Version Vars <<<------- # # ================================== # as_version = meson.project_version() version_parts = as_version.split('.') as_major_version = version_parts[0] as_minor_version = version_parts[1] as_micro_version = version_parts[2] # ======================================= # # ------->>> Dependency Checks <<<------- # # ======================================= # dbus_glib = dependency('dbus-glib-1') lightdm_gobject = dependency('liblightdm-gobject-1') x11 = dependency('x11') gtk3 = dependency('gtk+-3.0', version: '>=3.16') webkit2 = dependency('webkit2gtk-4.0', version: '>=2.10.7') webkit2_webext = dependency('webkit2gtk-web-extension-4.0', version: '>=2.10.7') greeter_deps = [dbus_glib, gtk3, webkit2, x11] webext_deps = [webkit2_webext, lightdm_gobject] has_webkitgtk_214 = webkit2.version().version_compare('>=2.14.0') # =================================== # # ------->>> Configuration <<<------- # # =================================== # conf = configuration_data() conf.set('VERSION', as_version) conf.set('PACKAGE_VERSION', as_version) conf.set('AS_MAJOR_VERSION', as_major_version) conf.set('AS_MINOR_VERSION', as_minor_version) conf.set('AS_MICRO_VERSION', as_micro_version) conf.set('GETTEXT_PACKAGE', '"lightdm-webkit2-greeter"') conf.set('LOCALE_DIR', '"@0@"'.format(get_option('with-locale-dir'))) conf.set('THEME_DIR', '"@0@"'.format(get_option('with-theme-dir'))) conf.set('CONFIG_DIR', '"@0@"'.format(get_option('with-config-dir'))) conf.set('DESKTOP_DIR', '"@0@"'.format(get_option('with-desktop-dir'))) conf.set('WEBEXT_DIR', '"@0@"'.format(get_option('with-webext-dir'))) conf.set('HAS_WEBKITGTK_2_14', has_webkitgtk_214) # ===================================== # # ------->>> Sub Directories <<<------- # # ===================================== # subdirs = ['src', 'man', 'themes', 'data'] foreach s : subdirs subdir(s) endforeach