You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

83 lines
2.4 KiB

project('lightdm-webkit2-greeter', 'c', version: '2.1.90', 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_2_14 = webkit2.version().version_compare('>=2.14.0')
has_lightdm_1_19_2 = lightdm_gobject.version().version_compare('>=1.19.2')
has_gtk_3_22 = gtk3.version().version_compare('>=3.22')
# =================================== #
# ------->>> 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('GRESOURCE_PATH', '"/com/antergos/lightdm-webkit2-greeter"')
if has_webkitgtk_2_14
conf.set('HAS_WEBKITGTK_2_14', has_webkitgtk_2_14)
endif
if has_lightdm_1_19_2
conf.set('HAS_LIGHTDM_1_19_2', has_lightdm_1_19_2)
endif
if has_gtk_3_22
conf.set('HAS_GTK_3_22', has_gtk_3_22)
endif
# ===================================== #
# ------->>> Sub Directories <<<------- #
# ===================================== #
subdirs = ['src', 'man', 'themes', 'data']
foreach s : subdirs
subdir(s)
endforeach