BUILD.gn revision 798bcdf9f85a24adb4fbc09dc623b1814abe1969
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
15executable("ftrace_proto_gen_unittests") {
16  testonly = true
17  deps += [
18    ":lib",
19    "//buildtools:gmock",
20    "//buildtools:gtest",
21    "//buildtools:gtest_main",
22  ]
23  sources = [
24    "format_parser_unittest.cc",
25    "ftrace_to_proto_unittest.cc",
26  ]
27}
28
29executable("ftrace_proto_gen") {
30  sources = [
31    "main.cc",
32  ]
33  deps += [ ":lib" ]
34}
35
36source_set("lib") {
37  sources = [
38    "format_parser.cc",
39    "format_parser.h",
40    "ftrace_to_proto.cc",
41    "ftrace_to_proto.h",
42  ]
43  deps += [
44    "//base"
45  ]
46}
47