Tighten up DEPS include rules.
Allows the following command to return only legitimate
warnings:
buildtools/checkdeps/checkdeps.py --resolve-dotdot
The remaining warnings consist of:
- fx_parser_filters.cpp, due to inclusion of
third_party/zlib_v128/zlib.h, showing the lack
of a header and some prototypes in that .cpp file.
- third_party/*, due to inclusion of fx_system.h and
the like, indicating adulterated libraries that should
be restored to their pristine state.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1233583004 .
diff --git a/DEPS b/DEPS
index 9283bf5..8f96330 100644
--- a/DEPS
+++ b/DEPS
@@ -31,11 +31,10 @@
}
include_rules = [
- '+core/include',
- '+fpdfsdk/include',
'+public',
'+testing',
'+third_party/base',
+ '+v8',
]
hooks = [
diff --git a/core/src/fxcodec/DEPS b/core/src/fxcodec/DEPS
new file mode 100644
index 0000000..48eaa04
--- /dev/null
+++ b/core/src/fxcodec/DEPS
@@ -0,0 +1,6 @@
+include_rules = [
+ '+third_party/lcms2-2.6',
+ '+third_party/libjpeg',
+ '+third_party/libopenjpeg20',
+ '+third_party/zlib_v128',
+]
\ No newline at end of file
diff --git a/fpdfsdk/DEPS b/fpdfsdk/DEPS
new file mode 100644
index 0000000..3e78563
--- /dev/null
+++ b/fpdfsdk/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+ '+core/include',
+ '+javascript',
+]
diff --git a/samples/DEPS b/samples/DEPS
new file mode 100644
index 0000000..cf2a702
--- /dev/null
+++ b/samples/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+ '+fx_lpng',
+ '+third_party/zlib_v128',
+]
\ No newline at end of file
diff --git a/testing/DEPS b/testing/DEPS
new file mode 100644
index 0000000..c7267d3
--- /dev/null
+++ b/testing/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+ '+core/include',
+ '+fpdfsdk/include',
+]
\ No newline at end of file