summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn9
1 files changed, 6 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 16eaffd785..135d392e0c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -854,8 +854,6 @@ jumbo_static_library("fxcrt") {
"core/fxcrt/cfx_bitstream.h",
"core/fxcrt/cfx_datetime.cpp",
"core/fxcrt/cfx_datetime.h",
- "core/fxcrt/cfx_fileaccess_posix.cpp",
- "core/fxcrt/cfx_fileaccess_posix.h",
"core/fxcrt/cfx_fileaccess_windows.cpp",
"core/fxcrt/cfx_fileaccess_windows.h",
"core/fxcrt/cfx_fixedbufgrow.h",
@@ -930,7 +928,12 @@ jumbo_static_library("fxcrt") {
"third_party:pdfium_base",
"//third_party/icu:icuuc",
]
-
+ if (is_posix || is_fuchsia) {
+ sources += [
+ "core/fxcrt/cfx_fileaccess_posix.cpp",
+ "core/fxcrt/cfx_fileaccess_posix.h",
+ ]
+ }
if (pdf_enable_xfa) {
sources += [
"core/fxcrt/cfx_char.cpp",