Make CFX_MemoryStream XFA-only.

Change-Id: Ie22e20599cef77e2f1e08c4295036e6cc8e3c0eb
Reviewed-on: https://pdfium-review.googlesource.com/c/48930
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcrt/BUILD.gn b/core/fxcrt/BUILD.gn
index ce80606..400ab35 100644
--- a/core/fxcrt/BUILD.gn
+++ b/core/fxcrt/BUILD.gn
@@ -18,8 +18,6 @@
     "cfx_datetime.cpp",
     "cfx_datetime.h",
     "cfx_fixedbufgrow.h",
-    "cfx_memorystream.cpp",
-    "cfx_memorystream.h",
     "cfx_readonlymemorystream.cpp",
     "cfx_readonlymemorystream.h",
     "cfx_seekablestreamproxy.cpp",
@@ -116,6 +114,12 @@
       "cfx_fileaccess_windows.h",
     ]
   }
+  if (pdf_enable_xfa) {
+    sources += [
+      "cfx_memorystream.cpp",
+      "cfx_memorystream.h",
+    ]
+  }
 }
 
 if (pdf_enable_xfa) {
@@ -138,7 +142,6 @@
     "autorestorer_unittest.cpp",
     "bytestring_unittest.cpp",
     "cfx_bitstream_unittest.cpp",
-    "cfx_memorystream_unittest.cpp",
     "cfx_widetextbuf_unittest.cpp",
     "fx_bidi_unittest.cpp",
     "fx_coordinates_unittest.cpp",
@@ -170,6 +173,7 @@
 
   if (pdf_enable_xfa) {
     sources += [
+      "cfx_memorystream_unittest.cpp",
       "cfx_seekablemultistream_unittest.cpp",
       "css/cfx_cssdeclaration_unittest.cpp",
       "css/cfx_cssstylesheet_unittest.cpp",