[Github-comments] [geany/geany] Meson filetype support (#1734)

Robert A. Heiler notifications at xxxxx
Thu Feb 1 18:07:03 UTC 2018


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 or view it on GitHub:
https://github.com/geany/geany/issues/1734#issuecomment-362352158
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180201/e48425bc/attachment-0001.html>


More information about the Github-comments mailing list