gn: Explicitly filter posix files from mini_chromium/base Necessary for the Windows GN build. Bug: crashpad:79 Change-Id: I133ca6e1a47a92942fcd3b18ccf387b0f3bc73fe Reviewed-on: https://chromium-review.googlesource.com/812214 Reviewed-by: Mark Mentovai <mark@chromium.org>
diff --git a/base/BUILD.gn b/base/BUILD.gn index 6dac89e..85bccd2 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn
@@ -20,7 +20,6 @@ "files/file_path.cc", "files/file_path.h", "files/file_util.h", - "files/file_util_posix.cc", "files/scoped_file.cc", "files/scoped_file.h", "format_macros.h", @@ -34,9 +33,6 @@ "numerics/safe_conversions_impl.h", "numerics/safe_math.h", "numerics/safe_math_impl.h", - "posix/eintr_wrapper.h", - "posix/safe_strerror.cc", - "posix/safe_strerror.h", "process/memory.cc", "process/memory.h", "rand_util.cc", @@ -49,7 +45,6 @@ "strings/string_number_conversions.h", "strings/string_piece.h", "strings/string_util.h", - "strings/string_util_posix.h", "strings/stringprintf.cc", "strings/stringprintf.h", "strings/sys_string_conversions.h", @@ -58,20 +53,30 @@ "strings/utf_string_conversions.cc", "strings/utf_string_conversions.h", "synchronization/condition_variable.h", - "synchronization/condition_variable_posix.cc", "synchronization/lock.cc", "synchronization/lock.h", "synchronization/lock_impl.h", - "synchronization/lock_impl_posix.cc", "sys_byteorder.h", "template_util.h", "third_party/icu/icu_utf.cc", "third_party/icu/icu_utf.h", "threading/thread_local_storage.cc", "threading/thread_local_storage.h", - "threading/thread_local_storage_posix.cc", ] + if (is_posix) { + sources += [ + "files/file_util_posix.cc", + "posix/eintr_wrapper.h", + "posix/safe_strerror.cc", + "posix/safe_strerror.h", + "strings/string_util_posix.h", + "synchronization/condition_variable_posix.cc", + "synchronization/lock_impl_posix.cc", + "threading/thread_local_storage_posix.cc", + ] + } + if (is_mac) { sources += [ "atomicops_internals_mac.h",