| 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! | 5 import("//chrome/version.gni") # TODO layering violation! |
| 6 import("//chromecast/chromecast.gni") | 6 import("//chromecast/chromecast.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 source_set("base") { | 9 source_set("base") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ] | 50 ] |
| 51 } | 51 } |
| 52 | 52 |
| 53 source_set("cast_sys_info") { | 53 source_set("cast_sys_info") { |
| 54 sources = [ | 54 sources = [ |
| 55 "cast_sys_info_dummy.cc", | 55 "cast_sys_info_dummy.cc", |
| 56 "cast_sys_info_dummy.h", | 56 "cast_sys_info_dummy.h", |
| 57 "cast_sys_info_util.h", | 57 "cast_sys_info_util.h", |
| 58 ] | 58 ] |
| 59 | 59 |
| 60 if (chromecast_branding == "public" && !is_android) { | 60 if (!is_chromecast_chrome_branded && !is_android) { |
| 61 sources += [ "cast_sys_info_util_simple.cc" ] | 61 sources += [ "cast_sys_info_util_simple.cc" ] |
| 62 } | 62 } |
| 63 | 63 |
| 64 # TODO(mbjorge): put cast_sys_info_android in here | 64 # TODO(mbjorge): put cast_sys_info_android in here |
| 65 | 65 |
| 66 deps = [ | 66 deps = [ |
| 67 "//base", | 67 "//base", |
| 68 "//chromecast/public", | 68 "//chromecast/public", |
| 69 ] | 69 ] |
| 70 } | 70 } |
| 71 | 71 |
| 72 process_version("cast_version") { | 72 process_version("cast_version") { |
| 73 template_file = "version.h.in" | 73 template_file = "version.h.in" |
| 74 output = "$target_gen_dir/version.h" | 74 output = "$target_gen_dir/version.h" |
| 75 extra_args = [ | 75 extra_args = [ |
| 76 "-e", | 76 "-e", |
| 77 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)", | 77 "VERSION_FULL=\"%s.%s.%s.%s\"%(MAJOR,MINOR,BUILD,PATCH)", |
| 78 | 78 |
| 79 # TODO(slan): Populate the fields below with real values | 79 # TODO(slan): Populate the fields below with real values |
| 80 "-e", | 80 "-e", |
| 81 "CAST_BUILD_INCREMENTAL=20150608.181153", | 81 "CAST_BUILD_INCREMENTAL=20150608.181153", |
| 82 "-e", | 82 "-e", |
| 83 "CAST_BUILD_RELEASE=1.15", | 83 "CAST_BUILD_RELEASE=1.15", |
| 84 "-e", | 84 "-e", |
| 85 "CAST_IS_DEBUG_BUILD=1", | 85 "CAST_IS_DEBUG_BUILD=1", |
| 86 "-e", | 86 "-e", |
| 87 "CAST_PRODUCT_TYPE=0", | 87 "CAST_PRODUCT_TYPE=0", |
| 88 ] | 88 ] |
| 89 } | 89 } |
| OLD | NEW |