This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

This page is WIP! - KrzesimirNowak

Overview

gmmproc is a tool used for creating c++ source codes from templates. The whole process has two stages:

  1. Generating defs files and xml documentation of a wrapped C library - done by user.
  2. Generating source code using template, defs and xml documentation - done by gmmproc.

I'm using two names on this page:

Comments?

Problems with gmmproc

These are not written in order of importance.

  1. The second stage of generation is run per file. That means that defs and xml are parsed again and again, when they could be parsed once.
  2. Gmmproc now uses perl and m4. Their interdependence causes adding features to be a hard task.
  3. Defs file are not perfect - they are not always correct and does not contain all needed information.
  4. To generate defs file several third-party tools need to be used and some have to be written by hand.
  5. Docs parser sometimes has problems with converting xml documentation to doxygen comments.
  6. ...?

Comments?

What we want from mm-proc

  1. Easy extensibility.
  2. Use information gir files gives.
  3. Instead of generating defs (.gir) it would be better to maybe download it?
  4. ...?

Rewrite

Two stage process:

  1. Rework defs and xml parser to use gir files. Xml documentation file would stay, because gir contains all information about C API, but not all documentation.
  2. Rewrite gmmproc itself to use only one language - perl or python.

Comments?

Loose thoughts

TODO

  1. Find out what else is wrong with current gmmproc, so we could have that in mind while designing new generator.
  2. Find out what else we want from rewritten mm-proc, which gmmproc does not have.

2024-10-23 11:37