Make constants/ pass gn check.

Change-Id: I1104d5c3c63dbf9f2f286797db842d30c75e2718
Reviewed-on: https://pdfium-review.googlesource.com/c/44077
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/.gn b/.gn
index 1327f27..d18f4fd 100644
--- a/.gn
+++ b/.gn
@@ -20,6 +20,7 @@
   ":pdfium",
   ":pdfium_embeddertests",
   ":pdfium_unittests",
+  "//constants/*",
   "//core/*",
   "//fpdfsdk/*",
   "//fxbarcode/*",
diff --git a/constants/BUILD.gn b/constants/BUILD.gn
index 7860539..25a574e 100644
--- a/constants/BUILD.gn
+++ b/constants/BUILD.gn
@@ -7,9 +7,9 @@
 
 jumbo_source_set("constants") {
   sources = [
-    "constants/form_flags.h",
-    "constants/page_object.h",
-    "constants/stream_dict_common.h",
-    "constants/transparency.h",
+    "form_flags.h",
+    "page_object.h",
+    "stream_dict_common.h",
+    "transparency.h",
   ]
 }
diff --git a/core/fpdfapi/edit/BUILD.gn b/core/fpdfapi/edit/BUILD.gn
index ff127a9..2ef5fd9 100644
--- a/core/fpdfapi/edit/BUILD.gn
+++ b/core/fpdfapi/edit/BUILD.gn
@@ -23,6 +23,7 @@
   ]
   configs += [ "../../../:pdfium_core_config" ]
   deps = [
+    "../../../constants",
     "../../../third_party:skia_shared",
     "../../fxcrt",
     "../font",
diff --git a/core/fpdfapi/page/BUILD.gn b/core/fpdfapi/page/BUILD.gn
index 7855dc1..3778ff6 100644
--- a/core/fpdfapi/page/BUILD.gn
+++ b/core/fpdfapi/page/BUILD.gn
@@ -93,6 +93,7 @@
   ]
   configs += [ "../../../:pdfium_core_config" ]
   deps = [
+    "../../../constants",
     "../../fdrm",
     "../../fxcodec",
     "../../fxcrt",
diff --git a/core/fpdfapi/parser/BUILD.gn b/core/fpdfapi/parser/BUILD.gn
index 45035b3..bc7769f 100644
--- a/core/fpdfapi/parser/BUILD.gn
+++ b/core/fpdfapi/parser/BUILD.gn
@@ -73,6 +73,7 @@
   ]
   configs += [ "../../../:pdfium_core_config" ]
   deps = [
+    "../../../constants",
     "../../fdrm",
     "../../fxcodec",
     "../../fxcrt",
@@ -107,6 +108,7 @@
   deps = [
     ":parser",
     "../",
+    "../../../constants",
   ]
   pdfium_root_dir = "../../../"
 
diff --git a/core/fpdfapi/render/BUILD.gn b/core/fpdfapi/render/BUILD.gn
index 1166907..da00905 100644
--- a/core/fpdfapi/render/BUILD.gn
+++ b/core/fpdfapi/render/BUILD.gn
@@ -49,6 +49,7 @@
   ]
   configs += [ "../../../:pdfium_core_config" ]
   deps = [
+    "../../../constants",
     "../../fxcodec",
     "../../fxcrt",
     "../../fxge",
diff --git a/core/fpdfdoc/BUILD.gn b/core/fpdfdoc/BUILD.gn
index e243823..b977d35 100644
--- a/core/fpdfdoc/BUILD.gn
+++ b/core/fpdfdoc/BUILD.gn
@@ -85,6 +85,7 @@
   ]
   configs += [ "../../:pdfium_core_config" ]
   deps = [
+    "../../constants",
     "../fpdfapi/font",
     "../fpdfapi/page",
     "../fpdfapi/parser",
diff --git a/fpdfsdk/BUILD.gn b/fpdfsdk/BUILD.gn
index 1759ccf..ea44f0d 100644
--- a/fpdfsdk/BUILD.gn
+++ b/fpdfsdk/BUILD.gn
@@ -53,6 +53,7 @@
   configs += [ "../:pdfium_core_config" ]
   deps = [
     "../:pdfium_public_headers",
+    "../constants",
     "../core/fpdfapi",
     "../core/fpdfapi/page",
     "../core/fpdfapi/parser",