Skip to content

Commit 525db63

Browse files
clang-analyze.sh: update to meson
config.h is now in builddir/
1 parent 3521c09 commit 525db63

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

clang-analyze.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
set -e
44

55
# do not use configfile.c since it is a lex file from configfile.l
6-
if [ $# -lt 1 ]
7-
then
8-
files=$(ls -1 src/*.c | grep -v configfile | grep -v tokenparser)
9-
else
10-
files="$@"
11-
fi
12-
inc="-I. -Isrc -Isrc/PCSC -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include "
13-
opt="--analyze "
14-
15-
clang $inc $opt $files
6+
pcscd_files="src/atrhandler.c src/auth.c src/debuglog.c src/dyn_unix.c src/eventhandler.c src/hotplug_generic.c src/hotplug_libudev.c src/hotplug_libusb.c src/ifdwrapper.c src/pcscdaemon.c src/prothandler.c src/readerfactory.c src/simclist.c src/sys_unix.c src/utils.c src/winscard.c src/winscard_msg.c src/winscard_msg_srv.c src/winscard_svc.c"
7+
lib_files="src/debug.c src/winscard_clnt.c src/sys_unix.c src/utils.c src/winscard_msg.c"
8+
9+
inc="-Ibuilddir -Isrc -Isrc/PCSC -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include"
10+
opt="--analyze"
11+
12+
clang $inc -DPCSCD $opt $pcscd_files
13+
clang $inc $opt $lib_files

0 commit comments

Comments
 (0)