crashpad/tools/BUILD.gn
Mark Mentovai 99b0030616 gn, linux: Build for Linux with GN
This is sufficient for a native Linux build using GN. Android is not yet
supported.

mini_chromium side: https://crrev.com/c/833407

This also updates mini_chromium to 404f6dbf9928.

c913ef97a236 gn, linux: Build for Linux with GN
404f6dbf9928 gn: Don’t use .rsp files; rationalize descriptions and
             output dirs

Bug: crashpad:79
Change-Id: I4f3b72fd02884d77812e520fb95231b35815677d
Reviewed-on: https://chromium-review.googlesource.com/833408
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
2017-12-19 19:31:20 +00:00

163 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.
source_set("tool_support") {
sources = [
"tool_support.cc",
"tool_support.h",
]
public_configs = [ "..:crashpad_config" ]
deps = [
"../third_party/mini_chromium:base",
]
}
executable("crashpad_database_util") {
sources = [
"crashpad_database_util.cc",
]
deps = [
":tool_support",
"../build:default_exe_manifest_win",
"../client",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
executable("crashpad_http_upload") {
sources = [
"crashpad_http_upload.cc",
]
deps = [
":tool_support",
"../build:default_exe_manifest_win",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
executable("generate_dump") {
sources = [
"generate_dump.cc",
]
deps = [
":tool_support",
"../build:default_exe_manifest_win",
"../compat",
"../minidump",
"../snapshot",
"../third_party/mini_chromium:base",
"../util",
]
if (is_mac) {
# This would be better as a config so that it could be shared with
# exception_port_tool, but configs cant alter “inputs”.
# https://crbug.com/781858.
inputs = [
"mac/sectaskaccess_info.plist",
]
ldflags = [
"-sectcreate",
"__TEXT",
"__info_plist",
rebase_path(inputs[0], root_build_dir),
]
}
if (is_win) {
cflags = [ "/wd4201" ] # nonstandard extension used : nameless struct/union
}
}
if (is_mac) {
executable("catch_exception_tool") {
sources = [
"mac/catch_exception_tool.cc",
]
deps = [
":tool_support",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
executable("exception_port_tool") {
sources = [
"mac/exception_port_tool.cc",
]
# This would be better as a config so that it could be shared with
# generate_dump, but configs cant alter “inputs”. https://crbug.com/781858.
inputs = [
"mac/sectaskaccess_info.plist",
]
ldflags = [
"-sectcreate",
"__TEXT",
"__info_plist",
rebase_path(inputs[0], root_build_dir),
]
deps = [
":tool_support",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
executable("on_demand_service_tool") {
sources = [
"mac/on_demand_service_tool.mm",
]
libs = [
"CoreFoundation.framework",
"Foundation.framework",
]
deps = [
":tool_support",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
executable("run_with_crashpad") {
sources = [
"mac/run_with_crashpad.cc",
]
deps = [
":tool_support",
"../client",
"../compat",
"../third_party/mini_chromium:base",
"../util",
]
}
}