aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-05 16:50:27 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-05-05 17:33:29 +0200
commitc5865c50c444912afd92c2feb94d8739874a62b2 (patch)
tree8bfe4c23428c74d9ac220e1b457b79a17220a710 /mesonbuild/modules/gnome.py
parent45aa57f66055510616eb765de6e68a7cb59ecacf (diff)
downloadmeson-c5865c50c444912afd92c2feb94d8739874a62b2.zip
meson-c5865c50c444912afd92c2feb94d8739874a62b2.tar.gz
meson-c5865c50c444912afd92c2feb94d8739874a62b2.tar.bz2
gnome: Use the header basename for #include in mkenums_simple
Otherwise, when you use a File target, the value will be the full path to the header from the build root, which is not what anyone wants.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 84943dc..12f6412 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1128,7 +1128,7 @@ This will become a hard error in the future.''')
fhead += '%s\n' % body_prefix
fhead += '#include "%s"\n' % hdr_filename
for hdr in sources:
- fhead += '#include "%s"\n' % hdr
+ fhead += '#include "%s"\n' % os.path.basename(str(hdr))
fhead += '''
#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)