OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//chrome/version.gni") # TODO layering violation! |
| 6 import("//testing/test.gni") |
| 7 |
5 source_set("base") { | 8 source_set("base") { |
6 sources = [ | 9 sources = [ |
7 "cast_paths.cc", | 10 "cast_paths.cc", |
8 "cast_paths.h", | 11 "cast_paths.h", |
| 12 "chromecast_switches.cc", |
| 13 "chromecast_switches.h", |
| 14 "error_codes.cc", |
| 15 "error_codes.h", |
| 16 "metrics/cast_histograms.h", |
| 17 "metrics/cast_metrics_helper.cc", |
| 18 "metrics/cast_metrics_helper.h", |
| 19 "metrics/grouped_histogram.cc", |
| 20 "metrics/grouped_histogram.h", |
| 21 "path_utils.cc", |
| 22 "path_utils.h", |
| 23 "process_utils.cc", |
| 24 "process_utils.h", |
| 25 "serializers.cc", |
| 26 "serializers.h", |
| 27 ] |
| 28 |
| 29 deps = [ |
| 30 "//base", |
9 ] | 31 ] |
10 | 32 |
11 configs += [ "//chromecast:config" ] | 33 configs += [ "//chromecast:config" ] |
12 } | 34 } |
| 35 |
| 36 test("cast_base_unittests") { |
| 37 sources = [ |
| 38 "path_utils_unittest.cc", |
| 39 "process_utils_unittest.cc", |
| 40 "serializers_unittest.cc", |
| 41 ] |
| 42 |
| 43 deps = [ |
| 44 ":base", |
| 45 "//base/test:run_all_unittests", |
| 46 "//testing/gtest", |
| 47 ] |
| 48 } |
| 49 |
| 50 process_version("cast_version") { |
| 51 template_file = "version.h.in" |
| 52 output = "$target_gen_dir/version.h" |
| 53 extra_args = [ |
| 54 "-e", |
| 55 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)", |
| 56 |
| 57 # TODO(slan): Populate the fields below with real values |
| 58 "-e", |
| 59 "CAST_BUILD_INCREMENTAL=20150608.181153", |
| 60 "-e", |
| 61 "CAST_BUILD_RELEASE=1.15", |
| 62 "-e", |
| 63 "CAST_IS_DEBUG_BUILD=1", |
| 64 "-e", |
| 65 "CAST_PRODUCT_TYPE=0", |
| 66 ] |
| 67 } |
OLD | NEW |