iwyu fixes

Change-Id: I2dc9218ae8c4ea51fea5f710664520a598e7c4a3
Reviewed-on: https://gerrit.libreoffice.org/21536
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Peter Foley
2016-01-17 09:40:47 -05:00
committed by Michael Stahl
parent 8633e6b3f5
commit bee5797feb

View File

@@ -23,7 +23,7 @@ iwyu_INCLUDES=$(grep -h -r ":$" ${BUILDDIR}/workdir/Dep/*Object* \
iwyu_INCLUDEDIRS=$(echo "${iwyu_INCLUDES}" | sed -e "s,/[^/]*$,," | grep -v "^include" | sort -u)
iwyu_EXTERNALS=$(ls ${SRCDIR}/*/*Library*mk ${SRCDIR}/*/*Executable*mk \
| xargs awk -f bin/gen-iwyu-dummy-lib.awk \
| xargs awk -f ${SRCDIR}/bin/gen-iwyu-dummy-lib.awk \
| grep -v '$(\|)\|tde\|expat_x64\|zlib_x64\|mozilla\|apr\|serf')
mkdir -p ${BUILDDIR}/iwyudummy
@@ -62,7 +62,7 @@ for dir in $(echo ${iwyu_INCLUDEDIRS_EXTRA} | sed -e "s/ /\n/g" | uniq) ${iwyu_I
echo "-I${SRCDIR}/${dir} \\";
done >> ${iwyu_LIB}
# it fails to find stddef.h?
echo '-I/usr/lib/clang/3.6/include \' >> ${iwyu_LIB}
echo "-I/usr/lib/clang/$(llvm-config --version)/include \\" >> ${iwyu_LIB}
echo "))" >> ${iwyu_LIB} >> ${iwyu_LIB}
echo '$(eval $(call gb_StaticLibrary__add_iwyu_headers,iwyudummy,\' >> ${iwyu_LIB}