| Index: build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
|
| diff --git a/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn b/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..904fa5436321a287e1c002ca5b986aaf7b51ebde
|
| --- /dev/null
|
| +++ b/build/secondary/third_party/crashpad/crashpad/compat/BUILD.gn
|
| @@ -0,0 +1,58 @@
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +config("compat_config") {
|
| + if (is_win) {
|
| + include_dirs = [ "win" ]
|
| + } else if (is_mac) {
|
| + include_dirs = [ "mac" ]
|
| + }
|
| +}
|
| +
|
| +source_set("compat") {
|
| + sources = []
|
| + if (is_mac) {
|
| + sources += [
|
| + "mac/AvailabilityMacros.h",
|
| + "mac/kern/exc_resource.h",
|
| + "mac/mach-o/getsect.cc",
|
| + "mac/mach-o/getsect.h",
|
| + "mac/mach-o/loader.h",
|
| + "mac/mach/mach.h",
|
| + "mac/sys/resource.h",
|
| + ]
|
| + } else {
|
| + sources += [ "non_mac/mach/mach.h" ]
|
| + }
|
| +
|
| + if (is_win) {
|
| + sources += [
|
| + "win/getopt.h",
|
| + "win/strings.cc",
|
| + "win/strings.h",
|
| + "win/sys/types.h",
|
| + "win/time.cc",
|
| + "win/time.h",
|
| + "win/winnt.h",
|
| + ]
|
| + } else {
|
| + sources += [
|
| + "non_win/dbghelp.h",
|
| + "non_win/minwinbase.h",
|
| + "non_win/timezoneapi.h",
|
| + "non_win/verrsrc.h",
|
| + "non_win/windows.h",
|
| + "non_win/winnt.h",
|
| + ]
|
| + }
|
| +
|
| + public_configs = [ ":compat_config" ]
|
| +
|
| + deps = []
|
| + if (is_mac) {
|
| + deps += [ "//third_party/crashpad/crashpad/third_party/apple_cctools" ]
|
| + } else if (is_win) {
|
| + deps += [ "//third_party/crashpad/crashpad/third_party/getopt" ]
|
| + }
|
| +}
|
|
|