Fix incorrect CPDFSDK_PageView::CountAnnots().
[pdfium.git] / BUILD.gn
index 4d100d1..abd189b 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -61,7 +61,6 @@ static_library("pdfium") {
     "fpdfsdk/src/fpdfformfill.cpp",
     "fpdfsdk/src/fpdfppo.cpp",
     "fpdfsdk/src/fpdfsave.cpp",
-    "fpdfsdk/src/fpdfsdkdll.rc",
     "fpdfsdk/src/fpdftext.cpp",
     "fpdfsdk/src/fpdfview.cpp",
     "fpdfsdk/src/fsdk_actionhandler.cpp",
@@ -70,7 +69,6 @@ static_library("pdfium") {
     "fpdfsdk/src/fsdk_baseform.cpp",
     "fpdfsdk/src/fsdk_mgr.cpp",
     "fpdfsdk/src/fsdk_rendercontext.cpp",
-    "fpdfsdk/src/resource.h",
     "public/fpdf_dataavail.h",
     "public/fpdf_doc.h",
     "public/fpdf_edit.h",
@@ -554,9 +552,11 @@ static_library("fxge") {
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [
-    ":fxge_warnings",
     ":pdfium_config",
     "//build/config/compiler:no_chromium_code",
+    # As of this writing, this needs to be last to suppress a -Wswitch warning.
+    # https://crbug.com/547906
+    ":fxge_warnings",
   ]
 
   if (pdf_use_skia) {