Here is a typical meson.build file, from the project
gnome-builder:

project('gnome-builder', 'c',
license: 'GPL3+',
version: '3.26.4',
meson_version: '>= 0.40.1',
default_options: [
'c_std=gnu11',
'cpp_std=c++11',
'warning_level=2',
'with_channel=other',
],
)

version_split = meson.project_version().split('.')
MAJOR_VERSION = version_split[0]
MINOR_VERSION = version_split[1]
MICRO_VERSION = version_split[2]

pkgdocdir_abs = join_paths(get_option('prefix'), get_option('datadir'), 'doc', 'gnome-builder')
pkglibdir_abs = join_paths(get_option('prefix'), get_option('libdir'), 'gnome-builder')
pkglibdir = join_paths(get_option('libdir'), 'gnome-builder')
pkgincludedir = join_paths(get_option('includedir'), 'gnome-builder')
pkggirdir = join_paths(get_option('datadir'),'gnome-builder', 'gir-1.0')
pkgtypelibdir = join_paths(get_option('libdir'), 'gnome-builder', 'girepository-1.0')
pkgvapidir = join_paths(get_option('datadir'), 'gnome-builder/vapi')

I think it is a python file. Would it work to just associate ".meson"
file types with the ".py" extension? Is there a document that describes
how to add such a new file type (or associate with it?)

If it is really just a python file then it may be enough to just
append ".meson" as to how .py files are parsed.

Not sure where the filetypes are defined; one file I found
via grep was

data/filetype_extensions.conf:Python=.py;.pyw;SConstruct;SConscript;wscript;


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.