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 15import("../../gn/perfetto.gni") 16 17executable("sdk_example") { 18 sources = [ 19 "example.cc", 20 "trace_categories.cc", 21 "trace_categories.h", 22 ] 23 defines = [ "PERFETTO_SDK_EXAMPLE_USE_INTERNAL_HEADERS" ] 24 testonly = true 25 deps = [ 26 "../..:libperfetto_client_experimental", 27 "../../gn:default_deps", 28 ] 29} 30 31executable("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 46executable("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} 56 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} 67