Add devil dir to telemetry isolate files for GN builds of gpu_tests.
[chromium-blink-merge.git] / chromecast / base / BUILD.gn
blob45d8c0b5b51337f8a0e856e1100e832963e97e45
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.
5 import("//chrome/version.gni")  # TODO layering violation!
6 import("//chromecast/chromecast.gni")
7 import("//testing/test.gni")
9 source_set("base") {
10   sources = [
11     "android/dumpstate_writer.cc",
12     "android/dumpstate_writer.h",
13     "android/system_time_change_notifier_android.cc",
14     "android/system_time_change_notifier_android.h",
15     "cast_paths.cc",
16     "cast_paths.h",
17     "cast_resource.h",
18     "chromecast_switches.cc",
19     "chromecast_switches.h",
20     "error_codes.cc",
21     "error_codes.h",
22     "path_utils.cc",
23     "path_utils.h",
24     "pref_names.cc",
25     "pref_names.h",
26     "process_utils.cc",
27     "process_utils.h",
28     "serializers.cc",
29     "serializers.h",
30     "system_time_change_notifier.cc",
31     "system_time_change_notifier.h",
32     "task_runner_impl.cc",
33     "task_runner_impl.h",
34   ]
36   configs += [ "//chromecast:config" ]
38   public_deps = [
39     "//chromecast/base/metrics",
40   ]
42   deps = [
43     "//base",
44   ]
47 test("cast_base_unittests") {
48   sources = [
49     "error_codes_unittest.cc",
50     "path_utils_unittest.cc",
51     "process_utils_unittest.cc",
52     "serializers_unittest.cc",
53     "system_time_change_notifier_unittest.cc",
54   ]
56   deps = [
57     ":base",
58     "//base",
59     "//base/test:run_all_unittests",
60     "//base/test:test_support",
61     "//testing/gtest",
62   ]
65 source_set("cast_sys_info") {
66   sources = [
67     "cast_sys_info_dummy.cc",
68     "cast_sys_info_dummy.h",
69     "cast_sys_info_util.h",
70   ]
72   if (chromecast_branding == "public" && !is_android) {
73     sources += [ "cast_sys_info_util_simple.cc" ]
74   }
76   # TODO(mbjorge): put cast_sys_info_android in here
78   deps = [
79     "//base",
80     "//chromecast/public",
81   ]
84 process_version("cast_version") {
85   template_file = "version.h.in"
86   output = "$target_gen_dir/version.h"
87   extra_args = [
88     "-e",
89     "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)",
91     # TODO(slan): Populate the fields below with real values
92     "-e",
93     "CAST_BUILD_INCREMENTAL=20150608.181153",
94     "-e",
95     "CAST_BUILD_RELEASE=1.15",
96     "-e",
97     "CAST_IS_DEBUG_BUILD=1",
98     "-e",
99     "CAST_PRODUCT_TYPE=0",
100   ]