project: Port to meson build system

https://bugzilla.gnome.org/show_bug.cgi?id=782843
This commit is contained in:
Iñigo Martínez
2017-08-10 07:19:28 -03:00
committed by Georges Basile Stavracas Neto
parent 311195857f
commit 4c115249a7
13 changed files with 684 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
subdir('xml')
html_images = [
'images/gcal-edit-dialog.png',
'images/gcal-event-widget.png',
'images/gcal-source-dialog.png',
'images/gcal-window.png',
'images/gcal-window_agendas.png'
]
version_conf = configuration_data()
version_conf.set('VERSION', calendar_version)
version = 'version.xml'
version_xml = configure_file(
input: version + '.in',
output: version,
configuration: version_conf
)
gtk_prefix = gtk_dep.get_pkgconfig_variable('prefix')
gtk_doc_path = join_paths(gtk_prefix, 'share', 'gtk-doc', 'html')
glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
glib_doc_path = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
doc_path = join_paths(calendar_datadir, 'gtk-doc', 'html', meson.project_name())
gnome.gtkdoc(
meson.project_name(),
main_sgml: meson.project_name() + '-docs.sgml',
src_dir: src_inc,
dependencies: libgcal_dep,
scan_args: '--rebuild-types',
mkdb_args: [
'--sgml-mode',
'--output-format=xml'
],
gobject_typesfile: meson.project_name() + '.types',
fixxref_args: [
'--extra-dir=@0@'.format(join_paths(gtk_doc_path, 'evolution-data-server')),
'--extra-dir=@0@'.format(join_paths(glib_doc_path, 'glib')),
'--extra-dir=@0@'.format(join_paths(glib_doc_path, 'gobject')),
'--extra-dir=@0@'.format(join_paths(glib_doc_path, 'gio')),
'--extra-dir=@0@'.format(join_paths(gtk_doc_path, 'gdk')),
'--extra-dir=@0@'.format(join_paths(gtk_doc_path, 'gtk'))
],
html_assets: html_images,
install: true,
install_dir: doc_path
)
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY package @PACKAGE@>
<!ENTITY package_bugreport @PACKAGE_BUGREPORT@>
<!ENTITY package_name @PACKAGE_NAME@>
<!ENTITY package_string @PACKAGE_STRING@>
<!ENTITY package_tarname @PACKAGE_TARNAME@>
<!ENTITY package_url @PACKAGE_URL@>
<!ENTITY package_version @PACKAGE_VERSION@>
+7
View File
@@ -0,0 +1,7 @@
ent = 'gtkdocentities.ent'
configure_file(
input: ent + '.in',
output: ent,
configuration: config_h
)