naiveproxy/components/crash/core/common/BUILD.gn

65 lines
1006 B
Plaintext
Raw Normal View History

2018-01-28 19:30:36 +03:00
# 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" ]
}
}