v8/benchmarks \
v8/src/arm \
v8/src/d8* \
+ third_party/chromite \
android_webview \
ash/resources/default_100_percent/cros_ \
ash/resources/default_200_percent/cros_ \
\! -path 'third_party/sfntly/*' \
\! -path 'third_party/skia/*' \
\! -path 'third_party/smhasher/*' \
- \! -path 'third_party/sqlite/*' \
+ \! -path 'third_party/sqlite/amalgamation/*' \
+ \! -path 'third_party/sqlite/sqlite3.h' \
+ \! -path 'third_party/sqlite/src/ext/*' \
\! -path 'third_party/tcmalloc/*' \
\! -path 'third_party/trace-viewer/*' \
\! -path 'third_party/undoview/*' \
third_party/protobuf \
third_party/re2 \
third_party/speex \
+ third_party/sqlite \
third_party/yasm \
third_party/zlib \
v8 \
> REMOVED-system_dirs.txt
+if [ "${sqlite:-1}" = 1 ]; then
+ # some code does not pass -DUSE_SYSTEM_SQLITE properly
+ ln -sf /usr/include/sqlite3.h third_party/sqlite/sqlite3.h
+fi
+
clean_third_party > REMOVED-third_party.txt
if [ "${v8:-1}" != "0" ]; then