1
0
Fork 0

Include the pkgconfig-specified gdesktop-enums.h

Instead of blindly hoping that `$INCLUDE` contains the parent directory
of `gsettings-desktop-schemas`.

Because `gsettings-desktop-schemas.pc` says:
```
Cflags: -I/SOME/DIRECTORY/gsettings-desktop-schemas
```
Which means to include the version that Meson has configured you need
to drop the directory prefix and only `#include <gdesktop-enums.h>`.

This fixes a build failure with local installs triggered by 775ec67a44
but it's also the right thing to do™.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1370
This commit is contained in:
Daniel van Vugt 2020-07-13 17:11:34 +08:00
parent 1faba58ccc
commit 7658e07beb
4 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@
#ifndef META_INPUT_SETTINGS_PRIVATE_H
#define META_INPUT_SETTINGS_PRIVATE_H
#include <gsettings-desktop-schemas/gdesktop-enums.h>
#include <gdesktop-enums.h>
#ifdef HAVE_LIBWACOM
#include <libwacom/libwacom.h>

View file

@ -21,7 +21,7 @@
#ifndef META_BACKGROUND_ACTOR_H
#define META_BACKGROUND_ACTOR_H
#include <gsettings-desktop-schemas/gdesktop-enums.h>
#include <gdesktop-enums.h>
#include "clutter/clutter.h"
#include "meta/meta-background.h"

View file

@ -21,7 +21,7 @@
#ifndef META_BACKGROUND_CONTENT_H
#define META_BACKGROUND_CONTENT_H
#include <gsettings-desktop-schemas/gdesktop-enums.h>
#include <gdesktop-enums.h>
#include "clutter/clutter.h"
#include "meta/meta-background.h"

View file

@ -21,7 +21,7 @@
#ifndef META_BACKGROUND_H
#define META_BACKGROUND_H
#include <gsettings-desktop-schemas/gdesktop-enums.h>
#include <gdesktop-enums.h>
#include "clutter/clutter.h"
#include "meta/display.h"