Mohit Saini | c56f769 | 2022-01-12 10:28:01 +0000 | [diff] [blame] | 1 | # 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 | |
| 15 | import("../../gn/perfetto.gni") |
| 16 | |
| 17 | executable("sdk_example") { |
| 18 | sources = [ |
| 19 | "example.cc", |
| 20 | "trace_categories.cc", |
| 21 | "trace_categories.h", |
| 22 | ] |
Mohit Saini | 95f9a9b | 2022-06-24 22:52:55 +0100 | [diff] [blame] | 23 | defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ] |
Mohit Saini | c56f769 | 2022-01-12 10:28:01 +0000 | [diff] [blame] | 24 | testonly = true |
| 25 | deps = [ |
| 26 | "../..:libperfetto_client_experimental", |
| 27 | "../../gn:default_deps", |
| 28 | ] |
| 29 | } |
Mohit Saini | 95f9a9b | 2022-06-24 22:52:55 +0100 | [diff] [blame] | 30 | |
Mohit Saini | dcf9099 | 2022-09-07 16:48:31 +0100 | [diff] [blame] | 31 | executable("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 Saini | 95f9a9b | 2022-06-24 22:52:55 +0100 | [diff] [blame] | 46 | executable("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 Saini | 0a0850b | 2022-07-12 15:34:33 +0100 | [diff] [blame] | 56 | |
| 57 | executable("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 | } |