File: gdk_generate_methods.sh

package info (click to toggle)
gtkmm3.0 3.24.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,820 kB
  • sloc: xml: 121,513; cpp: 8,659; makefile: 286; sh: 203; python: 6
file content (19 lines) | stat: -rwxr-xr-x 867 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

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

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

out_dir="$root_dir/gdk/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 gtk+-3/gdk/gdkinternals.h.
"$gen_methods" "$gtk_source_prefix"/gdk/!(*private|gdkinternals).h "$gtk_source_prefix"/gdk/deprecated/!(*private).h > "$out_dir"/gdk_methods.defs
if [ "$gtk_build_prefix" != "$gtk_source_prefix" ]; then
  "$gen_methods" "$gtk_build_prefix"/gdk/*.h >> "$out_dir"/gdk_methods.defs
fi
"$gen_methods" "$pixbuf_source_prefix"/gdk-pixbuf/gdk!(*private).h \
               "$pixbuf_build_prefix"/gdk-pixbuf/*.h > "$out_dir"/gdk_pixbuf_methods.defs