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")
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",
18 "chromecast_switches.cc",
19 "chromecast_switches.h",
30 "system_time_change_notifier.cc",
31 "system_time_change_notifier.h",
32 "task_runner_impl.cc",
36 configs += [ "//chromecast:config" ]
39 "//chromecast/base/metrics",
40 "//chromecast/public",
48 test("cast_base_unittests") {
50 "error_codes_unittest.cc",
51 "path_utils_unittest.cc",
52 "process_utils_unittest.cc",
53 "serializers_unittest.cc",
54 "system_time_change_notifier_unittest.cc",
60 "//base/test:run_all_unittests",
61 "//base/test:test_support",
66 source_set("cast_sys_info") {
68 "cast_sys_info_dummy.cc",
69 "cast_sys_info_dummy.h",
70 "cast_sys_info_util.h",
73 if (chromecast_branding == "public" && !is_android) {
74 sources += [ "cast_sys_info_util_simple.cc" ]
77 # TODO(mbjorge): put cast_sys_info_android in here
81 "//chromecast/public",
85 process_version("cast_version") {
86 template_file = "version.h.in"
87 output = "$target_gen_dir/version.h"
90 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)",
92 # TODO(slan): Populate the fields below with real values
94 "CAST_BUILD_INCREMENTAL=20150608.181153",
96 "CAST_BUILD_RELEASE=1.15",
98 "CAST_IS_DEBUG_BUILD=1",
100 "CAST_PRODUCT_TYPE=0",