~vcs-imports/totem/+git/totem:wip/inigomartinez/meson-improve

Last commit made on 2018-02-21
Get this branch:
git clone -b wip/inigomartinez/meson-improve https://git.launchpad.net/~vcs-imports/totem/+git/totem

Branch merges

Branch information

Name:
wip/inigomartinez/meson-improve
Repository:
lp:~vcs-imports/totem/+git/totem

Recent commits

fe1584b... by Iñigo Martínez

build: Improve documentation generation

Some of the parameters used in documentation generation are
duplicated because many of them are already added by meson.

The `src` directory is the only one that has been left as there is
no need for the rest.

The references has also been fixed by using the proper path.

b265c00... by Iñigo Martínez

build: Remove Makefile.plugins file

The Makefile.plugins belongs to autotools which was already removed.

It also contained a procedure to check python files. This has also
been added to meson with `check_python` target name.

f0c7703... by Iñigo Martínez

build: Do not use a variable for python3 module

The python3 module is used in meson only to check that a recent
version is available, so there is no need to store the module in a
variable for any other use.

e0ec352... by Iñigo Martínez

build: Check D-Bus session bus services directory

Totem install a session bus service file. This file is installed in
the `dbus-1/services` directory under `datadir`. However, the real
directory can be checked from the `dbus-1.pc` pkg-config file.

A new option has also been added to set as a different session bus
services directory, so the user can install the file in it.

740669b... by Iñigo Martínez

plugins: Migrate plugins from Intltool to Gettext

This patch migrates plugins files from Intltool to Gettext by using
meson's i18n features. However, the migration has workarounds for
two issues.

The first issue lies in the fact that, even though the `plugin` uses
the Desktop entry specification[0], it is not recongnized as such by
gettext because it uses the file extension to detect the supported
files.

The second issue resides in the translatable entries used by the
`plugin` files: `Name` and `Description`. Although `Name` is part
of the default keyworks, `Description` is not.

As a workaround for these problems, the files has been renamed to
include the `desktop` extension, which helps gettext detecting
the `plugin` files. After the translation merge process they are
renamed to their right name without the `desktop` extension.

The default procedure to extract the translatable strings and
merge them has also been changed. New targets have been included
to generate the `pot` file and merge the translations.

[0] https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

47eaa20... by Iñigo Martínez

build: Use template files for enums generation

The data contents for the enum related files are stored in the
build files.

This patch moves this information to template files to be used
along with glib-mkenums.

c5e1816... by Iñigo Martínez

build: Improve plugins build files

The build files involved on plugins building and installation have
been improved. The description `plugin` file of each plugin is
created now at the `src/plugin` directory that simplifies the
build commands.

All dependencies has also been revised. Redundant dependencies have
been removed. Common dependencies, compiler arguments and included
directories have been now grouped under the same dependency.

Following the `subdir` -> `plugin name ` pattern, the `properties`
directory has been renamed to `movie-properties`. The `im-status`
plugin files have also been renamed to remove the `totem-` prefix.

Now, only the plugins passed from the command line are checked
because those are the ones that can only be error prone.

60ea942... by Iñigo Martínez

build: Reformat src build file

Changed `src` build file to fit to better meson formatting.

All dependencies has also been revised. Redundant dependencies have
been removed.

A comment has also been added regarding introspection support
because it is not optional in its current state.

The `exec_prefix` pkg-config variable has also been fixed.

Finally the introspection GIR file generation has also been
improved by using recent meson build parameters.

8728e98... by Iñigo Martínez

build: Reformat properties build file

Changed `properties` build file to fit to better meson formatting.
The library name has also been fixed by removing the `lib` prefix.

The `gtk+` library dependency has also been added to the properties
internal dependency.

8ec9ba3... by Iñigo Martínez

build: Improve backend build

The backend build is creating different variables that are used only
once, so the common variables can be reused.

The `libbaconvideowidget` dependency also needs to reference the
created enum header and the `clutter-gtk` library so they both have
been added.

The compiler flags and dependencies of `bvw-test` have also been
revised.