blob: a6b28d798b6a407d669cbe1cda335ab34081caed [file] [log] [blame]
# Copyright (C) 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("../../../../gn/perfetto.gni")
import("../../../../gn/perfetto_component.gni")
assert(enable_perfetto_ipc)
# Posix specialization of the tracing library for Linux / Android / Mac.
# Provides an IPC transport over a UNIX socket for the producer interface.
source_set("producer") {
public_deps = [
"../../../../include/perfetto/ext/tracing/core",
"../../../../include/perfetto/ext/tracing/ipc",
"../../../../protos/perfetto/ipc",
]
sources = [
"producer_ipc_client_impl.cc",
"producer_ipc_client_impl.h",
]
deps = [
"..:common",
"../../../../gn:default_deps",
"../../../base",
"../../../base:version",
]
if (perfetto_component_type == "static_library") {
deps += [ "../../../ipc:perfetto_ipc" ]
} else {
deps += [ "../../../ipc:client" ]
}
}