summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-07-25 17:35:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-25 17:35:19 +0000
commit8481c71db0e3abed7bd12669116b223a65bebbb4 (patch)
tree9330a14cfba4a3aaf83870b4803e2ecd0ccacd82 /BUILD.gn
parent5b322338073162afab98bb28c920692c73b995ed (diff)
downloadpdfium-8481c71db0e3abed7bd12669116b223a65bebbb4.tar.xz
Only build cfx_fileaccess_windows.cpp on Windows.
- Remove #if guards in the .cpp file and flip the #if guard in the header to produce an error when incorrectly included. - Do the same for cfx_fileaccess_posix.cpp. - Also remove forward declarations for win32 APIs. Change-Id: I81056ea6198d342e62744bd3240b3a28ac53d5c0 Reviewed-on: https://pdfium-review.googlesource.com/38410 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn8
1 files changed, 6 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 85e819fab4..09cf28597c 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_windows.cpp",
- "core/fxcrt/cfx_fileaccess_windows.h",
"core/fxcrt/cfx_fixedbufgrow.h",
"core/fxcrt/cfx_memorystream.cpp",
"core/fxcrt/cfx_memorystream.h",
@@ -934,6 +932,12 @@ jumbo_static_library("fxcrt") {
"core/fxcrt/cfx_fileaccess_posix.h",
]
}
+ if (is_win) {
+ sources += [
+ "core/fxcrt/cfx_fileaccess_windows.cpp",
+ "core/fxcrt/cfx_fileaccess_windows.h",
+ ]
+ }
if (pdf_enable_xfa) {
sources += [
"core/fxcrt/cfx_char.cpp",