summaryrefslogtreecommitdiff
path: root/tools/gen_scripts/gio_generate_methods.sh
blob: 4981add43b3377cc2f972bdb42af335b7c7be6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# The script assumes that it resides in the tools/gen_scripts directory and
# the defs file will be placed in gio/src.

source "$(dirname "$0")/init_generate.sh"

out_dir="$root_dir/gio/src"

shopt -s extglob # Enable extended pattern matching
shopt -s nullglob # Skip a filename pattern that matches no file
# Process files whose names end with .h, but not with private.h.
  # Exclude $source_prefix/gio/gwin32api-*.h and $build_prefix/gio/xdp-dbus.h.
"$gen_methods" "$source_prefix"/gio/!(*private|gwin32api-*).h "$build_prefix"/gio/!(*private|xdp-dbus).h > "$out_dir"/gio_methods.defs