mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 06:08:38 +00:00
dumpjson: initial commit
This commit is contained in:
parent
1458f4b4c9
commit
c6c8a4dbb7
28
cmd/dumpjson/dumpjson.sh
Executable file
28
cmd/dumpjson/dumpjson.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Makes a very large amount of data
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
QT_DIR=/usr/include/x86_64-linux-gnu/qt5/
|
||||||
|
|
||||||
|
main() {
|
||||||
|
if [[ -d jsonfiles ]] ; then
|
||||||
|
rm -fr ./jsonfiles
|
||||||
|
fi
|
||||||
|
mkdir ./jsonfiles
|
||||||
|
|
||||||
|
for package in QtWidgets QtCore QtGui ; do
|
||||||
|
|
||||||
|
mkdir ./jsonfiles/${package}
|
||||||
|
|
||||||
|
for f in ${QT_DIR}/${package}/*.h ; do
|
||||||
|
echo "Processing file '$f'..."
|
||||||
|
clang -x c++ $(pkg-config --cflags Qt5Widgets) -Xclang -ast-dump=json -fsyntax-only "$f" \
|
||||||
|
| gzip --best \
|
||||||
|
> jsonfiles/${package}/$(basename "$f").json.gz
|
||||||
|
done
|
||||||
|
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
Loading…
Reference in New Issue
Block a user