blob: 17e5fadb03fdf0e709d6eab1e7d112aa63c30087 [file] [log] [blame]
Mohit Sainic56f7692022-01-12 10:28:01 +00001# Copyright (C) 2022 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("../../gn/perfetto.gni")
16
17executable("sdk_example") {
18 sources = [
19 "example.cc",
20 "trace_categories.cc",
21 "trace_categories.h",
22 ]
Mohit Saini95f9a9b2022-06-24 22:52:55 +010023 defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ]
Mohit Sainic56f7692022-01-12 10:28:01 +000024 testonly = true
25 deps = [
26 "../..:libperfetto_client_experimental",
27 "../../gn:default_deps",
28 ]
29}
Mohit Saini95f9a9b2022-06-24 22:52:55 +010030
Mohit Sainidcf90992022-09-07 16:48:31 +010031executable("example_system_wide") {
32 sources = [
33 "example_system_wide.cc",
34 "trace_categories.cc",
35 "trace_categories.h",
36 ]
37 defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ]
38 testonly = true
39 deps = [
40 "../..:libperfetto_client_experimental",
41 "../../gn:default_deps",
42 "../../src/base",
43 ]
44}
45
Mohit Saini95f9a9b2022-06-24 22:52:55 +010046executable("example_custom_data_source") {
47 sources = [ "example_custom_data_source.cc" ]
48 defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ]
49 testonly = true
50 deps = [
51 "../..:libperfetto_client_experimental",
52 "../../gn:default_deps",
53 "../../src/base",
54 ]
55}
Mohit Saini0a0850b2022-07-12 15:34:33 +010056
57executable("example_startup_trace") {
58 sources = [ "example_startup_trace.cc" ]
59 defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ]
60 testonly = true
61 deps = [
62 "../..:libperfetto_client_experimental",
63 "../../gn:default_deps",
64 "../../src/base",
65 ]
66}