Chromium Code Reviews| 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") | |
|
gunsch
2015/06/10 16:33:30
Hmm, we can't import anything from //chrome. But i
slan
2015/06/11 02:34:48
Done.
| |
| 6 import("//testing/test.gni") | |
| 7 | |
| 8 process_version("cast_version") { | |
|
gunsch
2015/06/10 16:33:30
can we put this below the other targets, so that "
slan
2015/06/11 02:34:48
Done.
| |
| 9 template_file = "version.h.in" | |
| 10 output = "$target_gen_dir/version.h" | |
| 11 extra_args = [ | |
| 12 "-e", | |
| 13 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)", | |
| 14 | |
| 15 # TODO(slan): Populate the fields below with real values | |
| 16 "-e", | |
| 17 "CAST_BUILD_INCREMENTAL=20150608.181153", | |
| 18 "-e", | |
| 19 "CAST_BUILD_RELEASE=1.15", | |
| 20 "-e", | |
| 21 "CAST_IS_DEBUG_BUILD=1", | |
| 22 "-e", | |
| 23 "CAST_PRODUCT_TYPE=0", | |
| 24 ] | |
| 25 } | |
| 26 | |
| 5 source_set("base") { | 27 source_set("base") { |
| 6 sources = [ | 28 sources = [ |
| 7 "cast_paths.cc", | 29 "cast_paths.cc", |
| 8 "cast_paths.h", | 30 "cast_paths.h", |
| 31 "chromecast_switches.cc", | |
| 32 "chromecast_switches.h", | |
| 33 "error_codes.cc", | |
| 34 "error_codes.h", | |
| 35 "metrics/cast_histograms.h", | |
| 36 "metrics/cast_metrics_helper.cc", | |
| 37 "metrics/cast_metrics_helper.h", | |
| 38 "metrics/grouped_histogram.cc", | |
| 39 "metrics/grouped_histogram.h", | |
| 40 "path_utils.cc", | |
| 41 "path_utils.h", | |
| 42 "process_utils.cc", | |
| 43 "process_utils.h", | |
| 44 "serializers.cc", | |
| 45 "serializers.h", | |
| 46 ] | |
| 47 | |
| 48 deps = [ | |
| 49 "//base", | |
| 9 ] | 50 ] |
| 10 | 51 |
| 11 configs += [ "//chromecast:config" ] | 52 configs += [ "//chromecast:config" ] |
| 12 } | 53 } |
| 54 | |
| 55 test("cast_base_unittests") { | |
| 56 sources = [ | |
| 57 "path_utils_unittest.cc", | |
| 58 "process_utils_unittest.cc", | |
| 59 "serializers_unittest.cc", | |
| 60 ] | |
| 61 | |
| 62 deps = [ | |
| 63 ":base", | |
| 64 "//base/test:run_all_unittests", | |
| 65 "//testing/gtest", | |
| 66 ] | |
| 67 } | |
| OLD | NEW |