Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / chromecast / base / BUILD.gn
bloba249ec84f6ba8c3cc07eb501587e8bf7f441d914
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     "cast_paths.cc",
12     "cast_paths.h",
13     "chromecast_switches.cc",
14     "chromecast_switches.h",
15     "error_codes.cc",
16     "error_codes.h",
17     "path_utils.cc",
18     "path_utils.h",
19     "process_utils.cc",
20     "process_utils.h",
21     "serializers.cc",
22     "serializers.h",
23   ]
25   configs += [ "//chromecast:config" ]
27   public_deps = [
28     "//chromecast/base/metrics",
29   ]
31   deps = [
32     "//base",
33   ]
36 test("cast_base_unittests") {
37   sources = [
38     "error_codes_unittest.cc",
39     "path_utils_unittest.cc",
40     "process_utils_unittest.cc",
41     "serializers_unittest.cc",
42   ]
44   deps = [
45     ":base",
46     "//base",
47     "//base/test:run_all_unittests",
48     "//base/test:test_support",
49     "//testing/gtest",
50   ]
53 source_set("cast_sys_info") {
54   sources = [
55     "cast_sys_info_dummy.cc",
56     "cast_sys_info_dummy.h",
57     "cast_sys_info_util.h",
58   ]
60   if (chromecast_branding == "public" && !is_android) {
61     sources += [ "cast_sys_info_util_simple.cc" ]
62   }
64   # TODO(mbjorge): put cast_sys_info_android in here
66   deps = [
67     "//base",
68     "//chromecast/public",
69   ]
72 process_version("cast_version") {
73   template_file = "version.h.in"
74   output = "$target_gen_dir/version.h"
75   extra_args = [
76     "-e",
77     "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)",
79     # TODO(slan): Populate the fields below with real values
80     "-e",
81     "CAST_BUILD_INCREMENTAL=20150608.181153",
82     "-e",
83     "CAST_BUILD_RELEASE=1.15",
84     "-e",
85     "CAST_IS_DEBUG_BUILD=1",
86     "-e",
87     "CAST_PRODUCT_TYPE=0",
88   ]