blob: 4217f868593ce33b44470af2cd7dc1be9e251f43 [file] [log] [blame]
Przemyslaw Pietrzkiewicz1d909942015-08-28 16:27:56 +02001# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//mojo/public/mojo_application.gni")
6
7source_set("lib") {
8 sources = [
9 "event.cc",
10 "event.h",
11 "measurements.cc",
12 "measurements.h",
13 "run_args.cc",
14 "run_args.h",
15 "trace_collector_client.cc",
16 "trace_collector_client.h",
17 ]
18
19 deps = [
20 "//base",
21 "//mojo/data_pipe_utils",
22 ]
23
24 public_deps = [
Viet-Trung Luu0f4f3ba2015-10-10 01:08:40 -070025 "//mojo/services/tracing/interfaces",
Przemyslaw Pietrzkiewicz1d909942015-08-28 16:27:56 +020026 ]
27}
28
29mojo_native_application("benchmark") {
30 sources = [
31 "benchmark_app.cc",
32 ]
33
34 deps = [
35 ":lib",
36 "//base",
Viet-Trung Luu743ab5a2016-04-26 14:13:02 -070037 "//mojo/application",
Przemyslaw Pietrzkiewicz1d909942015-08-28 16:27:56 +020038 "//mojo/public/cpp/application",
Viet-Trung Luu743ab5a2016-04-26 14:13:02 -070039 "//mojo/public/interfaces/application",
Przemyslaw Pietrzkiewicz1d909942015-08-28 16:27:56 +020040 ]
41}
42
43mojo_native_application("apptests") {
44 output_name = "benchmark_apptests"
45
46 testonly = true
47
48 sources = [
49 "event_unittest.cc",
50 "measurements_unittest.cc",
51 ]
52
53 deps = [
54 ":lib",
Tony Gentilcorec6d14342016-01-04 15:24:18 -080055 "//base",
Przemyslaw Pietrzkiewicz1d909942015-08-28 16:27:56 +020056 "//mojo/application",
57 "//mojo/application:test_support",
58 "//mojo/public/cpp/bindings:callback",
59 "//testing/gtest",
60 ]
61}