Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//mojo/public/mojo_application.gni") |
| 6 | |
| 7 | source_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 Luu | 0f4f3ba | 2015-10-10 01:08:40 -0700 | [diff] [blame] | 25 | "//mojo/services/tracing/interfaces", |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 26 | ] |
| 27 | } |
| 28 | |
| 29 | mojo_native_application("benchmark") { |
| 30 | sources = [ |
| 31 | "benchmark_app.cc", |
| 32 | ] |
| 33 | |
| 34 | deps = [ |
| 35 | ":lib", |
| 36 | "//base", |
Viet-Trung Luu | 743ab5a | 2016-04-26 14:13:02 -0700 | [diff] [blame] | 37 | "//mojo/application", |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 38 | "//mojo/public/cpp/application", |
Viet-Trung Luu | 743ab5a | 2016-04-26 14:13:02 -0700 | [diff] [blame] | 39 | "//mojo/public/interfaces/application", |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 40 | ] |
| 41 | } |
| 42 | |
| 43 | mojo_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 Gentilcore | c6d1434 | 2016-01-04 15:24:18 -0800 | [diff] [blame] | 55 | "//base", |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 56 | "//mojo/application", |
| 57 | "//mojo/application:test_support", |
| 58 | "//mojo/public/cpp/bindings:callback", |
| 59 | "//testing/gtest", |
| 60 | ] |
| 61 | } |