Update build rules for CFX_CodecMemory.

It it no longer only used with BMP and GIF formats.

BUG=chromium:894325
TBR=tsepez@chromium.org

Change-Id: I6d53bf29b8b8eb37c30139f3f48ce54d77579f9f
Reviewed-on: https://pdfium-review.googlesource.com/c/43871
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index e0762c0..9ba9d89 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -736,6 +736,8 @@
     "core/fxcodec/codec/ccodec_jpxmodule.h",
     "core/fxcodec/codec/ccodec_scanlinedecoder.cpp",
     "core/fxcodec/codec/ccodec_scanlinedecoder.h",
+    "core/fxcodec/codec/cfx_codec_memory.cpp",
+    "core/fxcodec/codec/cfx_codec_memory.h",
     "core/fxcodec/codec/cjpx_decoder.h",
     "core/fxcodec/codec/codec_int.h",
     "core/fxcodec/codec/codec_module_iface.h",
@@ -830,12 +832,6 @@
       ]
       deps += [ "third_party:fx_tiff" ]
     }
-    if (pdf_enable_xfa_bmp || pdf_enable_xfa_gif) {
-      sources += [
-        "core/fxcodec/codec/cfx_codec_memory.cpp",
-        "core/fxcodec/codec/cfx_codec_memory.h",
-      ]
-    }
   }
 }