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")
13 "chromecast_switches.cc",
14 "chromecast_switches.h",
25 configs += [ "//chromecast:config" ]
28 "//chromecast/base/metrics",
36 test("cast_base_unittests") {
38 "error_codes_unittest.cc",
39 "path_utils_unittest.cc",
40 "process_utils_unittest.cc",
41 "serializers_unittest.cc",
47 "//base/test:run_all_unittests",
48 "//base/test:test_support",
53 source_set("cast_sys_info") {
55 "cast_sys_info_dummy.cc",
56 "cast_sys_info_dummy.h",
57 "cast_sys_info_util.h",
60 if (chromecast_branding == "public" && !is_android) {
61 sources += [ "cast_sys_info_util_simple.cc" ]
64 # TODO(mbjorge): put cast_sys_info_android in here
68 "//chromecast/public",
72 process_version("cast_version") {
73 template_file = "version.h.in"
74 output = "$target_gen_dir/version.h"
77 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)",
79 # TODO(slan): Populate the fields below with real values
81 "CAST_BUILD_INCREMENTAL=20150608.181153",
83 "CAST_BUILD_RELEASE=1.15",
85 "CAST_IS_DEBUG_BUILD=1",
87 "CAST_PRODUCT_TYPE=0",