mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 07:14:10 +08:00
3f5c939c84
- Correctly sets target_cpu and current_cpu so correct toolchain can be used on Fuchsia. - Introduces GN argument "crashpad_in_chromium" which defaults to false. Used to set CRASHPAD_IN_CHROMIUM define, determine which zlib path to use, and how to package the test targets into binaries (one big one in Chromium, separate in Crashpad). Bug: crashpad:79, crashpad:196 Change-Id: If6560dc064308ed6f8bf7c75cf74f684a3522e8b Reviewed-on: https://chromium-review.googlesource.com/797354 Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Scott Graham <scottmg@chromium.org>
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
# Copyright 2017 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.
|
|
|
|
import("//testing/test.gni")
|
|
import("build/crashpad_in_chromium.gni")
|
|
|
|
config("crashpad_config") {
|
|
include_dirs = [ "." ]
|
|
}
|
|
|
|
if (crashpad_in_chromium) {
|
|
test("crashpad_tests") {
|
|
deps = [
|
|
"client:client_test",
|
|
"handler:handler_test",
|
|
"minidump:minidump_test",
|
|
"snapshot:snapshot_test",
|
|
"test:gmock_main",
|
|
"test:test_test",
|
|
"util:util_test",
|
|
]
|
|
}
|
|
} else {
|
|
test("crashpad_client_test") {
|
|
deps = [
|
|
"client:client_test",
|
|
"test:gmock_main",
|
|
]
|
|
}
|
|
|
|
test("crashpad_handler_test") {
|
|
deps = [
|
|
"handler:handler_test",
|
|
"test:gtest_main",
|
|
]
|
|
}
|
|
|
|
test("crashpad_minidump_test") {
|
|
deps = [
|
|
"minidump:minidump_test",
|
|
"test:gtest_main",
|
|
]
|
|
}
|
|
|
|
test("crashpad_snapshot_test") {
|
|
deps = [
|
|
"snapshot:snapshot_test",
|
|
"test:gtest_main",
|
|
]
|
|
}
|
|
|
|
test("crashpad_test_test") {
|
|
deps = [
|
|
"test:gmock_main",
|
|
"test:test_test",
|
|
]
|
|
}
|
|
|
|
test("crashpad_util_test") {
|
|
deps = [
|
|
"test:gmock_main",
|
|
"util:util_test",
|
|
]
|
|
}
|
|
}
|