diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/libcamera/gen-header.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libcamera/gen-header.sh b/include/libcamera/gen-header.sh index 7f7816c9..fcb9c5e1 100755 --- a/include/libcamera/gen-header.sh +++ b/include/libcamera/gen-header.sh @@ -16,10 +16,11 @@ cat <<EOF > "$dst_file" EOF -headers=$(for header in "$src_dir"/*.h ; do +headers=$(for header in "$src_dir"/*.h "$src_dir"/*.h.in ; do header=$(basename "$header") + header="${header%.in}" echo "$header" -done ; echo "control_ids.h" ; echo "version.h" | sort) +done | sort) for header in $headers ; do echo "#include <libcamera/$header>" >> "$dst_file" |