naiveproxy/components/crash/core/common/BUILD.gn
2018-01-29 00:30:36 +08:00

65 lines
1006 B
Plaintext

# 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.
group("common") {
public_deps = [
":crash_keys",
]
if (is_mac || is_ios) {
public_deps += [ ":zombies" ]
}
}
static_library("crash_keys") {
visibility = [ ":*" ]
sources = [
"crash_keys.cc",
"crash_keys.h",
]
deps = [
"//base",
]
}
if (is_mac || is_ios) {
component("zombies") {
visibility = [ ":common" ]
sources = [
"crash_keys.h",
"objc_zombie.h",
"objc_zombie.mm",
]
defines = [ "CRASH_CORE_COMMON_IMPLEMENTATION" ]
deps = [
":crash_keys",
"//base",
]
libs = [ "Foundation.framework" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [
"crash_keys_unittest.cc",
]
deps = [
":common",
"//base",
"//testing/gtest",
]
if (is_mac || is_ios) {
sources += [ "objc_zombie_unittest.mm" ]
}
}