# Copyright (C) 2018 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.

copy("copy_protoc_helper") {
  testonly = true
  sources = [
    "protoc_helper.py",
  ]
  outputs = [
    "${root_out_dir}/protoc_helper",
  ]
}

group("protoc_helper") {
  testonly = true
  public_deps = [
    ":copy_protoc_helper",
  ]
  deps = [
    "../gn:protoc($host_toolchain)",
  ]
}

if (is_linux) {
  executable("profiling_sample_distribution") {
    sources = [
      "profiling_sample_distribution.cc",
    ]
    deps = [
      "../gn:default_deps",
      "../src/base",
      "../src/profiling/memory:client",
    ]
  }
}
