* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
diff --git a/libgnome-desktop/meson.build b/libgnome-desktop/meson.build
|
|
index c365b44..33af6f4 100644
|
|
--- a/libgnome-desktop/meson.build
|
|
+++ b/libgnome-desktop/meson.build
|
|
@@ -96,17 +96,19 @@ libgnome_desktop_dep = declare_dependency(
|
|
link_with: libgnome_desktop
|
|
)
|
|
|
|
-gnome.generate_gir(libgnome_desktop,
|
|
- sources: introspection_sources + libgnome_desktop_headers,
|
|
- export_packages: 'gnome-desktop-3.0',
|
|
- namespace: 'GnomeDesktop',
|
|
- nsversion: '3.0',
|
|
- includes: ['GObject-2.0', 'Gtk-3.0', 'GDesktopEnums-3.0'],
|
|
- extra_args: '-DGNOME_DESKTOP_USE_UNSTABLE_API',
|
|
- identifier_prefix: 'Gnome',
|
|
- symbol_prefix: 'gnome',
|
|
- install: true
|
|
-)
|
|
+if get_option('introspection')
|
|
+ gnome.generate_gir(libgnome_desktop,
|
|
+ sources: introspection_sources + libgnome_desktop_headers,
|
|
+ export_packages: 'gnome-desktop-3.0',
|
|
+ namespace: 'GnomeDesktop',
|
|
+ nsversion: '3.0',
|
|
+ includes: ['GObject-2.0', 'Gtk-3.0', 'GDesktopEnums-3.0'],
|
|
+ extra_args: '-DGNOME_DESKTOP_USE_UNSTABLE_API',
|
|
+ identifier_prefix: 'Gnome',
|
|
+ symbol_prefix: 'gnome',
|
|
+ install: true
|
|
+ )
|
|
+endif
|
|
|
|
desktop_pc = pkg.generate(
|
|
libraries: libgnome_desktop,
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
index e3402a1..1dbaf5d 100644
|
|
--- a/meson_options.txt
|
|
+++ b/meson_options.txt
|
|
@@ -28,3 +28,7 @@ option('gtk_doc',
|
|
option('installed_tests',
|
|
type: 'boolean', value: false, description: 'Enable installed tests'
|
|
)
|
|
+
|
|
+option('introspection',
|
|
+ type: 'boolean', value: false, description: 'Build GIR data'
|
|
+)
|