• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
15source_set("unittests") {
16  testonly = true
17  deps = [
18    ":ftrace_proto_gen_src",
19    "../../gn:default_deps",
20    "../../gn:gtest_deps",
21    "../../gn:protobuf_full_deps",
22  ]
23  sources = [
24    "ftrace_proto_gen_unittest.cc",
25  ]
26}
27
28source_set("ftrace_proto_gen_src") {
29  testonly = true
30  sources = [
31    "ftrace_descriptor_gen.cc",
32    "ftrace_descriptor_gen.h",
33    "ftrace_proto_gen.cc",
34    "ftrace_proto_gen.h",
35    "proto_gen_utils.cc",
36    "proto_gen_utils.h",
37  ]
38  deps = [
39    "../../gn:default_deps",
40    "../../gn:protobuf_full_deps",
41    "../../src/base",
42    "../../src/traced/probes/ftrace:format_parser",
43  ]
44}
45
46executable("ftrace_proto_gen") {
47  testonly = true
48  sources = [
49    "main.cc",
50  ]
51  deps = [
52    ":ftrace_proto_gen_src",
53    "../../gn:default_deps",
54    "../../gn:protobuf_full_deps",
55    "../../src/base",
56    "../../src/traced/probes/ftrace:format_parser",
57  ]
58}
59