2017-11-17 17:48:22 -08:00
|
|
|
|
# Copyright 2015 The Crashpad Authors. All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
2017-12-19 15:31:04 -08:00
|
|
|
|
import("../build/crashpad_buildconfig.gni")
|
|
|
|
|
|
2020-07-07 23:26:07 -04:00
|
|
|
|
if (crashpad_is_in_chromium) {
|
|
|
|
|
# Prevent Chromium source assignment filters from being inherited.
|
|
|
|
|
set_sources_assignment_filter([])
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-17 17:48:22 -08:00
|
|
|
|
source_set("tool_support") {
|
|
|
|
|
sources = [
|
|
|
|
|
"tool_support.cc",
|
|
|
|
|
"tool_support.h",
|
|
|
|
|
]
|
|
|
|
|
|
2017-11-28 10:31:13 -08:00
|
|
|
|
public_configs = [ "..:crashpad_config" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
2020-01-23 08:00:33 -05:00
|
|
|
|
deps = [ "../third_party/mini_chromium:base" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
}
|
|
|
|
|
|
2020-02-18 14:49:10 -05:00
|
|
|
|
if (!crashpad_is_ios) {
|
|
|
|
|
crashpad_executable("crashpad_database_util") {
|
|
|
|
|
sources = [ "crashpad_database_util.cc" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
2020-02-18 14:49:10 -05:00
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
|
|
|
|
"../build:default_exe_manifest_win",
|
|
|
|
|
"../client",
|
|
|
|
|
"../compat",
|
|
|
|
|
"../third_party/mini_chromium:base",
|
|
|
|
|
"../util",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
2020-02-18 14:49:10 -05:00
|
|
|
|
crashpad_executable("crashpad_http_upload") {
|
|
|
|
|
sources = [ "crashpad_http_upload.cc" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
2020-02-18 14:49:10 -05:00
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
|
|
|
|
"../build:default_exe_manifest_win",
|
|
|
|
|
"../compat",
|
|
|
|
|
"../third_party/mini_chromium:base",
|
|
|
|
|
"../util",
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-11-17 17:48:22 -08:00
|
|
|
|
}
|
|
|
|
|
|
2019-12-18 11:33:39 -08:00
|
|
|
|
crashpad_executable("base94_encoder") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "base94_encoder.cc" ]
|
2019-12-18 11:33:39 -08:00
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
|
|
|
|
"../build:default_exe_manifest_win",
|
|
|
|
|
"../third_party/mini_chromium:base",
|
|
|
|
|
"../util",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-18 14:49:10 -05:00
|
|
|
|
if (!crashpad_is_fuchsia && !crashpad_is_ios) {
|
2019-07-31 01:22:27 -04:00
|
|
|
|
crashpad_executable("generate_dump") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "generate_dump.cc" ]
|
2019-07-31 01:22:27 -04:00
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
|
|
|
|
"../build:default_exe_manifest_win",
|
|
|
|
|
"../compat",
|
|
|
|
|
"../minidump",
|
|
|
|
|
"../snapshot",
|
|
|
|
|
"../third_party/mini_chromium:base",
|
|
|
|
|
"../util",
|
2017-11-17 17:48:22 -08:00
|
|
|
|
]
|
|
|
|
|
|
2019-07-31 01:22:27 -04:00
|
|
|
|
if (crashpad_is_mac) {
|
|
|
|
|
# This would be better as a config so that it could be shared with
|
|
|
|
|
# exception_port_tool, but configs can’t alter “inputs”.
|
|
|
|
|
# https://crbug.com/781858.
|
2020-01-23 08:00:33 -05:00
|
|
|
|
inputs = [ "mac/sectaskaccess_info.plist" ]
|
2019-07-31 01:22:27 -04:00
|
|
|
|
ldflags = [
|
|
|
|
|
"-sectcreate",
|
|
|
|
|
"__TEXT",
|
|
|
|
|
"__info_plist",
|
|
|
|
|
rebase_path(inputs[0], root_build_dir),
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (crashpad_is_win) {
|
2020-02-18 14:49:10 -05:00
|
|
|
|
cflags =
|
|
|
|
|
[ "/wd4201" ] # nonstandard extension used : nameless struct/union
|
2019-07-31 01:22:27 -04:00
|
|
|
|
}
|
2017-11-17 17:48:22 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-01 12:21:38 -07:00
|
|
|
|
if (crashpad_is_mac || crashpad_is_fuchsia) {
|
|
|
|
|
crashpad_executable("run_with_crashpad") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "run_with_crashpad.cc" ]
|
2018-05-01 12:21:38 -07:00
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
|
|
|
|
"../client",
|
|
|
|
|
"../compat",
|
|
|
|
|
"../third_party/mini_chromium:base",
|
|
|
|
|
"../util",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-19 15:31:04 -08:00
|
|
|
|
if (crashpad_is_mac) {
|
2018-03-21 19:18:07 -07:00
|
|
|
|
crashpad_executable("catch_exception_tool") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "mac/catch_exception_tool.cc" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../compat",
|
2017-12-18 14:35:55 -08:00
|
|
|
|
"../third_party/mini_chromium:base",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../util",
|
2017-11-17 17:48:22 -08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-21 19:18:07 -07:00
|
|
|
|
crashpad_executable("exception_port_tool") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "mac/exception_port_tool.cc" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
|
|
|
|
# This would be better as a config so that it could be shared with
|
2017-12-19 14:21:14 -05:00
|
|
|
|
# generate_dump, but configs can’t alter “inputs”. https://crbug.com/781858.
|
2020-01-23 08:00:33 -05:00
|
|
|
|
inputs = [ "mac/sectaskaccess_info.plist" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
ldflags = [
|
|
|
|
|
"-sectcreate",
|
|
|
|
|
"__TEXT",
|
|
|
|
|
"__info_plist",
|
2017-12-19 14:21:14 -05:00
|
|
|
|
rebase_path(inputs[0], root_build_dir),
|
2017-11-17 17:48:22 -08:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../compat",
|
2017-12-18 14:35:55 -08:00
|
|
|
|
"../third_party/mini_chromium:base",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../util",
|
2017-11-17 17:48:22 -08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-21 19:18:07 -07:00
|
|
|
|
crashpad_executable("on_demand_service_tool") {
|
2020-01-23 08:00:33 -05:00
|
|
|
|
sources = [ "mac/on_demand_service_tool.mm" ]
|
2017-11-17 17:48:22 -08:00
|
|
|
|
|
2020-07-01 14:34:38 -04:00
|
|
|
|
frameworks = [
|
2017-11-17 17:48:22 -08:00
|
|
|
|
"CoreFoundation.framework",
|
|
|
|
|
"Foundation.framework",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":tool_support",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../compat",
|
2017-12-18 14:35:55 -08:00
|
|
|
|
"../third_party/mini_chromium:base",
|
2017-11-28 10:31:13 -08:00
|
|
|
|
"../util",
|
2017-11-17 17:48:22 -08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|