[gtkmm] tools/gen_scripts: Read only gdk*.h and gtk*.h files
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] tools/gen_scripts: Read only gdk*.h and gtk*.h files
- Date: Thu, 2 Jul 2020 10:47:58 +0000 (UTC)
commit 1d3b509c95ed9db2b2dfd2be2bf8c5754ce2477c
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Jul 2 12:35:47 2020 +0200
tools/gen_scripts: Read only gdk*.h and gtk*.h files
Generate .defs files only from gdk-pixbuf and gtk header files with names
that start with gdk or gtk.
The new file gtk/roaring.h contains lots of functions. They are all
internal gtk functions.
tools/gen_scripts/gdk_generate_enums.sh | 8 ++++----
tools/gen_scripts/gdk_generate_methods.sh | 8 ++++----
tools/gen_scripts/gtk_generate_enums.sh | 12 ++++++------
tools/gen_scripts/gtk_generate_methods.sh | 12 ++++++------
4 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/tools/gen_scripts/gdk_generate_enums.sh b/tools/gen_scripts/gdk_generate_enums.sh
index 88db534b..ddd0b11a 100755
--- a/tools/gen_scripts/gdk_generate_enums.sh
+++ b/tools/gen_scripts/gdk_generate_enums.sh
@@ -9,9 +9,9 @@ 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.
+# Process files whose names start with gdk and end with .h, but not with private.h.
# Exclude gtk+/gdk/gdkinternals.h.
-"$gen_enums" "$gtk_source_prefix"/gdk/!(*private|gdkinternals).h
"$gtk_source_prefix"/gdk/deprecated/!(*private).h \
- "$gtk_build_prefix"/gdk/*.h > "$out_dir"/gdk_enums.defs
+"$gen_enums" "$gtk_source_prefix"/gdk/gdk!(*private|internals).h
"$gtk_source_prefix"/gdk/deprecated/!(*private).h \
+ "$gtk_build_prefix"/gdk/gdk*.h > "$out_dir"/gdk_enums.defs
"$gen_enums" "$pixbuf_source_prefix"/gdk-pixbuf/gdk!(*private).h \
- "$pixbuf_build_prefix"/gdk-pixbuf/*.h > "$out_dir"/gdk_pixbuf_enums.defs
+ "$pixbuf_build_prefix"/gdk-pixbuf/gdk*.h > "$out_dir"/gdk_pixbuf_enums.defs
diff --git a/tools/gen_scripts/gdk_generate_methods.sh b/tools/gen_scripts/gdk_generate_methods.sh
index 8160fd51..1edaff8d 100755
--- a/tools/gen_scripts/gdk_generate_methods.sh
+++ b/tools/gen_scripts/gdk_generate_methods.sh
@@ -24,12 +24,12 @@ shopt -s extglob # Enable extended pattern matching
shopt -s nullglob # Skip a filename pattern that matches no file
if [ $# -eq 0 ]
then
- # Process files whose names end with .h, but not with private.h.
+ # Process files whose names start with gdk and end with .h, but not with private.h.
# Exclude gtk+/gdk/gdkinternals.h.
- "$gen_methods" "$gtk_source_prefix"/gdk/!(*private|gdkinternals).h
"$gtk_source_prefix"/gdk/deprecated/!(*private).h \
- "$gtk_build_prefix"/gdk/*.h > "$out_dir"/gdk_methods.defs
+ "$gen_methods" "$gtk_source_prefix"/gdk/gdk!(*private|internals).h
"$gtk_source_prefix"/gdk/deprecated/!(*private).h \
+ "$gtk_build_prefix"/gdk/gdk*.h > "$out_dir"/gdk_methods.defs
"$gen_methods" "$pixbuf_source_prefix"/gdk-pixbuf/gdk!(*private).h \
- "$pixbuf_build_prefix"/gdk-pixbuf/*.h > "$out_dir"/gdk_pixbuf_methods.defs
+ "$pixbuf_build_prefix"/gdk-pixbuf/gdk*.h > "$out_dir"/gdk_pixbuf_methods.defs
# patch version 2.7.5 does not like directory names.
cd "$out_dir"
patch_options="--backup --version-control=simple --suffix=.orig"
diff --git a/tools/gen_scripts/gtk_generate_enums.sh b/tools/gen_scripts/gtk_generate_enums.sh
index 2d04e515..d038990e 100755
--- a/tools/gen_scripts/gtk_generate_enums.sh
+++ b/tools/gen_scripts/gtk_generate_enums.sh
@@ -9,9 +9,9 @@ out_dir="$root_dir/gtk/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.
-"$gen_enums" "$gtk_source_prefix"/gtk/!(*private).h \
- "$gtk_source_prefix"/gtk/css/!(*private).h \
- "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
- "$gtk_build_prefix"/gtk/*.h \
- "$gtk_build_prefix"/gtk/css/*.h > "$out_dir"/gtk_enums.defs
+# Process files whose names start with gtk and end with .h, but not with private.h.
+"$gen_enums" "$gtk_source_prefix"/gtk/gtk!(*private).h \
+ "$gtk_source_prefix"/gtk/css/gtk!(*private).h \
+ "$gtk_source_prefix"/gtk/deprecated/gtk!(*private).h \
+ "$gtk_build_prefix"/gtk/gtk*.h \
+ "$gtk_build_prefix"/gtk/css/gtk*.h > "$out_dir"/gtk_enums.defs
diff --git a/tools/gen_scripts/gtk_generate_methods.sh b/tools/gen_scripts/gtk_generate_methods.sh
index 27cea78b..caa26034 100755
--- a/tools/gen_scripts/gtk_generate_methods.sh
+++ b/tools/gen_scripts/gtk_generate_methods.sh
@@ -9,9 +9,9 @@ out_dir="$root_dir/gtk/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.
-"$gen_methods" "$gtk_source_prefix"/gtk/!(*private).h \
- "$gtk_source_prefix"/gtk/css/!(*private).h \
- "$gtk_source_prefix"/gtk/deprecated/!(*private).h \
- "$gtk_build_prefix"/gtk/*.h \
- "$gtk_build_prefix"/gtk/css/*.h > "$out_dir"/gtk_methods.defs
+# Process files whose names start with gtk and end with .h, but not with private.h.
+"$gen_methods" "$gtk_source_prefix"/gtk/gtk!(*private).h \
+ "$gtk_source_prefix"/gtk/css/gtk!(*private).h \
+ "$gtk_source_prefix"/gtk/deprecated/gtk!(*private).h \
+ "$gtk_build_prefix"/gtk/gtk*.h \
+ "$gtk_build_prefix"/gtk/css/gtk*.h > "$out_dir"/gtk_methods.defs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]