gplate/gplate

Disable the tests for now so we can port them one at a time
default tip
15 months ago, Gary Kramlich
7f34b48539fe
Disable the tests for now so we can port them one at a time
project('gplate', 'C',
license : 'LGPL-2.0-or-later',
version : '0.0.3-dev',
meson_version : '>=0.63.0',
default_options : ['c_std=c17', 'warning_level=2'])
###############################################################################
# Version Stuff
###############################################################################
gplate_soversion = 0
parts = meson.project_version().split('-')
if parts.length() > 1
gplate_extra_version = parts[1]
else
gplate_extra_version = ''
endif
parts = parts[0].split('.')
gplate_major_version = parts[0]
gplate_minor_version = parts[1]
gplate_micro_version = parts[2]
GPLATE_VERSION = '@0@.@1@.@2@'.format(gplate_soversion,
gplate_minor_version,
gplate_micro_version)
version_conf = configuration_data()
version_conf.set('GPLATE_MAJOR_VERSION', gplate_major_version)
version_conf.set('GPLATE_MINOR_VERSION', gplate_minor_version)
version_conf.set('GPLATE_MICRO_VERSION', gplate_micro_version)
version_conf.set('GPLATE_EXTRA_VERSION', gplate_extra_version)
version_conf.set('GPLATE_VERSION', meson.project_version())
version_conf.set('GPLATE_API_VERSION', gplate_soversion)
###############################################################################
# Module imports
###############################################################################
gnome = import('gnome')
pkgconfig = import('pkgconfig')
###############################################################################
# Basic Variables
###############################################################################
toplevel_inc = include_directories('.')
###############################################################################
# Main Dependencies
###############################################################################
GLIB = dependency('glib-2.0', version : '>=2.70.0')
add_project_arguments(
'-D_GNU_SOURCE',
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_70',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_70',
language : 'c',
)
GOBJECT = dependency('gobject-2.0')
###############################################################################
# Documentation
###############################################################################
if get_option('doc') and not get_option('introspection')
error('Documentation requires GObject Introspection.')
endif
gidocgen_dep = dependency(
'gi-docgen', version: '>= 2021.1',
fallback: ['gi-docgen', 'dummy_dep'],
required: get_option('doc')
)
gidocgen = find_program('gi-docgen', required : get_option('doc'))
docs_dir = get_option('prefix') / get_option('datadir') / 'doc'
###############################################################################
# Subdirectories
###############################################################################
subdir('gplate')