Skip to content

Commit 588ffe1

Browse files
committed
build: Don't install glib-backports.h or pass it to GObject-Introspection
This is a backport of (a subset of) GLib's API, rather than being part of *our* API. If dependent projects need newer GLib API, they should have a newer GLib dependency or include their own backports. Signed-off-by: Simon McVittie <[email protected]>
1 parent 3252505 commit 588ffe1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

libportal/meson.build

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ generated_files = []
22
version = '1.0.0'
33
gir_version = '1.0'
44

5-
headers = [
5+
public_headers = [
66
'portal.h',
77
'portal-helpers.h',
88
'account.h',
@@ -11,7 +11,6 @@ headers = [
1111
'dynamic-launcher.h',
1212
'email.h',
1313
'filechooser.h',
14-
'glib-backports.h',
1514
'inhibit.h',
1615
'inputcapture.h',
1716
'inputcapture-zone.h',
@@ -33,7 +32,7 @@ headers = [
3332
]
3433

3534
portal_enums = gnome.mkenums('portal-enums',
36-
sources: headers,
35+
sources: public_headers,
3736
c_template: 'portal-enums.c.template',
3837
h_template: 'portal-enums.h.template',
3938
install_dir: join_paths (get_option('includedir'), 'libportal'),
@@ -72,7 +71,7 @@ src = [
7271
gio_dep = dependency('gio-2.0', version: '>= 2.72')
7372
gio_unix_dep = dependency('gio-unix-2.0')
7473

75-
install_headers(headers, subdir: 'libportal')
74+
install_headers(public_headers, subdir: 'libportal')
7675

7776
libportal = library('portal',
7877
src,
@@ -98,7 +97,7 @@ libportal_dep = declare_dependency(
9897

9998
if introspection
10099
libportal_gir = gnome.generate_gir(libportal,
101-
sources: generated_files + headers + src,
100+
sources: generated_files + public_headers + src,
102101
nsversion: gir_version,
103102
namespace: 'Xdp',
104103
symbol_prefix: 'xdp',

0 commit comments

Comments
 (0)