blob: d6b431531ad463b0ba156ac757dcadfe3f30933d [file] [log] [blame]
Oystein Eftevaagdd727e42017-12-05 08:49:55 -08001# Copyright (C) 2017 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("perfetto.gni")
16
17group("gtest_deps") {
18 testonly = true
19
20 if (!build_with_chromium) {
21 public_deps = [
22 "//buildtools:gmock",
23 "//buildtools:gtest",
24 "//buildtools:gtest_main",
25 ]
26 } else {
27 public_deps = [
28 "//testing/gmock",
29 "//testing/gtest",
30 "//testing/gtest:gtest_main",
31 ]
32 }
33}
34
35group("protoc_lib_deps") {
36 if (!build_with_chromium) {
37 if (current_toolchain == host_toolchain) {
38 public_deps = [
39 "//buildtools:protoc_lib",
40 ]
41 }
42 } else {
43 public_deps = [
44 "//third_party/protobuf:protoc_lib",
45 ]
46 }
47}
48
49group("protobuf_full_deps") {
50 if (!build_with_chromium) {
51 public_deps = [
52 "//buildtools:protobuf_full",
53 ]
54 } else {
55 public_deps = [
56 "//third_party/protobuf:protobuf_full",
57 ]
58 }
59}
60
61group("default_deps") {
62 if (!build_with_chromium) {
63 public_deps = [
64 "//build/libc++:deps",
65 "//build/sanitizers:deps",
66 ]
67 }
68}