grim/gplugin-purple2-loader

beddfd4f9bf9
Initial revision, we can query the no-irc-who plugin now
###############################################################################
# Project Info
###############################################################################
project('gplugin-purple2', 'c', version : '0.0.1-dev',
meson_version : '>=0.37.0',
default_options : ['c_std=c99'])
parts = meson.project_version().split('-')
if parts.length() > 1
extra = parts[1]
else
extra = ''
endif
parts = parts[0].split('.')
GPLUGIN_PURPLE2_MAJOR_VERSION = parts[0]
version_conf = configuration_data()
version_conf.set('GPLUGIN_PURPLE2_MAJOR_VERSION', GPLUGIN_PURPLE2_MAJOR_VERSION)
version_conf.set('GPLUGIN_PURPLE2_MINOR_VERSION', parts[1])
version_conf.set('GPLUGIN_PURPLE2_MICRO_VERSION', parts[2])
version_conf.set('GPLUGIN_PURPLE2_EXTRA_VERSION', extra)
version_conf.set('GPLUGIN_PURPLE2_VERSION', meson.project_version())
###############################################################################
# Dependencies
###############################################################################
gnome = import('gnome')
pkgconfig = import('pkgconfig')
GLIB = dependency('glib-2.0', version : '>=2.40.0')
GOBJECT = dependency('gobject-2.0')
GMODULE = dependency('gmodule-2.0')
GPLUGIN = dependency('gplugin')
PURPLE3 = dependency('purple-3')
###############################################################################
# Build Info
###############################################################################
compiler = meson.get_compiler('c')
if compiler.has_argument('-Wformat')
add_project_arguments('-Wformat', language : 'c')
if compiler.has_multi_arguments(['-Wformat', '-Werror=format-security'])
add_project_arguments('-Werror=format-security', language : 'c')
endif
endif
toplevel_inc = include_directories('.')
###############################################################################
# Subdirectories
###############################################################################
subdir('gplugin-purple2')